+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Isna/vlookup

  1. #1
    Registered User
    Join Date
    05-08-2010
    Location
    AZ
    MS-Off Ver
    Excel 2007
    Posts
    49

    Isna/vlookup

    Hello,

    I am having a problem getting this data to pull correctly. I have used the same code for other data in the same spreadsheet but this part doesn't seem to work.

    =IF(ISNA(VLOOKUP(A1,Data!$A$4:$B$38,2,FALSE)),0,VLOOKUP(A1,Data!$A$4:$B$38,2,FALSE))

    This is the code I am using yet when there is data it still inputs a 0.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: ISNA/VLOOKUP Help

    Hi,

    It's not clear what you're trying to look up. Your B1 formula is looking up the A1 value 1 in column 1 of your data table, but this doesn't contain the value 1, only the T-??? codes. Hence B1 is correctly returning the value 0.

    Regards
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-08-2010
    Location
    AZ
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: ISNA/VLOOKUP Help

    It pulls from the data from Data!$A$4:$B$38 though which has the rankings next to the stores. I want the store next to rank 1 to pop into B1 on the results tab.

  4. #4
    Registered User
    Join Date
    05-08-2010
    Location
    AZ
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: ISNA/VLOOKUP Help

    Do I need to put the rank on the left of Stores?

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: ISNA/VLOOKUP Help

    Yes, the lookup value has to be in the first column of your table to use VLOOKUP.
    Remember what the dormouse said
    Feed your head

+ 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