+ Reply to Thread
Results 1 to 4 of 4

Multiple "IF" formula question

  1. #1
    Registered User
    Join Date
    05-21-2007
    Posts
    57

    Smile Multiple "IF" formula question

    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
    Attached Files Attached Files

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Multiple "IF" formula question

    =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

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Multiple "IF" formula question

    Try, in AJ2:

    Please Login or Register  to view this content.
    copied down and across.

    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.

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Multiple "IF" formula question

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1