+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP formula for multiple fields/ranges?

  1. #1
    Registered User
    Join Date
    10-18-2016
    Location
    Frankfurt, Germany
    MS-Off Ver
    2010
    Posts
    82

    VLOOKUP formula for multiple fields/ranges?

    There are 3 tabs - Data, User Table (Contains employee names and managers/department they belong to), and Summary. There are columns from A to AA in the Data tab. Between this range, Column I contains plain text, examples;

    I2: "John Smith" (Employee found in User Table)
    I3: "Customer" (Individual customer, no lookup available)
    I4: "Alan Mann" (Former employee who is no longer in User Table)

    I need to create a (v)Lookup in Column S2 down of the "Group" the fields in Column I belong to. Example;

    I2: "John Smith" ------ S2: "Customer Service"
    I3: "Customer" ------- S2: "Customer"
    I4: "Alan Mann" ------- S2: "Leavers"

    Where I am going wrong is i'm not able to figure out how to nest the vlookup and Iferrors? in the formula to account for all 3 outcomes.


    Many thanks in advance!
    Last edited by manny88; 11-02-2016 at 04:47 PM.

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP formula for multiple fields/ranges?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    10-18-2016
    Location
    Frankfurt, Germany
    MS-Off Ver
    2010
    Posts
    82

    Re: VLOOKUP formula for multiple fields/ranges?

    Hi, I don't think the question needs an attachment to explain or illustrate it further. It just requires a successful formula that would account for the 3 outcomes. The actual worksheet I am working on is only accessible at work and I cannot use that information for DPA reasons.


    Just for this however, I have made a quick template of the file for you. The only difference on this are the columns, which I have highlighted in red. I am looking at Columns K and Column V. The lookup tables are in the User Table tab and the Group Table tab. You will be able to see a formula in Column V of my (failed) attempt.

    Many Thanks
    Attached Files Attached Files
    Last edited by manny88; 11-02-2016 at 05:20 PM.

  4. #4
    Registered User
    Join Date
    10-18-2016
    Location
    Frankfurt, Germany
    MS-Off Ver
    2010
    Posts
    82

    Re: VLOOKUP formula for multiple fields/ranges?

    Maybe this? Looks to be okay, I think. I'll know for certain tomorrow morning IFERROR(VLOOKUP(K2,USER_Table!C:E,2,FALSE),IFERROR(VLOOKUP(K2,'Group Table'!A:A,1,FALSE),"Leavers"))

  5. #5
    Registered User
    Join Date
    10-18-2016
    Location
    Frankfurt, Germany
    MS-Off Ver
    2010
    Posts
    82

    Re: VLOOKUP formula for multiple fields/ranges?

    Resolved myself. FYI so thread can be closed. Answer:


    =IF(LEFT(I2,8)="Customer","Created by Customer",IFERROR(VLOOKUP(I2,User_Table1[[Full_Name]:[Group]],2,FALSE),"Leavers))

+ 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. Vlookup On Duplicate Fields with Multiple Values
    By Excel_noob_888 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-14-2015, 01:18 AM
  2. vlookup multiple ranges
    By 13lack13lade in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-01-2014, 10:18 PM
  3. Comparing Fields with Multiple Data Ranges
    By amyb2008 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2013, 02:56 AM
  4. Replies: 1
    Last Post: 04-22-2012, 06:49 PM
  5. Create a nesting formula w/ multiple conditions based on fields w/VLOOKUP
    By NiqueDomie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2011, 09:59 AM
  6. VLOOKUP with multiple fields
    By JulianCR in forum Excel General
    Replies: 8
    Last Post: 09-21-2010, 03:05 PM
  7. multiple ranges on Vlookup
    By lpj in forum Excel General
    Replies: 19
    Last Post: 01-11-2006, 01:50 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