+ Reply to Thread
Results 1 to 6 of 6

Is there a shorter way to use an array to look up multiple values?

  1. #1
    Registered User
    Join Date
    04-05-2013
    Location
    Gurnee, IL
    MS-Off Ver
    MS365 (PC) Version 2310
    Posts
    53

    Is there a shorter way to use an array to look up multiple values?

    I have a spreadsheet that lists the same part number multiple times. I am using arrays to find the rows on another tab that contain that part number. I am ultimately trying to find cell values in those rows.
    Please Login or Register  to view this content.
    I replace $1:$1 with $2:$2 in the next cell to find the second row that contains that part number, etc, etc. From that, I want to take the row references and put them in a formula to find the inventory locations for the part number in those given rows. Am I going about this the long way? Can I combine both steps in 1 formula?

    The tab that contains the array formulas is titled "FINAL". The tab that contains the rows (and ultimately the inventory locations I am looking for) is titled "QOH ALL". The part numbers are in column A on both tabs. The inventory locations are in column D on the QOH ALL tab.

    I hope this makes sense.

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Is there a shorter way to use an array to look up multiple values?

    I would add a helper column where I use the array formula to retrieve the row no. Then getting multiple values from that row is very easy, just use the INDEX function and the row no. Runs much easier. Is this what you mean?
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    04-05-2013
    Location
    Gurnee, IL
    MS-Off Ver
    MS365 (PC) Version 2310
    Posts
    53

    Re: Is there a shorter way to use an array to look up multiple values?

    That is what I did. I was just wonderinfg if there was a way to combine the steps.

    Now I'm having an issue incorporating the resulting row number into the INDEX formula. Will you please provide an example?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Is there a shorter way to use an array to look up multiple values?

    With Excel > 2003, you can use IFERROR instead of ISERROR, then you only need to put your formula in once.

    =IFERROR(Your formula, "")

    I don't understand why you need to "replace" ROW(1:1) with ROW(2:2). Doesn't it progress by itself as you drag it down?
    If we are not answering your questions properly, a sample workbook showing what you want would help. (Go Advancced>Manage Attachments)
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Is there a shorter way to use an array to look up multiple values?

    If you post a workbook with sample data it will be much easier to help you.

  6. #6
    Registered User
    Join Date
    04-05-2013
    Location
    Gurnee, IL
    MS-Off Ver
    MS365 (PC) Version 2310
    Posts
    53

    Re: Is there a shorter way to use an array to look up multiple values?

    Thanks! I figured out my issue with INDEX.

+ 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] Return multiple values from an array
    By tig1142 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2013, 08:31 PM
  2. Filter a long list by a shorter list of values, keeping repeated values
    By mrfloopa in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-15-2012, 09:50 PM
  3. Find a value in an array and return multiple values in an adjacent array
    By tonbra in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 08:35 PM
  4. Shorter SUMPRODUCT Formula (Multiple Criteria)
    By MobiusTrip in forum Excel General
    Replies: 5
    Last Post: 06-24-2010, 02:13 AM
  5. Create a Shorter List of Values - Help!
    By g/money in forum Excel General
    Replies: 1
    Last Post: 03-02-2009, 12:33 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