Autonumbering formula that ignores empty cells containing formulas and consider them blank

edge37

Board Regular
Joined
Sep 1, 2016
Messages
102
Office Version
  1. 365
Platform
  1. Windows
Hello, I'm trying to get a working formula for autonumbering cells (B9:B38) only when they have visible values on them. And when there are blank cells or cells that has a formula with no visible values, the numbering stops or jumps to the next cell with values. I'm trying the formula:
Excel Formula:
=IF(LEN(B9)=0,"",(COUNTA($B$9:B9)))
And it would work great if the cells that have a formula, but appears empty, would be ignored and considered blank. The formula numbers every cell in the range because all of them have formulas (the formula is just a reference to other cells in a different worksheet of the same file), If I erase the formula in any of those cells, the autonumbering works perfect. Please check the pic where I also explain the case.

Thank you very much
 

Attachments

  • Screenshot_66.jpg
    Screenshot_66.jpg
    121.3 KB · Views: 12
Those cells are unlikely to be "blank" but will probably have a 0 in them. So you need to count <70 & >0
I put it like this:
Excel Formula:
=IF(D6:D11=0,"",COUNTIFS(D6:D11,"<70 & >0"))
but still do not work, I get a #SPILL! result (did I place the correction wrong?)
Summary: I need to count how many students have <70 grade in column D, excluding cells with formulas but blank.
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Those cells are unlikely to be "blank" but will probably have a 0 in them. So you need to count <70 & >0
I tried to put this in the formula:
Excel Formula:
=IF(D6:D14=0,"",COUNTIFS(D6:D14,"<70","<>0"))
but it gives me a #SPILL! error, maybe I did it wrong.
What I need is to count how many grades are <70 in column D6:D14, but excluding cells that appear blank eventhough they have a formula in them. Thank you
CUADRO DE NOTAS 2025.xlsm
BCD
51JORGE95
62LUIS66
73ANA100
84JOSE88
95PEDRO69
106JUAN95
117 
128 
139 
1410
SUMMARY
Cell Formulas
RangeFormula
D5:D13D5='10A (1)'!$R9
 
Upvote 0
Try
Excel Formula:
=COUNTIFS(D6:D14,"<70",D6:D14,">0")
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Count cells with values, excluding blanks & cells that have a formula but appear blank
There is no need to repeat the link(s) provided above but if you have posted the question at other places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,812
Messages
6,181,083
Members
453,021
Latest member
Justyna P

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