Don't Count Cells Question

Killer17

Active Member
Joined
Jun 30, 2007
Messages
258
Hey

I'm using this formula and have added two extra cells but I don't want this formula to count them, how would I create this formula not to count the 2 new cells I have added.

=IF(F22=0,0,COUNT(F22:J54))

Example:

Count Cells F21,H21,J21
Don't Count Cells G21,I21

Thanks
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hey

I'm using this formula and have added two extra cells but I don't want this formula to count them, how would I create this formula not to count the 2 new cells I have added.

=IF(F22=0,0,COUNT(F22:J54))

Example:

Count Cells F21,H21,J21
Don't Count Cells G21,I21

Thanks
Your formula ranges doesn't match your example.

Maybe something like this:

=IF(F22=0,0,COUNT(F22:J54)-COUNT(cell_1,cell_2))
 
Upvote 0
Sorry about that LOL

The formula still counts it as 5 cells when it should only count as 3 cells

=IF(F22=0,0,COUNT(F22:J22)-COUNT(cell_1,cell_2))
 
Upvote 0
Sorry about that LOL

The formula still counts it as 5 cells when it should only count as 3 cells

=IF(F22=0,0,COUNT(F22:J22)-COUNT(cell_1,cell_2))
I don't understand!

If this is your range of cells: F22:J22...

What 2 cells did you add to the range that you don't want included in the count?
 
Upvote 0
The Cells where from F21:H21

I added two new cells I21 & J21

I dont want the forumla to count cells G21 & I21
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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