COUNTIFS Problem

James8761

Board Regular
Joined
Apr 24, 2012
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hi All,


I’m trying to do a Countifs formula looking at a number I have typed in to a cell.


The Cell I have typed the number in to is Cell E21. In Cell F21 I put in the following formula =COUNTIFS(ALL!$O:$O,"<=E21") and it gives me an answer of 5 which is Incorrect


However, when I do it without looking up to Cell E21 and type the number in Manually 2.999, =COUNTIFS(ALL!$O:$O,"<=2.999") it gives me the correct answer of 1996.


Is there something simple I am doing wrong.


The format of the cells in Colum O of the ALL tab is set to General.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Use below:

=COUNTIFS(ALL!$O:$O,"<="&E21)

Enclosing "E21" within double quotes will consider the text "E21" - the above will consider the cell E21 value.
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,108
Members
449,205
Latest member
ralemanygarcia

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