Find Empty cell enter value then continue to next

CrashOD

Board Regular
Joined
Feb 5, 2019
Messages
118
Office Version
  1. 2021
  2. 2016
Platform
  1. Windows
Find First Empty cell in range A:A (say does end A10) and count only the none Empty cells and enter value to B1.
Then continues down (Say Ends A22) and count only the none Empty cells and enter value to B2.
Ect. Till end of book.
So for this B1 would have 9 since A10 is empty and B2 would have 11 since A11 - A21 have data.

Thanks so much!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
try this:
工作簿1
ABCD
1T9
2T11
3T8
4T0
5T0
6T0
7T0
8T0
9T0
100
11T0
12T0
13T0
14T0
15T0
16T0
17T0
18T0
19T0
20T0
21T0
220
23T0
24T0
25T0
26T0
27T0
28T0
29T0
30T0
310
320
330
340
350
Sheet1
Cell Formulas
RangeFormula
D1:D1048549D1=FREQUENCY(IF(A:A<>"",ROW(A:A)),IF(A:A="",ROW(A:A)))
Dynamic array formulas.
 
Upvote 0
this is the file and sheet your code but modified is going in to
File Name: ECT - Report - Copy.xlsm
Sheet: Recepit Ledger
D is the row it is to look and count.
=FREQUENCY(IF('[2022 - ECT - Real Estate - Copy.xls]RPT 1'!D:(D)<>"",ROW('[2022 - ECT - Real Estate - Copy.xls]RPT 1'!D:D)),IF('[2022 - ECT - Real Estate - Copy.xls]RPT 1'!D:D="",ROW('[2022 - ECT - Real Estate - Copy.xls]RPT 1'!D:D))) ' in column wanting cells before space count

is were it is counting from
File Name: 2022 - ECT - Real Estate - Copy.xls
Sheet Name: RPT 1
i get error
#NAME?

also is there away to tell what is the above the empty line. so if a D will display count in the cell else 0 or nothing.
I would then modify code for the different cells in D = Discount, F = Face, P = Penalty
File Name: ECT - Report - Copy.xlsm
Sheet: Recepit Ledger
 

Attachments

  • 1649220537291.png
    1649220537291.png
    91.8 KB · Views: 9
  • 1649220609978.png
    1649220609978.png
    223.8 KB · Views: 9
Upvote 0
When I took that off like you said I now get an error code I've never seen before. #SPILL
I tried using the dollar sign before each of the letters and that didn't seem to help either.
 
Last edited:
Upvote 0
When I took that off like you said I now get an error code I've never seen before. #SPILL
I tried using the dollar sign before each of the letters and that didn't seem to help either.
you are using Office 365? try this one:
Code:
=LET(t,FREQUENCY(IF(A:A<>"",ROW(A:A)),IF(A:A="",ROW(A:A))),FILTER(t,t))
 
Upvote 0
Solution
THAT WORKED GREAT THANKS SO MUCH!!!!!
do you know if i have to start a new post for a different line of code?
=IF(B3<>"", '[2022 - ECT - Real Estate - Copy.xls]RPT 1'!A(B3)+3, "")
I get #NAME?
Should be
3/1/2022 (from the [2022 - ECT - Real Estate - Copy.xls]RPT 1) B3 from current workbook + 3 for cell location on the [2022 - ECT - Real Estate - Copy.xls]RPT 1 in row A.
 
Upvote 0
THAT WORKED GREAT THANKS SO MUCH!!!!!
do you know if i have to start a new post for a different line of code?
=IF(B3<>"", '[2022 - ECT - Real Estate - Copy.xls]RPT 1'!A(B3)+3, "")
I get #NAME?
Should be
3/1/2022 (from the [2022 - ECT - Real Estate - Copy.xls]RPT 1) B3 from current workbook + 3 for cell location on the [2022 - ECT - Real Estate - Copy.xls]RPT 1 in row A.
how about:
=IF(B3<>"", '[2022 - ECT - Real Estate - Copy.xls]RPT 1'!B3+3, "")
 
Upvote 0
that brought in a long number. but the B3+3 i changed to A(B3)+3 for your code and i get name error again. it is in row A and i want to use b3 so A would be = to A8+3 for cell A11 after it is done with A8 + 3
so
=IF(B3<>"", '[2022 - ECT - Real Estate - Copy.xls]RPT 1'!A(B3)+3, "")

so it works. it is bringing the bill number in plus 3 to bill number but need it to pull date in and call row A11 or what ever b3 for a number +3.
so if b3 has 10 the needs at call A13.

thanks
 
Upvote 0
=IF(B4<>"", '[2022 - ECT - Real Estate - Copy.xls]RPT 1'!A("B4"+2,1), "")
NAME ERROR.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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