Results 1 to 3 of 3

Thread: Nested if or function
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Apr 2014
    Posts
    283
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Nested if or function

    I have a nested IF OR formula, but both of the criteria to evaluate has the same result. My formula is:

    =IF(OR($A$4<>"D",$A$4=$D$3),IF(INDEX(DATA!$A$11:$P$89,MATCH($A76,DATA!$A$11:$A$89,0),1)=$A76,OFFSET(DATA!$P80,0,
    (-DATA!$P$8)),"Error"),IF(INDEX(DATA!$A$11:$P$89,MATCH($A76,DATA!$A$11:$A$89,0),1)=$A76,OFFSET(DATA!$P80,0,(-DATA!$P$8))
    ,"Error"))

    The formula works ok, but as both options for A4 has the same result, is there a way I can shorten this formula and
    make it less complex?

  2. #2
    Board Regular
    Join Date
    Jun 2014
    Location
    Oakland, CA
    Posts
    5,146
    Post Thanks / Like
    Mentioned
    42 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Nested if or function

    Hi,

    You don't need the duplicated 2nd half of the formula, try it like this:

    =IF(OR($A$4<>"D",$A$4=$D$3),IF(INDEX(DATA!$A$11:$P$89,MATCH($A76,DATA!$A$11:$A$89,0),1)=$A76,OFFSET(DATA!$P80,0,(-DATA!$P$8)),"Error"),"Error")

  3. #3
    New Member
    Join Date
    Jul 2018
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Nested if or function

    good solution

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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