19 Digit Order Ref # Problems

350Z Pilot

Board Regular
Joined
Nov 18, 2008
Messages
64
Recently one of my vendors switched to a 19 digit Order Ref# and it's driving me nuts. Below is a simplified example where I'm counting the number of times the Ref# in cell A14 appears in range A1:A14. My formula, =COUNTIF(A1:A14,"="&A14), counts "4 times" but the correct answer is "1 time". NOTE: The Ref #s are formatted as TXT. Are the Ref #s just to big for Excel 2010 to handle? Any help would be appreciated.

Thanks in advance


1Order Ref No
21408149900002224029

<tbody>
[TD="width: 31, bgcolor: transparent"] 3 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409039900002387409 [/TD]

[TD="width: 31, bgcolor: transparent"] 4 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002488939 [/TD]

[TD="width: 31, bgcolor: transparent"] 5 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409059900002518343 [/TD]

[TD="width: 31, bgcolor: transparent"] 6 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002490397 [/TD]

[TD="width: 31, bgcolor: transparent"] 7 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409039900002387599 [/TD]

[TD="width: 31, bgcolor: transparent"] 8 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409049900002533179 [/TD]

[TD="width: 31, bgcolor: transparent"] 9 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409059900002521827 [/TD]

[TD="width: 31, bgcolor: transparent"] 10 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002489247 [/TD]

[TD="width: 31, bgcolor: transparent"] 11 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002489554 [/TD]

[TD="width: 31, bgcolor: transparent"] 12 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002491259 [/TD]

[TD="width: 31, bgcolor: transparent"] 13 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002491446 [/TD]

[TD="width: 31, bgcolor: transparent"] 14 [/TD]
[TD="width: 198, bgcolor: transparent"] 1409089900002490802 [/TD]

[TD="width: 31, bgcolor: transparent"] 15 [/TD]
[TD="width: 198, bgcolor: transparent"][/TD]

[TD="width: 31, bgcolor: transparent"] 16 [/TD]
[TD="width: 198, bgcolor: transparent"] 4 [/TD]

[TD="width: 31, bgcolor: transparent"][/TD]
[TD="width: 198, bgcolor: transparent"][/TD]

</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Use SUMPRODUCT instead:

=SUMPRODUCT(--(A1:A14=A14))
 
Upvote 0
I appreciate the suggestion but I may have over-simplified my problem. I use several different types of calculations (not just counting) that produce unreliable results. For example some formulas use SUMIFS (to get the Order Ref #) but for some reason the VALUE of my 19 digit Ref# does not translate into a number correctly. The example below shows the results I'm getting. Column A contains the Ref# while column be contains the =VALUE formulas. As you can see, I'm getting the wrong results.

[TABLE="width: 254"]
<colgroup><col width="142" style="width: 107pt; mso-width-source: userset; mso-width-alt: 5193;"> <col width="196" style="width: 147pt; mso-width-source: userset; mso-width-alt: 7168;"> <tbody>[TR]
[TD="width: 142, bgcolor: transparent"]1409089900005555550
[/TD]
[TD="width: 196, bgcolor: transparent"]=VALUE(A1)
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1409089900005555551[/TD]
[TD="bgcolor: transparent"]1409089900005550000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1409089900005555552[/TD]
[TD="bgcolor: transparent"]1409089900005550000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1409089900005555553[/TD]
[TD="bgcolor: transparent"]1409089900005550000[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]1409089900005555554[/TD]
[TD="bgcolor: transparent"]1409089900005550000[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
You'll need to use SUMPRODUCT there too, for the same reason. SUMIF/COUNTIF will coerce the arguments to numbers in the equality test if they can, and since Excel only works with 15 digits of precision, all the numbers you just posted are the same as far as SUMIF/COUNTIF is concerned.
 
Upvote 0
You'll need to use SUMPRODUCT there too, for the same reason. SUMIF/COUNTIF will coerce the arguments to numbers in the equality test if they can, and since Excel only works with 15 digits of precision, all the numbers you just posted are the same as far as SUMIF/COUNTIF is concerned.

Thanks Rory, I appreciate your time.
 
Upvote 0
Your answer only gives me a clean Ref#. As soon as I attempt to use the "clean Ref" in a VLOOKUP, COUNTIF, or SUMIF formula Excel rounds the last four digits to 0000. Which in-turn makes the whole Ref# useless to me.

But thanks
 
Upvote 0

Forum statistics

Threads
1,225,399
Messages
6,184,751
Members
453,254
Latest member
topeb

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