+ Reply to Thread
Results 1 to 2 of 2

Lookup search how to ignore blank cells ?

  1. #1
    Registered User
    Join Date
    04-11-2015
    Location
    Amsterdam, Netherlands
    MS-Off Ver
    Dutch
    Posts
    3

    Lookup search how to ignore blank cells ?

    Goodmorning,

    I have a cell created in Excel to search on another tab if the word is recognized and if so that I see the value that stands with it.
    I have done that with the following formula;

    Sheets("Januari").Range("D" & Regelnummerbegin).Value = "=LOOKUP(2^15,SEARCH('#Gegevens'!$A$2:$A$" & Gegevenscount & ",F" & Regelnummerbegin & "),'#Gegevens'!$B$2:$B$" & Gegevenscount & ")"


    The problem I now have is that the value 'Gegevenscount' is count with the actual fields that are filled.
    But when I afterwards set more values to check they are ignored because the formula in the cell don't check those records.

    So i tried the following;

    Sheets("Januari").Range("D" & Regelnummerbegin).Value = "=LOOKUP(2^15,SEARCH('#Gegevens'!$A$2:$A$65000,F" & Regelnummerbegin & "),'#Gegevens'!$B$2:$B$65000)"

    Only then all the values are 0 as result because there are a few filled in cells but the most cells are empty and it's not working good.
    So can someone help me on how to edit the formula so that I can use the last formula only that it is ignoring the empty cells ?

    Thanks!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,660

    Re: Lookup search how to ignore blank cells ?

    If the data is added top->bottom (with no empty rows in between - just empty rows below data) you can try to include COUNTA in your formula, for instance:

    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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] Can lookup formula ignore blank cells until the lookup value has been entered?
    By Ju1cy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-13-2014, 01:32 PM
  2. Ignore blank cells and truly blank cells in named range?
    By hschillig in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-13-2014, 02:56 PM
  3. [SOLVED] How to ignore blank cells in Range Lookup?
    By Brand012 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 01-04-2014, 01:42 AM
  4. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  5. How can I make a macro ignore blank cells? - Blank Cells have formulas
    By mz1161 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2013, 08:54 AM
  6. Ignore Blank and Zero in Lookup.
    By Battledeck in forum Excel General
    Replies: 1
    Last Post: 11-28-2012, 08:11 PM
  7. [SOLVED] How to ignore blank cells while using Lookup function
    By EAGLEBUCKS in forum Excel General
    Replies: 7
    Last Post: 08-09-2012, 03:53 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