+ Reply to Thread
Results 1 to 4 of 4

HLOOKUP on multiple rows

  1. #1
    Registered User
    Join Date
    03-08-2021
    Location
    Germany
    MS-Off Ver
    Spreadsheets
    Posts
    2

    HLOOKUP on multiple rows

    Hi,

    sorry, tried to search but I didn't really find a solution.

    What I wanna do is enter a value in E1 so it checks both the first rows and the second rows, so that E2 returns 1 for A, B -> 2, C -> 3, D -> 4, E -> 5, F -> 6.
    With HLOOKUP it stops checking at C and doesn't continue to check in the row starting with D.

    Any ideas? Very much appreciated!

    Many thanks!
    ManosBildschirmfoto 2021-03-08 um 18.48.51.jpg
    Attached Files Attached Files
    Last edited by radma011; 03-08-2021 at 01:54 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,328

    Re: HLOOKUP on multiple rows

    Maybe this:

    =SUMPRODUCT(--($A$1:$C$3=$E$1),$A$2:$C$4)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    03-08-2021
    Location
    Germany
    MS-Off Ver
    Spreadsheets
    Posts
    2

    Re: HLOOKUP on multiple rows

    Thanks Glenn... Sorry that was unclear from my side... In my actual sheet the numbers are text. Attached another version
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,328

    Re: HLOOKUP on multiple rows

    This may or may not work... Your profile shows "spreadsheets". That is not an Excel version. Please amend it to show your ACTUAL Excel version.

    THIS works for Excel 2010+. Next time... please remember to include represntative data (using numbers as a surrogate for text is not representative!!).

    =INDEX($A$1:$C$4,AGGREGATE(14,6,ROW($A$1:$C$4)/(A$1:$C$4=$E$1),1)+1,AGGREGATE(14,6,COLUMN($A$1:$C$4)/(A$1:$C$4=$E$1),1))
    Attached Files Attached Files

+ 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. Replies: 10
    Last Post: 08-12-2017, 09:57 AM
  2. [SOLVED] Hlookup with rows (an array)
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-03-2015, 02:42 AM
  3. [SOLVED] HLOOKUP problems when new rows added
    By ericrichard25 in forum Excel General
    Replies: 7
    Last Post: 01-12-2015, 07:23 PM
  4. [SOLVED] HLOOKUP cheapest value from multiple rows
    By jamiegfinch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-01-2014, 10:43 PM
  5. HLOOKUP Multiple Rows
    By njfeathe85 in forum Excel General
    Replies: 6
    Last Post: 08-19-2011, 07:43 AM
  6. hlookup 2 values on 2 rows and sum column
    By dexter87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2011, 09:50 PM
  7. Hlookup failing when inserting new rows
    By churnedprism in forum Excel General
    Replies: 2
    Last Post: 07-19-2010, 10:55 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