+ Reply to Thread
Results 1 to 10 of 10

IF AND OR nested formula

  1. #1
    Registered User
    Join Date
    12-26-2018
    Location
    Santa Barbara
    MS-Off Ver
    2016
    Posts
    14

    IF AND OR nested formula

    I am trying to do a formula that uses IF AND OR Functions. I thought this formula would work but it comes up with a #VALUE.

    =IFERROR(IF(AND(MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,0),0)+X158, IF(K158="Upgrade Multi-Year Annual Access",0,1)

    I want it to read if Month=AA1 and Right(L158,8) = Outbound then show a 1, or if K158= "Upgrade Multi-year annual access show a 0.

    If the AND Function is showing 1 and if K158 does not = Upgrade Multi-year annual access it would show a 1.

  2. #2
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: IF AND OR nested formula

    is this 1 formula??

    what is that space in the red? it looks like to separate formulas...

    =IFERROR(IF(AND(MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,0),0)+X158, IF(K158="Upgrade Multi-Year Annual Access",0,1)

  3. #3
    Registered User
    Join Date
    12-26-2018
    Location
    Santa Barbara
    MS-Off Ver
    2016
    Posts
    14

    Re: IF AND OR nested formula

    Yes, I'm trying to make it 1 formula. Should I not have a space there? It still returns #VALUE, when i delete that space.

  4. #4
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: IF AND OR nested formula

    but the end of your formula is =IFERROR(IF(AND(MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,0),0)+X158

    its like =SUM(1,2)+0, SUM(5,6)

    the blue color being the formula and the red being out of place at the end, which doesnt make sense...

    1)u understand what i mean? or should i explain better?

    2) what are you accomplishing with IF(K158="Upgrade Multi-Year Annual Access",0,1)

    -dave


    EDIT: does this work?

    =IFERROR(IF(AND(MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,IF(K158="Upgrade Multi-Year Annual Access",0,1)),0)+X158
    Last edited by Dave2018; 12-26-2018 at 05:01 PM.

  5. #5
    Registered User
    Join Date
    12-26-2018
    Location
    Santa Barbara
    MS-Off Ver
    2016
    Posts
    14

    Re: IF AND OR nested formula

    I see, so I would need to incorporate the last part into the first formula.

    I'm trying to have it read that if K158="Upgrade Multi-Year annual access" show a 0. So basically, there are two assumptions being made. If Month=AA1 and Right(L158,8) = "Outbound" then show a 1, or if K158= "Upgrade Multi-year annual access show a 0. If K158 does not = "Upgrade Multi-year annual access" and the AND function = 1, then formula will show a 1.

    Simplified
    iF A=4 and B=2 return 1 but if C= 3, return 0.

  6. #6
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: IF AND OR nested formula

    does this work?

    =IF(K158="Upgrade Multi-Year Annual Access",0,IFERROR(IF(AND(MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,0),0)+X158)

  7. #7
    Registered User
    Join Date
    12-26-2018
    Location
    Santa Barbara
    MS-Off Ver
    2016
    Posts
    14

    Re: IF AND OR nested formula

    Unfortunately, it does not work. It says "You've entered too few arguments for this function"

  8. #8
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: IF AND OR nested formula

    Quote Originally Posted by josephkoo21 View Post
    Unfortunately, it does not work. It says "You've entered too few arguments for this function"
    .

    here is a shorter version, and u can modify it with +X185 etc..

    =IF(AND(K158<>"Upgrade Multi-Year Annual Access",MONTH(H158)=$AA$1,RIGHT(L158,8)="Outbound"),1,IF(K158="Upgrade Multi-Year Annual Access",0))

  9. #9
    Registered User
    Join Date
    12-26-2018
    Location
    Santa Barbara
    MS-Off Ver
    2016
    Posts
    14

    Re: IF AND OR nested formula

    It works! Thank you!!

  10. #10
    Registered User
    Join Date
    02-11-2018
    Location
    Ohio
    MS-Off Ver
    2016
    Posts
    16

    Re: IF AND OR nested formula

    my pleasure

    (sometimes, its challenging to work on a formula that refrences A11 and H158, without it in front of you... . just a hint for future posts.)

    all the best

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Nested IF and nested Concatenation formula
    By VisionSmart in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-09-2018, 08:00 AM
  2. Help with a nested, nested, nested formula
    By duanrd2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2017, 04:43 PM
  3. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  4. Need help in nested formula
    By gerard_gonzales33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2012, 05:10 AM
  5. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  6. Need a nested formula
    By Doyle in forum Excel General
    Replies: 2
    Last Post: 02-20-2009, 05:08 PM
  7. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM

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