Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Using SUMIFs on a changing Pivot Table - Help!

Hello all

I have a pivot table with revenue as the data, dates as the row fields and
the column fields as countries. I am using a SUMIF formula to add together
the revenue for numerous dates depending on what dates the user specifies.

The problem however is that the column fields in the pivot change if a new
country comes along and then the formula reads the wrong column.

For example, if I want to add up the revenue for the USA which is in column
C my formula would say {=SUMIF(A6:A10,B1,C6:C10)}. However if a new country
comes up e.g. Thailand and pushes the USA into column D then the above
formula would add up the revenue for Thailand not the USA.

Is there a better formula to use to do this?




--
James.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 457
Default Using SUMIFs on a changing Pivot Table - Help!

Assuming your PivotTable has subtotals, you might be able to use some
version of the GETPIVOTDATA function. (see XL help)

--
Best Regards,

Luke M
"James" wrote in message
...
Hello all

I have a pivot table with revenue as the data, dates as the row fields and
the column fields as countries. I am using a SUMIF formula to add together
the revenue for numerous dates depending on what dates the user specifies.

The problem however is that the column fields in the pivot change if a new
country comes along and then the formula reads the wrong column.

For example, if I want to add up the revenue for the USA which is in
column
C my formula would say {=SUMIF(A6:A10,B1,C6:C10)}. However if a new
country
comes up e.g. Thailand and pushes the USA into column D then the above
formula would add up the revenue for Thailand not the USA.

Is there a better formula to use to do this?




--
James.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 376
Default Using SUMIFs on a changing Pivot Table - Help!

Hi James

As Luke has told you, GetPivotData is designed to deal with exactly this
type of situation.
However, why are you wanting to do these calculations outside of the PT?
Can you not just filter for the range of dates you want, and use Grouping to
Group together the countries you need in your Summary

Which version of XL are you using?

--

Regards
Roger Govier

"James" wrote in message
...
Hello all

I have a pivot table with revenue as the data, dates as the row fields and
the column fields as countries. I am using a SUMIF formula to add together
the revenue for numerous dates depending on what dates the user specifies.

The problem however is that the column fields in the pivot change if a new
country comes along and then the formula reads the wrong column.

For example, if I want to add up the revenue for the USA which is in
column
C my formula would say {=SUMIF(A6:A10,B1,C6:C10)}. However if a new
country
comes up e.g. Thailand and pushes the USA into column D then the above
formula would add up the revenue for Thailand not the USA.

Is there a better formula to use to do this?




--
James.

__________ Information from ESET Smart Security, version of virus
signature database 5172 (20100604) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 5172 (20100604) __________

The message was checked by ESET Smart Security.

http://www.eset.com



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using SUMIFs on a changing pivot table - help James Excel Discussion (Misc queries) 0 June 4th 10 10:42 AM
changing a calculation in a pivot table pat67 Excel Worksheet Functions 0 February 22nd 10 08:56 PM
Pivot Table changing itself? PaulW Excel Discussion (Misc queries) 1 February 16th 07 03:18 PM
Changing the Layout of a Pivot Table prana1 Excel Discussion (Misc queries) 5 February 10th 07 03:08 AM
Pivot Tables -changing datasource for exsting Pivot Table kfschaefer Setting up and Configuration of Excel 0 May 30th 06 06:36 PM


All times are GMT +1. The time now is 03:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"