Countif similar text values such as 3.1, 3.10, 4.1, 4.10

shyy

Well-known Member
Joined
Nov 6, 2008
Messages
1,484
Hey guys, I'm having trouble with counting numbers that are similar, example 3.1 and 3.10. We have violation codes that I am trying to count, problem is that both 3.1 and 3.10 come up with the same exact value although both are different digits. codes can go from 3.1 up to 3.15. Is there away to differentiate these numbers?

With the table below I should have (4) 3.1 codes & (3) 3.10 codes. What I get for both codes is 4 (treating both as 3.1)

3.14.103.10
3.24.13.1
3.103.155.5
4.53.13.1
4.14.13.10

<tbody>
</tbody>

Thanks for your time
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
If the codes are text try using SUMPRODUCT:
Excel Workbook
ABCDEF
13.14.103.103.14
23.24.13.13.103
33.103.155.54.13
44.53.13.14.101
54.14.13.104.51
65.51
Sheet
 
Upvote 0
Thanks that did the trick, can't wait to try it at work. Curious why doesn't the countif work?

If the codes are text try using SUMPRODUCT:

ABCDEF
13.14.103.10 3.14
23.24.13.1 3.103
33.103.155.5 4.13
44.53.13.1 4.101
54.14.13.10 4.51
6 5.51

<colgroup><col style="width:30px; "><col style="width:64px;"><col style="width:64px;"><col style="width:64px;"><col style="width:38px;"><col style="width:64px;"><col style="width:64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
F1=SUMPRODUCT(--($A$1:$C$5=E1))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
This way seems to work using COUNTIF
Excel Workbook
ABCDEF
13.14.103.103.14
23.24.13.13.103
33.103.155.54.13
44.53.13.14.101
54.14.13.104.51
65.51
Sheet
 
Upvote 0
COUNTIF sees 3.1 and 3.10 as the same.

Edit: Unless you do what AhoyNC showed in post 4. I've never seen that before.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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