+ Reply to Thread
Results 1 to 8 of 8

Formula to look up name and return the tier

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Formula to look up name and return the tier

    I have in Worksheets("TSA Request").Range("F4") the name of an agent lets say its "Joe Smith" and on Worksheets("CS Data") in column F is their 1st name and column E is their last name - I want for it to search for the agents name and return the value in cell Worksheets("TSA Request").Range("F3"). Any help would be greatly appreciated!

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to look up name and return the tier

    Attach a sample workbook.

    Make sure there is just enough data to demonstrate your need.

    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.

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

    Re: Formula to look up name and return the tier

    Hi neighbor, a sample sheet would go a long way to getting what you need.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Formula to look up name and return the tier

    Here is a sample of my workbook - some may not work because I have a macro pulling the user name for the agent
    Attached Files Attached Files

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to look up name and return the tier

    Based off of the sample that you shared in post #4, what are the desired results of the formula?

    I don't see a Ray Webber anywhere in the CS Data sheet.

  6. #6
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: Formula to look up name and return the tier

    Correct - like I said I have a VBA code that is pulling the user name - so lets say Ray Webber was in cell F4 - I want it to find the name on sheet CS Data in cells (F+E) match the name then look in cell K to find the tier of the agent and put it on "TSA Request" cell F3

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

    Re: Formula to look up name and return the tier

    well vlookups would generally work but if the names are not the same then you won't have matches. the only way they can match is if you have a reference table somewhere that says Ray Webber is equal to Webber, James.
    but this for example would work in F3 of the TSA request =VLOOKUP($F$4,'CS Data'!$G:$K,5,FALSE) but based on your data it will return #N/A because they don't match.

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula to look up name and return the tier

    For the sake of a sample, you should manually make things look as they do in the real thing.

    Here are two options:

    1) F3 =INDEX('CS Data'!K:K,MATCH(MID(F4,FIND(" ",F4)+1,100)&", "&LEFT(F4,FIND(" ",F4)-1),'CS Data'!G:G,0))

    2) F3 =INDEX('CS Data'!K:K,INDEX(MATCH(F4,'CS Data'!F:F&" "&'CS Data'!E:E,0),0))

    If you chose option 2, make sure to limit your ranges to something as small as possible.

+ 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] How to include tier's in to a formula ?
    By eeps24 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-07-2017, 02:36 PM
  2. Creating a formula that will tier my data
    By soybn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2017, 05:44 PM
  3. Cumulative Tier Formula using SUMPRODUCT
    By alewis1983 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-04-2016, 10:22 AM
  4. [SOLVED] Gross Sales Tier Commission Formula
    By $J$L$G in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-09-2016, 05:49 PM
  5. [SOLVED] Tier commission pay formula.
    By MARIOV1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-28-2015, 04:52 AM
  6. Hierarchy chart - Connect 1st tier to 3rd tier
    By bjcowen9000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-22-2014, 05:24 AM
  7. How do I create a 26 'tier' IF formula?
    By callum in forum Excel General
    Replies: 5
    Last Post: 10-23-2005, 12:05 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