+ Reply to Thread
Results 1 to 8 of 8

Lookup An Entire Array?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    capacity okydach
    MS-Off Ver
    Excell for Mac 2011
    Posts
    4

    Talking Lookup An Entire Array?

    Hello All!

    I have a small workbook with 2 sheets that help me with payroll projections for my sales reps.

    The first sheet is a summary sheet that auto calculates based on quite a few formulas. In the top left corner of this sheet (A1) I have the first name of the sales rep (with the first letter capitalized).

    The second sheet is filled with 21 seperate small arrays. Each array is a specific payscale for each rep. I've selected each array and TITLED the array by the reps' first name.

    My goal is to write a formula that allows me to reference the reps' name on sheet 1, and lookup the appropriate array. As I change the first name in the top left hand corner of sheet one (A1), I want the formula I write to reference the corresponding array on sheet 2.

    Summary: (First name changes (cell A1 on sheet 1) and the array which the formula references changes since the title of each array is each reps' first name).

    Please let me know if you have any thoughts!!!
    Last edited by crbird; 06-06-2013 at 05:19 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Lookup An Entire Array?

    Could you please upload your spreadsheet with any sensitive information removed. It makes it easier for us to help you.
    Go Advanced --> Manage attachments
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    capacity okydach
    MS-Off Ver
    Excell for Mac 2011
    Posts
    4

    Re: Lookup An Entire Array?

    Sure! Thank you!!

    The Cell reference for the First name in this version ins't A1. in this example the first name is in red and it's cell D3. I know it may not make tons of sense right off the bat, so let me know.

    I've deleted a bunch of the arrays and sensitive information in sheet two. It now just has a few arrays, and one of them is titled "Clayton". That's the one I'm trying to get this to reference. The end goal is to have the commission percentage from the array for each rep display in cell I8--that's where this formula would go. It would replace the formula currently in that cell that I wrote long ago.

    Thanks again!
    Attached Files Attached Files

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,352

    Re: Lookup An Entire Array?

    Hi crbird and welcome to the forum,

    I didn't want to figure out where each of your VLookup tables were but I think I know where you want to go with this. I believe you need to use Indirect with Named Ranges. You would have a named range of cells on sheet 2 for each employee. Then you would name each of these blocks with the employee name. Then in your formulas you would use the indirect of what was in the name cell on sheet1 and it would look to the correct range on sheet2. See http://www.contextures.com/xlFunctions05.html and the Named Range section.

    I hope this helps and is what you are asking for.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Lookup An Entire Array?

    When you deleted stuff from your references tab, you got rid of some of your named ranges. That's fine, because you scrubbed it for sensitive information, but I have a question. Is the named range "FYRPayscal" being replaced with all the customized reps' payscales?

  6. #6
    Registered User
    Join Date
    06-06-2013
    Location
    capacity okydach
    MS-Off Ver
    Excell for Mac 2011
    Posts
    4

    Re: Lookup An Entire Array?

    I do apologize about that.

    But, yes. The reference FYRPayscale, MGRPayscale, and EXPPayscale will all be replaced with one payscale for each rep. Each rep has their own payscale that is titled with their first name... I just deleted them and left it general so you could see the idea. I hope this helps? Thank you so much for your help thus far.

  7. #7
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: Lookup An Entire Array?

    If that's the case then all you have to do is a find/replace for every instance of FYRPayscale, MGRPayscale, and EXPPayscale with Indirect($D$3). and make sure that the values in D3 are the same as the named ranges.

  8. #8
    Registered User
    Join Date
    06-06-2013
    Location
    capacity okydach
    MS-Off Ver
    Excell for Mac 2011
    Posts
    4

    Re: Lookup An Entire Array?

    Craig K. and MarvinP -- THANK YOU! You two are life savers. Thank you so very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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