+ Reply to Thread
Results 1 to 6 of 6

IF formula with multiple conditions

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,954

    IF formula with multiple conditions

    Sorry, but I'm getting myself confused on an if formula, and hope I can get some help with it.

    Here's what I'm trying to do:

    1) IF AL2 contains something, put a blank
    2) else, if AL2 is blank, and IF AH2 AND AI2 are both blank, put a blank.
    3) However, if AL2 doesn't contain anything, and IF AH2 has something, put the results of the first Vlookup
    4) IF AH2 has nothing, and If AI2 has something, put the results of the second Vlookup.

    Below is my attempt so far, without even attempting the first condition. Any help on this is greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by NBVC; 09-13-2011 at 01:33 PM.

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

    Re: IF formula with multiple conditions

    Does this work?

    Please Login or Register  to view this content.
    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.

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,954

    Re: IF formula with multiple conditions

    Almost. IF AL is blank, and AH and AI are blank, it's putting nothing.
    IF AL is blank, AH has a value, it's putting the result of the vlookup.
    However, if AL is blank, and AH is blank, yet AI has a value, it's not putting the result of the vlookup using AI.

  4. #4
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,954

    Re: IF formula with multiple conditions

    I found it. You had AL in one spot instead of AI. I fixed it, and the formula works great. Here's the final formula:
    Please Login or Register  to view this content.

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

    Re: IF formula with multiple conditions

    That second reference in the AND should have been to AI2, not AL2...

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,954

    Re: IF formula with multiple conditions

    Thanks NBVC. I appreciate your followthrough on this one. That's a pretty nifty IF formula; I'm learning how to do them, but this one was way over my head. Thanks for straightening me out.

+ 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