+ Reply to Thread
Results 1 to 5 of 5

If/VLookup/Match Formula Results Inconsistent

  1. #1
    Registered User
    Join Date
    06-18-2010
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Exclamation If/VLookup/Match Formula Results Inconsistent

    Hey folks,

    This is my first thread, so hopefully I can explain this well enough.

    I have two columns of information in two tabs (see attached). The second column, "Cutover Phase", in the second tab is where this formula is fighting me.

    The formula is:
    =IF(ISNA(VLOOKUP(A3,CHECKLIST,MATCH($B$2,'Reference Tab'!$2:$2,FALSE))),"NOPE!",(VLOOKUP(A3,CHECKLIST,MATCH($B$2,'Reference Tab'!$2:$2,FALSE),FALSE)))

    The VLookup references the instrument tag and finds in it the "Checklist" list on the first tab. I needed to add the Match function incase a user wanted to add a column between the "A" and "B" column (The attached example is just a small piece of a much bigger spreadsheet). I also have an ISNA function so it stands out incase the tag is deleted (Right now it says "NOPE!" until I can figure this out.

    Even though it's the same formula is used, for instrument tags that start with "AT", it results in a NOPE! instead of the cutover phase number. And after some playing around, I noticed if I put in the letters a thru h, it doesn't work. But if I put the letter i and up in, it works!!

    Why does it care what letter is in there? Any suggestions or recommendations would be greatly appreciated!
    Attached Files Attached Files
    Last edited by hardpenguin; 12-08-2010 at 05:06 PM.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: If/VLookup/Match Formula Results Inconsistent

    Hi hardpenguin,
    Welcome to the forum
    With Vlookup "The values in the first column of table_array must be placed in ascending sort order" Excel Help.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

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

    Re: If/VLookup/Match Formula Results Inconsistent

    Your first VLOOKUP does not have the FALSE 4th argument to determine exact match:

    =IF(ISNA(VLOOKUP(A3,CHECKLIST,MATCH($B$2,'Reference Tab'!$2:$2,FALSE),FALSE)),"NOPE!",(VLOOKUP(A3,CHECKLIST,MATCH($B$2,'Reference Tab'!$2:$2,FALSE),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.

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: If/VLookup/Match Formula Results Inconsistent

    Hey hardpenguin
    try combining isnumber/match/index

    =IF(ISNUMBER(MATCH('Formula Tab'!A3,'Reference Tab'!A1:A8,0)),INDEX('Reference Tab'!B1:B8,MATCH('Formula Tab'!A3,'Reference Tab'!A1:A8,0)),"Nope")

  5. #5
    Registered User
    Join Date
    06-18-2010
    Location
    Georgia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: If/VLookup/Match Formula Results Inconsistent

    Adding that missing FALSE seemed to do the trick, thanks!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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