+ Reply to Thread
Results 1 to 11 of 11

Returning a specific value based on one value in a range of cells.

  1. #1
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Returning a specific value based on one value in a range of cells.

    Hello!

    I am looking at two tables, and I need to return a "salary" (hourly wage) value based on an employee "step" that advances every year. In Table 2 below, in the orange fields, I'm looking to return the proper value, for each person, for the step they advance each year.

    So, for example, in Status Quo Wages, in 2018 Abigail Brainard should be making $10.34, an Apple Picker's Step 3 Status Quo Salary.

    I need to say, "Based on that year's Column F step in Table 2, xyz person will make the wages in Columns D through O." I've tried a bunch of nested IF functions but haven't quite got there.

    I've attached a version of my table for reference.

    Thanks!

    Steven
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Returning a specific value based on one value in a range of cells.

    is that what you want?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Returning a specific value based on one value in a range of cells.

    This is exactly right! Thanks - I'll try to port this formula to my real life example and make sure I understand it - will follow up with any questions.

  4. #4
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Returning a specific value based on one value in a range of cells.

    Sandy666, this worked beautifully.

    Only problem is, I can't really understand it intellectually/technically. Can you help me understand what is going on here?

    I can't quite figure out why it turns it into essentially a VLOOKUP of distinct cells.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Returning a specific value based on one value in a range of cells.

    maybe it will explain better because my english is pidgin-english rather

    Returning a specific value based on one value in a range of cells.jpg

    Base syntax:
    INDEX(array, row_num, [column_num]) so first MATCH lookin' for the row_num in table (array) and second MATCH lookin' for the column_num in the same table (array) then return result.
    Last edited by sandy666; 05-03-2017 at 07:57 PM.

  6. #6
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Returning a specific value based on one value in a range of cells.

    Oh it's literally just where the two criteria intersect in both ranges? Genius.

    Do match criteria need to be located in a specific location, left to right? (For example if the contents of "Code" in Column C were actually in Column Z, would it still work?

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Returning a specific value based on one value in a range of cells.

    INDEX works in both direction

  8. #8
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Returning a specific value based on one value in a range of cells.

    Great. Thanks!

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Returning a specific value based on one value in a range of cells.

    Glad to help

    If problem is resolved read my "dancing" footnote

  10. #10
    Registered User
    Join Date
    05-03-2017
    Location
    los angeles
    MS-Off Ver
    365
    Posts
    25

    Re: Returning a specific value based on one value in a range of cells.

    I'm going to play with this today and tomorrow and then will mark it resolved - thanks! Just in case I get something wrong.

  11. #11
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Returning a specific value based on one value in a range of cells.

    so it will be next problem because this one from first post is resolved

+ 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. Selecting specific range of cells based on current month
    By sohshak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2016, 11:14 AM
  2. Returning Value based on specific values in a cell range
    By mgallacher in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2015, 11:30 AM
  3. Replies: 4
    Last Post: 08-04-2014, 04:48 AM
  4. [SOLVED] lookup a range of cells and populate specific cells based on matching data
    By RobertM01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2014, 08:18 PM
  5. VBA - If a range of cells do not contain specific text based on date ranges, then error.
    By Carrie_Smattick in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2013, 07:47 PM
  6. Replies: 6
    Last Post: 07-26-2012, 06:34 PM
  7. Returning a Certain Result based on a specific data range
    By marktaylor in forum Excel General
    Replies: 3
    Last Post: 11-26-2009, 07:25 AM

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