Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Excel to find first empty cells address in a given range

Posted on 2012-04-11
Medium Priority
183 Views
Hi Experts

I have a range in Excel with a data range("A1:A100") , I need to find the first cell in the range that is empty and return its address, does anyone know the formula to find this?

Dave.
0
Question by:MrDavidThorn
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3

LVL 18

Accepted Solution

krishnakrkc earned 2000 total points
ID: 37833627
Hi,

One option

Kris
0

LVL 14

Expert Comment

ID: 37833661
Hello Dave,

You could use a formula like this...

``````=MIN(IF(LEN(OFFSET(A1,0,0,MATCH("*",A:A,-1)-1,1))=0,ROW(OFFSET(A1,0,0,MATCH("*",A:A,-1)-1,1))))
``````

...which is an array-entered formula, entered with Ctrl + Shift + Enter, instead of just Enter.  This will give you an error if no answer is returnable.

Another formula, array-entered as well, could be...

``````=MATCH(TRUE,INDEX(A1:A100="",0),0)
``````

Regards,
Zack Barresse
0

LVL 14

Expert Comment

ID: 37833665
I should mention the first formula I provided will error out if you have formulas returning a null value, while the second one will not.

Zack
0

Author Comment

ID: 37833748
Brilliant thanks Kris/Zack

The end result of what I am actually trying to do is dyamically update a chart series I.e

=SERIES(BollingerBands!\$A\$6,,BollingerBands!\$A\$6:\$A\$500,3)

I know have the address of the last used cell thanks to your logic, how do I apply that actuall last cell address to the series

something like
=SERIES(BollingerBands!\$A\$6,,BollingerBands!\$A\$6:CELL("contents",A4),3)?
0

LVL 14

Expert Comment

ID: 37834963
Do you actually have data below the source data for the chart?

Zack
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
###### Suggested Courses
Course of the Month7 days, 18 hours left to enroll