+ Reply to Thread
Results 1 to 2 of 2

IF assistance to check if value exists in a table first

  1. #1
    Forum Contributor
    Join Date
    04-11-2008
    Posts
    156

    IF assistance to check if value exists in a table first

    Hi,

    Please can you help me with the begining of this formula:

    =IF(VLOOKUP(A2,Sheet3!$A$2:$E$29,4,0),VLOOKUP(A2,Sheet3!$A$2:$E$29,4,0),IF(OR(D2="Ultimate Parent",D2="Independent Company"),A2,IF(AND(OR(AF2="England",AF2="Wales",AF2="Scotland",AF2="Northern Ireland"),T2<>""),T2,AD2)))

    What I want it to do is: IF A2 is found in Sheet3!$A$2:$E$29, then VLOOKUP(A2,Sheet3!$A$2:$E$29,4,0)

    Thank you

  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 help please

    Try:

    =IF(ISNUMBER(MATCH(A2,Sheet3!$A$2:$A$29,0)),VLOOKUP(A2,Sheet3!$A$2:$E$29,4,0),IF(OR(D2="Ultimate Parent",D2="Independent Company"),A2,IF(AND(OR(AF2="England",AF2="Wales",AF2="Scotland",AF2="Northern Ireland"),T2<>""),T2,AD2)))
    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.

+ 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