+ Reply to Thread
Results 1 to 3 of 3

Skipping empty cells in Hlookup

  1. #1
    Registered User
    Join Date
    05-12-2023
    Location
    Jackson, WI
    MS-Off Ver
    365
    Posts
    1

    Skipping empty cells in Hlookup

    We have a production activity sheet that folks fill out. The next day they display the sheet at their morning meeting. To trigger the Hlookup they enter today's date, and it brings up the previous day's data. I have a hidden cell with "today-1" to have a reference cell to back up one day. On days that we didn't have production on that line, how can I have the hlookup go back to the last day with data?

    =IF(HLOOKUP(Data!$B$1,Data!$D$3:$NG$48,8,FALSE)="","",HLOOKUP(Data!$B$1,Data!$D$3:$NG$48,8,FALSE))
    Attached Images Attached Images

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

    Re: Skipping empty cells in Hlookup

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,909

    Re: Skipping empty cells in Hlookup

    Try this

    =IF(HLOOKUP(Data!$B$1,Data!$D$3:$NG$48,8,FALSE)="",
    HLOOKUP(Data!$B$1,Data!$D$3:$NG$48,7,FALSE),
    HLOOKUP(Data!$B$1,Data!$D$3:$NG$48,8,FALSE))

+ 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] Help w/ HLOOKUP while skipping blank cells
    By 808bige in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2014, 10:19 PM
  2. Need help with skipping empty cells in a column
    By Jeff up North in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2013, 12:18 PM
  3. Skipping empty cells
    By CESAR V. ARROYO in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2010, 09:04 PM
  4. Range skipping empty cells
    By CESAR V. ARROYO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-29-2009, 03:33 PM
  5. formulas skipping empty cells
    By Jocote46 in forum Excel General
    Replies: 1
    Last Post: 05-06-2009, 04:09 PM
  6. VLookUp skipping empty cells
    By vsnellman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2007, 10:23 AM
  7. skipping empty cells that are not empty
    By quizkiwi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2005, 02:05 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