CountIF formula

  • Thread starter Thread starter Legacy 93538
  • Start date Start date
L

Legacy 93538

Guest
Hi

I am trying to create countif fomula which looks in a range (O24:043) and does a count of all the cells which do not contain the string 00/01/1900.

The range (O24:043) has 20 rows in it and the cells in that range are formula getting getting data from another sheet.

The count is performed without error however it retunrs 20 and it should return 12.

currently i am using
Code:
 =COUNTIF(N24:N43, "<>00/01/1900")

Does anyone know why its not returning the amount of rows without the string 00/01/1900 in it?

Thanks

Jessicaseymour
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Uhm - You say your trying to use the Column O but your formula refers to N?

:)

If it isn't that simple then perhaps it's a formatting issue somewhere along the way? - Your formula does what it says for me with manually entered data :)
 
Upvote 0
Hi

I am trying to create countif fomula which looks in a range (O24:043) and does a count of all the cells which do not contain the string 00/01/1900.

The range (O24:043) has 20 rows in it and the cells in that range are formula getting getting data from another sheet.

The count is performed without error however it retunrs 20 and it should return 12.

currently i am using =COUNTIF(N24:N43, "<>00/01/1900")

Does anyone know why its not returning the amount of rows without the string 00/01/1900 in it?

Thanks

Jessicaseymour
You say the range is column O but your formula uses column N?

If the range contains true Excel dates then all you need to do is count cells greater than 0.

=COUNTIF(O24:O43,">0")
 
Upvote 0
HI

Thanks for everyones help i used balajayan code and it seems to work perfectly!

Thank you to everyone who repesponded, you have all been a great help, i will ghave to remember that!!

Thank you :) :) :biggrin: :biggrin:
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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