Please see attached. I need to tweak the formula to add another layer of (IF) statement to pull data from corresponding tables per selected criteria. Thanks in advance
Please see attached. I need to tweak the formula to add another layer of (IF) statement to pull data from corresponding tables per selected criteria. Thanks in advance
=IF(ISERROR(W2),X2,(+X2+W2)-((+X2+W2)*VLOOKUP($B2,'CWExp & Template Titles'!$A$5:$B$18,2,FALSE)))
why the iserror ? there is nothing in column w to give an error
oh and use in col j
=IF(OR($J2={"lost","Canceled","Cancelled"}),"Canceled",TEXT($Q2,"YYYY"))
other bits are cluttered
=IF(OR(SUM($Y2)=0,SUM($AG2)=0) is the same as =IF(OR($Y2=0,$AG2=0) or even just if($y2*$ag2=0
Last edited by martindwilson; 04-28-2011 at 01:24 PM.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Try, in AJ2:
copied down and across.Please Login or Register to view this content.
This Part added in IFERROR(MATCH($M2,'Spend Curve'!$A:$A,0)-1,0) offsets to the corresponding table, if it exists in the other sheet, otherwise it use the top default table
Last edited by NBVC; 04-28-2011 at 01:39 PM.
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
It looks as though you want
=IF(OR($Y2=0,$AG2=0),0,IFERROR(MAX(0,$Y2*INDEX('Spend Curve'!$B$2:$R$15,
MATCH($M2,'Spend Curve'!$A:$A,0)+MATCH($B2,'Spend Curve'!$A$1:$A$15,0)-1,
12+((YEAR(AJ$1)*12+MONTH(AJ$1)-12)-($C2*12+MONTH($Q2)-12)))-SUM($AA2,$AI2:AI2,-$AI2)),0))
but this returns all zeroes.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks