×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Finding empty cells
2

Finding empty cells

Finding empty cells

(OP)
I have a range of data but within this range there are some empty cells, some cells containing text and others with numbers. How can I find the first empty cell within each column? Say my data was in range A1:B25 wth cells A3 and B15 empty I want cell A26 to display 3 and B26 to display 15.

I can do this using VB but i want to try and get away from this solution if possible. The spreadsheet will be used by others so i dont want to rely on them having to run a macro and as the sheet is 10000's line long and approx 10 column there is a noticeable delay for the macro to run so i dont want to autmomatically run the macro each time the sheet is updated.

RE: Finding empty cells

I think this is a classic, but I forgot who gave me the solution, so I can give no proper credit.
If you enter:
=MATCH("",IF(ISBLANK(A1:A25),"",A1:A25),0)
in cell [A26], and then hit Ctrl-Enter (enter as array formula), you should get your desired result. Of course, it might be better to use a named range to refer to your data.

Cheers,
Joerd

Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.

RE: Finding empty cells

Excel has a special command to find first blank cell in a range. Select range, Edit-Goto-Special-blanks.  To shorten the keying you can record a macro or use F5 for GOto command.

RE: Finding empty cells

a star for joerd and yakpol!

RE: Finding empty cells

Go to "Data", "Filter", "AutoFilter", select "(Custom...)", show row where: equal (= blank, do not type anything), it will filter out all empty cell. Then copy the whole worksheet to another worksheet, you can get what you want.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources