Count Blank Cells that are within the Dynamic Range

lyq0077

New Member
Joined
Jul 27, 2015
Messages
10
I'm trying to include the empty cells that are in my dynamic range. For example,

A (A1)
Blank (A2)
B (A3)
Blank (A4)
C (A5)
Blank (A6)


I use the formula =OFFSET(Sheet1!A1,,,COUNTA(Sheet1!A:A),) which looks at the entire column and returns 3 and so the dynamic range only runs to A3, how can I rewrite the formula so it'll include all the way to A5 (Not A6 because A5 is the last cell with text/number in it)
 
Try,

1] for text in it only
=OFFSET(Sheet1!A1,,,MATCH("zzzz",Sheet1!A:A))

2] for number in it only
=OFFSET(Sheet1!A1,,,MATCH(9.99E+307,Sheet1!A:A))

3] for text/number in it
=OFFSET(Sheet1!A1,,,INDEX(MATCH(2,1/(Sheet1!A:A<>"")),))
 
Last edited:
Upvote 0
Giving the approximate version of MATCH a very large number to look for will always return the last cell in the range.
Because you are using an approximate version of MATCH the zzz is basically the "highest" value that match can return - but with text.
 
Upvote 0

Forum statistics

Threads
1,226,856
Messages
6,193,378
Members
453,792
Latest member
Vic001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top