+ Reply to Thread
Results 1 to 3 of 3

How do I adding a condition to an IF and Vlookup forumula

  1. #1
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    How do I adding a condition to an IF and Vlookup forumula

    Title: How do I add a condition to an IF and Vlookup Formula:

    I need to edit a formula to include a condition. I attached an excel file for ease of explaining the problem. I want to say if $E$5 has “A to B” then F5 will automatically have BOR, but if E5 has anything else then the Vlookup formula applies.
    I was thinking something along this formula:
    =IF(AND($E$5<>”A to B”,ISBLANK($B5),"",VLOOKUP($B5,'Drop Down'!$D$1:$E$500,2,FALSE)))
    I know I need to add “BOR” in the formula above somewhere
    Where am I going wrong?

    Thanks
    Attached Files Attached Files
    Last edited by Coors; 08-28-2009 at 12:33 PM. Reason: Title typo

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

    Re: How do I adding a condition to an IF and Vlookup forumula

    Try:

    =IF($E5="A to B","BOR",IF(ISBLANK($B5),"",VLOOKUP($B5,'Drop Down'!$D$1:$E$500,2,FALSE)))
    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
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    134

    Re: How do I adding a condition to an IF and Vlookup forumula

    Works-Thanks for the quick reponse.

    Someday I will get this stuff...........

+ 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