CountIfs not returning value

vladi305

Board Regular
Joined
Jan 12, 2023
Messages
88
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
3356646668

I have the following cells as shown above. They're all General data set

I wonder why it won't return true when it finds 56

=IF(COUNTIFS(B3:F3,">=43",B3:F3,"<=56")=0,"",COUNTIFS(B3:F3,">=43",B3:F3,"<=56"))

There are 5 formulas
=IF(COUNTIFS(B$3:F$3,">=1",B$3:F$3,"<=14")=0,"",COUNTIFS(B$3:F$3,">=1",B$3:F$3,"<=14"))
=IF(COUNTIFS(B3:F3,">=15",B3:F3,"<=28")=0,"",COUNTIFS(B3:F3,">=15",B3:F3,"<=28"))
=IF(COUNTIFS(B3:F3,">=29",B3:F3,"<=42")=0,"",COUNTIFS(B3:F3,">=29",B3:F3,"<=42"))
=IF(COUNTIFS(B3:F3,">=43",B3:F3,"<=56")=0,"",COUNTIFS(B3:F3,">=43",B3:F3,"<=56"))
=IF(COUNTIFS(B3:F3,">=57",B3:F3,"<=69")=0,"",COUNTIFS(B3:F3,">=57",B3:F3,"<=69"))

Each one is returning how many numbers find in a group and them I form a group
The formulas apparently work find for thousand of records but this one and now Id have to check how many could be wrong
 

Attachments

  • Pic59.jpg
    Pic59.jpg
    83.5 KB · Views: 9

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
If I remove the IF condition then it works fine: =COUNTIFS(B3:F3,">=43",B3:F3,"<=56")
 
Upvote 0
Are you saying that without the IF it returns a non zero value? The 56 appears to be left aligned so is probably text.
 
Upvote 0
Solution
Are you saying that without the IF it returns a non zero value? The 56 appears to be left aligned so is probably text.
All format were fine so I went back to the data source and copy and paste the value from another cell and it looks like the datatype on the data source was different and I checked everything and the rest of the data is looking good. Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,867
Members
449,130
Latest member
lolasmith

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