+ Reply to Thread
Results 1 to 2 of 2

Look up one value, and return long column

Hybrid View

dxg169 Look up one value, and return... 02-25-2015, 05:53 AM
Pete_UK Re: Look up one value, and... 02-25-2015, 06:48 AM
  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Birmingham, UK
    MS-Off Ver
    MS Office 2010
    Posts
    7

    Look up one value, and return long column

    Hi there,
    I think this ones a complicated one.

    I want to look up one cell value across a number of headings, and then return the whole column and values below that heading. I've attached an example work sheet.

    In this example I want to look at the cell next to 'Variable:' and return the list of values below that cell where I have put ?marks.

    Example sheet.xlsx

    This look up will be to a different work sheet. The end goal will be for me to change the variable that is look up (perhaps to x, or v, or y) and return the corresponding column.

    If in addition the column values could be transposed in the formula to result in a row of the same values that would also be grateful.

    Thanks in advance. Rep to annoying who helps a struggling man!

    D
    Last edited by dxg169; 02-25-2015 at 06:01 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,409

    Re: Look up one value, and return long column

    Put this formula in B17:

    =INDEX($B$3:$G$10,ROWS($1:1),MATCH($B$16,$B$2:$G$2,0))

    then copy down to B24. If you want the entries to go across the row, then put this formula in B17:

    =INDEX($B$3:$G$10,COLUMNS($B:B),MATCH($B$16,$B$2:$G$2,0))

    and copy across to I17.

    Hope this helps.

    Pete

+ 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] =IF and =SUMIF formulas creating long long long data processing times.
    By comp in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 03-26-2014, 02:59 PM
  2. Return multiple values from long list
    By dane523 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-09-2012, 10:56 AM
  3. Return Value down a Column as long as Criteria is Met
    By Jonathan78 in forum Excel General
    Replies: 7
    Last Post: 02-29-2012, 02:23 AM
  4. Replies: 4
    Last Post: 01-02-2010, 09:18 PM
  5. Search column - return row found in long text string
    By JayL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-05-2005, 12:06 AM

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