+ Reply to Thread
Results 1 to 5 of 5

HLOOKUP with moving row_index_num

  1. #1
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 16.89.1 & Office 365 on Windows 11
    Posts
    25

    HLOOKUP with moving row_index_num

    I have this data setup in this way because its how its been produced from the inventory database:Screen Shot 2020-05-02 at 9.09.05 AM.png

    Im using HLOOKUP on column BZ5 for example:

    =HLOOKUP(BZ$1,season,2,FALSE)*($BK5+$BL5*BZ$2)

    where BZ$1 is the lookup value, month name "January"
    where season is currently the SI range from BN4:BY5 because I was working on that first row, row 5.
    where 2 picks the 2nd row in my range, which would be row 5 value for SI in order to multiply it by the LTF.

    But for the second product, row 6, the formula is copied properly except for the season range:

    =HLOOKUP(BZ$1,season,2,FALSE)*($BK6+$BL6*BZ$2)

    Do I set up my range differently or how do I make the range's 2nd column move? Or do I need to select the entire range down to my last row, but then how would I select the row_index_num?
    Attached Files Attached Files
    Last edited by marciokoko; 05-02-2020 at 02:09 PM. Reason: excel file

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,225

    Re: HLOOKUP with moving row_index_num

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 16.89.1 & Office 365 on Windows 11
    Posts
    25

    Re: HLOOKUP with moving row_index_num

    attached in OP.

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

    Re: HLOOKUP with moving row_index_num

    Please try at BZ5

    =HLOOKUP(BZ$1,BN$4:BY5,ROWS(BN$4:BY5),0)*($BK5+$BL5*BZ$2)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-30-2019
    Location
    Honduras
    MS-Off Ver
    mac office 16.89.1 & Office 365 on Windows 11
    Posts
    25

    Re: HLOOKUP with moving row_index_num

    It didnt work when i copy it down to the next row, which is what im trying to do.

    I did insert a col so everyting shifted right 1 column, but i followed your formula with the respective adjustments and I get #VALUE on the next row below.

    =HLOOKUP(BZ$1,BN$4:BY5,ROWS(BN$4:BY5),0)*($BK5+$BL5*BZ$2)

    It keeps the table array BN$4:BY5 which is fine, but it also keeps ROWS(BN$4:BY5) fixed when in reality it should drop to the next row down.

    I got as far as here, it works, its not too clean and looks very frail, but it works.
    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. [SOLVED] HLOOKUP with more than row_index_num
    By CATG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2013, 08:53 PM
  2. HLOOKUP Help. HLOOKUP links to Drop down list problems
    By finalmike in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2013, 07:08 PM
  3. Moving location of file that had Hlookup function
    By telnoman in forum Excel General
    Replies: 0
    Last Post: 05-26-2010, 01:15 PM
  4. Moving on a Hlookup by a number of cells each time??
    By turbofatty in forum Excel General
    Replies: 7
    Last Post: 11-02-2009, 11:48 AM
  5. HLOOKUP in HLOOKUP, Base Estimate Table in Excel
    By gqdallas in forum Excel General
    Replies: 20
    Last Post: 10-19-2009, 01:41 PM
  6. HLOOKUP Row_index_num help
    By matt_the_brum in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-20-2006, 08:39 AM
  7. [SOLVED] Changing the Row_index_num via HLOOKUP
    By Mr. G. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-02-2005, 01:06 PM

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