Pivot table question

ChristineJ

Well-known Member
Joined
May 18, 2009
Messages
761
Office Version
  1. 365
Platform
  1. Windows
My worksheet has data with column labels.
Column C - Principal
Column G - Interest
Column F - Reason
(Column F rows may contain "Machine Purchase", "On Account", or "Cash Advance" - each appears repeatedly in the column.)

=SUMIFS(G2:G131,F2:F131,"Machine Purchase",C2:C131,">75000") gives the correct result of 48,024

Is there a way to extract this result in a pivot table? I dragged the Reason field in the Rows area so there is a list of the three possible entries in column F. Is it possible to extract the total interest for each of the three, but only for the rows in the data set in Column C are > 75,000?

Thanks!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Not unless your table is also at the underlying data's row level which makes the Pivot unnecessary.
To get what you want some options are:
  • Have a helper column in the underlying data identifying the rows you want ie exceed $ 75k or maybe even $ brackets.
    Then use that field as a page filter
  • Use Power Query either instead of a pivot or to feed the pivot
  • Use Power Pivot and the data model and use Measures to get the result you need.
 
Upvote 0
This is very helpful. I am using what you have in your first option and it works fine. I'm also just starting to use pivot tables quite a bit want to be sure I am not missing something on how to use them.

I appreciate your response. Thanks!
 
Upvote 0
I used to use helper columns a lot. In case it helps give you some more ideas, here is just a quick view of some possibilities.
Vlookup with True helps you group things.
If you are not using Excel Tables I strongly encourage you to use them.
As a data source to a pivot table they automatically expand so you don't have to keep expanding your pivot tables data range.
As a source for a Lookup table, the lookup will automatically include any additional rows.

Book8
CFGHIJKLM
1PrincipalReasonInterestGroupingThresholdGroupingCategory
210,000Reason11000Low -Low
312,000Reason21200Low 20,000Mid
421,000Reason32100Mid 60,000High
550,000Reason45000Mid 100,000Very High
658,000Reason55800Mid 
760,000Reason66000High 
870,000Reason77000High  Threshold 75,000
980,000Reason88000HighGreater than 75,000
1090,000Reason99000HighGreater than 75,000
11110,000Reason1011000Very HighGreater than 75,000
12
13
14
15ThresholdGreater than 75,000
16
17Row LabelsSum of Interest
18High17000
19Very High11000
20Grand Total28000
Sheet1
Cell Formulas
RangeFormula
G2:G11G2=0.1*C2
H2:H11H2=VLOOKUP(C2,$L$2:$M$5,2,TRUE)
I2:I11I2=IF(C2>=$M$8,"Greater than " &TEXT($M$8,"#,##0"),"")
 
Upvote 0
Thanks - this is excellent advice. I have been using the grouping capability in a number of cases.

I agree with you on using tables - far more efficient. For what I am doing now, however, the data set will not change at all. In addition, I'm writing accounting problems for introductory students, and most of them have limited Excel experience, so I'm trying to stick to having them use basic cell references in their formulas. A table might be too advanced right now....

Appreciate your feedback! C
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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