+ Reply to Thread
Results 1 to 6 of 6

Using Lookup in an Array

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    30

    Using Lookup in an Array

    Is there a way to lookup a value in an array covering several columns using a formula?

    In the example below I would like to enter a call number in the yellow cell, have the sheet search the green area and then return the "type" and "color" in the blue cells. I manually populated the blue cells with light grey text simply for representation of what I am looking for as a result. Seems like this could be done with lookup searching for an exact match, but it does not.

    I have also attached the actual sheet for the example as well.

    Any help would be greatly appreciated.


    ex1.jpg
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-02-2014
    Location
    Branson, MO
    MS-Off Ver
    365
    Posts
    8

    Re: Using Lookup in an Array

    Use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Confirmed with Ctrl+Shift+Enter

    Change the +1 to +2 for color
    Last edited by ndsutherland; 02-05-2015 at 04:32 PM.

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Using Lookup in an Array

    Hey Jeremy -

    I saw your problem and it reminded me of something similiar I have been working on. I found a similar problem on another post on this website (link below). With some slight adaptation, you can make this work for you.

    For the purposes of this presentation, I will call the full range (A7:X10) or whatever, "DataRange" and the Range containing the target Call # as "TargetCell"
    In this case, your grey box formula would be
    Type: =OFFSET(INDIRECT(ADDRESS(SUMPRODUCT(("DataRange"="TargetCell")*ROW("DataRange")),SUMPRODUCT(("DataRange"="TargetCell")*COLUMN("DataRange")),4)),0,1)
    Type: =OFFSET(INDIRECT(ADDRESS(SUMPRODUCT(("DataRange"="TargetCell")*ROW("DataRange")),SUMPRODUCT(("DataRange"="TargetCell")*COLUMN("DataRange")),4)),0,2)

    The post containing the meat of this solution is at: http://www.mrexcel.com/forum/excel-q...ire-sheet.html

  4. #4
    Registered User
    Join Date
    02-05-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    30

    Re: Using Lookup in an Array

    Awesome! I was able to get both to work with some slight adjustments. I do have a question though...

    @ndsutherland: How do I remove the border that appears with your formula?

    Thank you ndsutherland and Bstack! Now I can continue...

  5. #5
    Registered User
    Join Date
    02-05-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    30

    Re: Using Lookup in an Array

    haha... Nevermind ndsutherland...I just tried the "no borders" on the column and it worked fine. For some reason I assumed the formula was incorporating it. Doh!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2405
    Posts
    13,427

    Re: Using Lookup in an Array

    Here's another approach....in G3 and fill across. Although it is an array formula it does not have to be committed with Ctrl + Shift + Enter. Commit with Enter and fill across. It will automatically pick up the color column and is non-volatile:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 02-05-2015 at 06:34 PM.

+ 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. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  2. [SOLVED] Lookup question matching part of lookup value in the table array
    By kosmo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 11:07 AM
  3. Replies: 19
    Last Post: 05-09-2012, 03:31 AM
  4. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  5. Replies: 7
    Last Post: 06-19-2011, 12:51 PM

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