+ Reply to Thread
Results 1 to 9 of 9

vlookup formula not returning the value i need

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    vlookup formula not returning the value i need

    I can't figure out why my vlookup isn't returning the column M in the Overall Tab isn't returning the Region from the CBSA to Region Tab. Why? Is there a solution?Region Help.xlsx

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: vlookup formula not returning the value i need

    You can't look up two values (you are trying to look up both the State and the Country)

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: vlookup formula not returning the value i need

    Gotcha - I need it to look up both values though. Is there a way to do that?

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: vlookup formula not returning the value i need

    Looking at it it appears you trying to combine F2&G2 in the first part of your vlookup then reference it in the CBSSA to Regions sheet. Is that right?
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  5. #5
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: vlookup formula not returning the value i need

    That's correct. I want it to have an exact match of the state then county and display the region.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: vlookup formula not returning the value i need

    How about something like this?
    =VLOOKUP(F2&G2,'CBSA to Regions'!C:E,3,FALSE)
    where you put in a helper column in the CBSA to regions sheet that concatinates columns A & B (put in col C) then works off that?

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: vlookup formula not returning the value i need

    Hi,

    Try, in M2 and copy down:

    =INDEX('CBSA to Regions'!$D$2:$D$3215,MATCH('Overall Database'!F2&'Overall Database'!G2,INDEX('CBSA to Regions'!$A$2:$A$3215&'CBSA to Regions'!$B$2:$B$3215,,),0))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  8. #8
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: vlookup formula not returning the value i need

    Both of those worked! Thanks!

  9. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: vlookup formula not returning the value i need

    Another:
    in M2:
    =VLOOKUP(G2,INDIRECT("'CBSA to Regions'!B" & MATCH(F2,'CBSA to Regions'!A:A,0) & ":D" & MATCH(F2,'CBSA to Regions'!A:A)),3)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Vlookup Formula Not Returning All Data Properly
    By BigDawg15 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-26-2012, 09:30 PM
  2. Replies: 15
    Last Post: 09-27-2011, 01:22 PM
  3. Replies: 2
    Last Post: 06-27-2011, 09:11 PM
  4. VLookup formula returning an incorrect result
    By Spiritseeker in forum Excel General
    Replies: 2
    Last Post: 03-23-2010, 07:51 AM
  5. Vlookup returning formula
    By Juran in forum Excel General
    Replies: 8
    Last Post: 04-06-2009, 10:06 PM

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