help formular countif in excel!!!

Nguyen Anh Dung

Board Regular
Joined
Feb 28, 2020
Messages
180
Office Version
  1. 2016
Platform
  1. Windows
help formular count column H. if begin is 9 then count. But in this case cell format is number or general then result not correct.
As picture below: i want result is column I2= 5
I2=3 is not correct.
1616743008942.png


Best regards,
Nguyen Anh Dung
 

Attachments

  • 1616742889538.png
    1616742889538.png
    65.1 KB · Views: 5

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi, you could select column H and choose "Data" > "Text to columns" > "Next" > "Next" > Choose "Text" in the "column data format" and click finish.

Or

You could try:

=SUMPRODUCT(--(LEFT(H2:H46)="9"))
 
Upvote 0
Hi, you could select column H and choose "Data" > "Text to columns" > "Next" > "Next" > Choose "Text" in the "column data format" and click finish.

Or

You could try:

=SUMPRODUCT(--(LEFT(H2:H46)="9"))
Thanks you!!!
 
Upvote 0

Forum statistics

Threads
1,216,588
Messages
6,131,589
Members
449,657
Latest member
Timber5

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