+ Reply to Thread
Results 1 to 6 of 6

Lookup text over multi column and row array to return row number

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Lookup text over multi column and row array to return row number

    Hi guys

    Can't think how is best to tackle this one.

    I've got a multi row and column array that I want to be able to find the lookup value in to return the row number or row result

    I've popped a simple example in the attached workbook. Anyone able to help please? I've tried a lookup but I'm not quite getting there.

    Thanks

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Lookup text over multi column and row array to return row number

    Please try

    =INDEX(E3:E5,MAX(INDEX(ROW(F3:I5)*(F3:I5=C2),))-ROW(E2))

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Lookup text over multi column and row array to return row number

    fab, thankyou

  4. #4
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Lookup text over multi column and row array to return row number

    I've had to do -19 at the end of my actual formula in the real data. I'm wondering what dictates what the final row deduction is as it's -2 in the mini example I did and -19 in my real workbook and I can't really tell how this number is being driven

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Lookup text over multi column and row array to return row number

    -ROW(E2) E2 is the header row

    this make

    ROW(F3:I5) -ROW(E2) start from 1

  6. #6
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    377

    Re: Lookup text over multi column and row array to return row number

    Ah ok understood. That's because my actual table headings are on row 19

+ 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. How to do an array lookup, and return the header if the column.
    By markmarhon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2019, 03:35 AM
  2. Replies: 7
    Last Post: 02-01-2016, 03:49 AM
  3. Replies: 5
    Last Post: 11-24-2015, 08:15 AM
  4. [SOLVED] 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array
    By Weasyb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2015, 12:54 PM
  5. [SOLVED] Lookup a value in one array, and return a corresponding column/row in another array
    By Gunther Maplethorpe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2012, 08:47 PM
  6. Replies: 5
    Last Post: 09-12-2012, 01:27 PM
  7. Replies: 13
    Last Post: 12-03-2010, 10:39 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