+ Reply to Thread
Results 1 to 4 of 4

Vlookup and If Combination

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Vlookup and If Combination

    Hey Guys,

    I'm working on a formula, but I'm having trouble figuring out how it should work. I attached a sample file. What I'm trying to do is lookup column a on sheet 1 and find it on sheet 2, then if column d says red, it should say 'r' in colors, if column e says blue it should say 'b' in colors, etc... I'm not sure what the best way to do this is. I think I can use a series of vlookups, with 1 vlookup for each color column, but this may be cleaner with an if statement. Any thoughts?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup and If Combination

    Try this

    On sheet 2..
    In H2, put
    =TRIM(LEFT(D2)&" "&LEFT(E2)&" "&LEFT(F2)&" "&LEFT(G2))
    And fill down to the end.

    Then on Sheet 1
    In C2 put
    =VLOOKUP(B2,Sheet2!B:H,7,FALSE)

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Vlookup and If Combination

    That's a simple way to do it, thanks!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Vlookup and If Combination

    You're welcome.

+ 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. Combination VLookUp
    By croeder in forum Excel General
    Replies: 1
    Last Post: 06-09-2011, 09:55 PM
  2. Vlookup combination
    By Geoff1184 in forum Excel General
    Replies: 1
    Last Post: 09-16-2010, 05:56 PM
  3. And() if() vlookup() combination
    By meyero90 in forum Excel General
    Replies: 6
    Last Post: 05-06-2010, 06:00 PM
  4. Combination of H & Vlookup??
    By giantwolf in forum Excel Formulas & Functions
    Replies: 37
    Last Post: 09-06-2005, 07:05 PM

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