Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Is there anyway to simplify this formula?

This is my current formula:

=SUM(IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula #",175100,"Group
#",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula #",175100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",1575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",1575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",275100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",275100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",2575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",2575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",375100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",375100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",3575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",3575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",475100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",475100,"Group #",Sheet1!C2))))

I have at least 7 different Formula # possibilities that can occur in my
pivot table for each Group #. Is there any way to create a formula using
wildcards to recognize the Formula # using the last five digits of the
formula #? Every time I try to insert the wildcard I get an error message.
I haven't been able to get it to work with either the "?" or "*" characters.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default Is there anyway to simplify this formula?

I don't know of a way to use wildcards in a GETPIVOTDATA formula, but
you could set up a table with a list of Formula #s:

Formula# Data Calc
175100 * **

*For the Data formula, enter a GETPIVOTDATA formula that refers to the
formula entered in the first column, e.g.

=GETPIVOTDATA("Premix 1",$A$3,"Formula #",A2,"Group #",Sheet1!C2)

*For the Cal formula, test the result of the GETPIVOTDATA formula, e.g.

=IF(ISERROR(B2),0,B2)

Add a formula to total the entries in the Calc column.
This should be easier to maintain and decipher than having one giant
formula.

rancher fred wrote:
This is my current formula:

=SUM(IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula #",175100,"Group
#",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula #",175100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",1575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",1575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",275100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",275100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",2575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",2575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",375100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",375100,"Group
#",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",3575100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix 1",$A$3,"Formula
#",3575100,"Group #",Sheet1!C2))),IF(ISERROR(GETPIVOTDATA("Premix
1",$A$3,"Formula #",475100,"Group #",Sheet1!C2)),0,(GETPIVOTDATA("Premix
1",$A$3,"Formula #",475100,"Group #",Sheet1!C2))))

I have at least 7 different Formula # possibilities that can occur in my
pivot table for each Group #. Is there any way to create a formula using
wildcards to recognize the Formula # using the last five digits of the
formula #? Every time I try to insert the wildcard I get an error message.
I haven't been able to get it to work with either the "?" or "*" characters.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
please simplify mysearch formula. been drilbled to 2007 Excel Worksheet Functions 3 January 4th 07 02:43 AM
How to simplify "multiple if" formula markx Excel Worksheet Functions 4 May 16th 06 11:33 AM
Simplify excel formula Eintsein_mc2 Excel Discussion (Misc queries) 1 August 25th 05 02:33 PM
Simplify excel formula Lulu Excel Discussion (Misc queries) 2 August 25th 05 08:43 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM


All times are GMT +1. The time now is 06:31 AM.

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

About Us

"It's about Microsoft Excel"