Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Folks
I urgently need help with this function. I'm trying to make this function dynamic, i.e. depending on some condition, make some members disappear or otherwise. =getpivotdata("Loads",'Pivot Plan'!$a$3,"SHIPTO",A1,"MILL",B1 & IF(D1="ALL","",","&"PRODUCT LINE")&IF(D1="ALL","",","&"LINE1")) If cell D1 has value "ALL" then both "Product Line" and its value ("LINE1") are not used, if otherwise they should be used. I've wasted hours playing with syntax, such as putting commas into separate "if" statements, nothing works. Appreciate any help. Thanks |
#2
![]() |
|||
|
|||
![]()
would like to help but need more info. Its very hard to picture your data
from the getpivotdata formula. Can you add a small table of data and describe in a sentence specifically what you're trying to accomplish? " wrote: Folks I urgently need help with this function. I'm trying to make this function dynamic, i.e. depending on some condition, make some members disappear or otherwise. =getpivotdata("Loads",'Pivot Plan'!$a$3,"SHIPTO",A1,"MILL",B1 & IF(D1="ALL","",","&"PRODUCT LINE")&IF(D1="ALL","",","&"LINE1")) If cell D1 has value "ALL" then both "Product Line" and its value ("LINE1") are not used, if otherwise they should be used. I've wasted hours playing with syntax, such as putting commas into separate "if" statements, nothing works. Appreciate any help. Thanks |
#3
![]() |
|||
|
|||
![]()
You could enclose the entire GETPIVOTDATA formula in an IF function:
=IF(D1="ALL",GETPIVOTDATA("Loads",$A$3,"SHIPTO",A1 ,"MILL",B1), GETPIVOTDATA("Loads",$A$3,"SHIPTO",A1,"MILL",B1, "Product Line","Line1" )) wrote: Folks I urgently need help with this function. I'm trying to make this function dynamic, i.e. depending on some condition, make some members disappear or otherwise. =getpivotdata("Loads",'Pivot Plan'!$a$3,"SHIPTO",A1,"MILL",B1 & IF(D1="ALL","",","&"PRODUCT LINE")&IF(D1="ALL","",","&"LINE1")) If cell D1 has value "ALL" then both "Product Line" and its value ("LINE1") are not used, if otherwise they should be used. I've wasted hours playing with syntax, such as putting commas into separate "if" statements, nothing works. Appreciate any help. Thanks -- Debra Dalgleish Excel FAQ, Tips & Book List http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
dynamic range for excel chart | Excel Discussion (Misc queries) | |||
Difference in number of Excel NewsGroups | Excel Discussion (Misc queries) | |||
sharing/using/saving Excel 2002 files in Excel 2003 | Excel Discussion (Misc queries) | |||
Excel 2002 and 2000 co-install. Control Which Starts ? | Excel Discussion (Misc queries) |