Calculations

Slicemahn

Board Regular
Joined
Jun 10, 2004
Messages
120
Hi,
I am new to Access and need some help in building a calculation. I have performed a simple query that involves three fields: Name, ID and Activity. A fourth field has been added to obtain a count of each Activity. How do I write a formula that would calculate the percentage of one particular activity against all activities?

Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I would think that adding a field that would divide your Activity Count field by a DCount of all activities formatted as a percentage would give you the result you seek.
 
Upvote 0
Thanks for the reply..

However, what I am looking for is individual totals. For example if Bob sells 5 oranges, 2 apples and 1 mango. What is the percentage of apples to total fruit sold for Bob?

Thanks,
Colin
 
Upvote 0
Hi Colin
I'm not sure if this is what you want, but for what it's worth I always find it much easier to do the % calculations on a report instead of a query. Will you be looking at the sales results and %'s in your query or on a report?
Andrew :)
 
Upvote 0
Hi Andrew

Andrew,

I was hoping that the calculation could be made on my query and then populate a report with use of that same query. Which method is easier?

Colin
 
Upvote 0
I would recommend extracting all of the necessary data in the query and then doing the % and total calculations on the report. As I said, these sorts of things are much easier on the report (versus the query) plus I believe they are less resource intense (although I could be wrong).
Andrew :)
 
Upvote 0

Forum statistics

Threads
1,221,907
Messages
6,162,777
Members
451,788
Latest member
Hideoshie

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top