+ Reply to Thread
Results 1 to 3 of 3

Says Cells are Empty when they are Not

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    USA
    MS-Off Ver
    None
    Posts
    9

    Says Cells are Empty when they are Not

    Hello - I keep trying to run a function but it's not working because it says the cells are empty. When I trace the cells, they trace to a cell that has a value! I don't understand why I keep getting this response. Screenshot attached. Any help would be greatly appreciated. Thank you!!
    Attached Images Attached Images

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Says Cells are Empty when they are Not

    I cannot see the image, and I would most likely need to see a workbook to detect the problem.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Says Cells are Empty when they are Not

    Quote Originally Posted by hnhorner View Post
    Hello - I keep trying to run a function but it's not working because it says the cells are empty. When I trace the cells, they trace to a cell that has a value! I don't understand why I keep getting this response. Screenshot attached.
    First, attaching an actual Excel file is much better than an image. There are a lot of subtleties that we cannot resolve from an image.

    Second, if you are referring to the result of the IFERROR formula, it does not "say" cells are empty when they are not. It says there is no match or there is some other error, or the matched cell is empty.

    It appears that you are trying to match city names (column G) with a mix of names (column Z). Perhaps there is indeed no match. Off-hand, I do not see a match in the image. (But the image is very limited.)

    Another possible error: you match against the range Z2:Z334, but you index the range Z2:Z329. If the match occurs in Z330 to Z334, the INDEX expression returns an error.

    Also, you match against $Z$2:$Z334, but you index $Z$2:$Z$329. Should the latter part of the match range be $Z$334?

    Finally, it is suspicious that you reference G5 in a formula in row 8 (or later) and potentially the 4th row of a list of formulas. Not necessarily an error; just something you might need to reconsider.

    FYI, I believe the formula can be simplified to:
    =IFERROR(VLOOKUP(G5,$Z$2:$Z$334,1,0),"")
    Last edited by joeu2004; 12-27-2014 at 02:22 PM.

+ 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: 6
    Last Post: 08-29-2014, 08:31 AM
  2. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  3. Replies: 5
    Last Post: 05-13-2014, 10:19 AM
  4. Need to find empty filled cells in a column and copy to the empty cell below
    By Grahamfeeley in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-30-2014, 10:09 AM
  5. macro to colour empty cells (cells not recognized as empty)
    By Gerben in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2005, 11:05 AM

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