Query to sum two fields and get %

FinancialAnalystKid

Well-known Member
Joined
Oct 14, 2004
Messages
779
I am working on zero balance accounts.

I have the following fields:
Class
Total Charges
Total Payments

I ran a query to get Charges and Payments from Zero Balanced accounts but now need to group it by class and have a field that shows Payments/Charges for a percentage.

I can get the data but that's for each account within a class and I want it grouped by class.

When I take out the Payment/Charges field, then I get each class listed properly with TOTAL charges and TOTAL payments. When I add the calculated field, then I get a detail with dupliate classes with each line calulating my %.

Does this make sense?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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