Countif large values

Joe C

Well-known Member
Joined
Oct 17, 2002
Messages
841
I have a large 18 digit number. Does countif have alimit on the numbers of characters a number can have before it views it the same?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Joe C

Well-known Member
Joined
Oct 17, 2002
Messages
841
Thank you. That is not the case for Vlookup?

Is it the case for Sumif.

So if I want to use countif I would need to change the first digit to a letter. It is always the same.
 
Upvote 0

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,961
Office Version
  1. 365
Platform
  1. Windows
Excel can not display a number with more than 15 significant digits as the number. If you are showing 18 digits then it is text. It has nothing to do with the function you're using, it is a limitation of Excel in general.

If you want to do a COUNTIF on these values, and are using a literal value, specify the number as text:

=COUNTIF(A:A,"123456789012345678")
 
Upvote 0

Forum statistics

Threads
1,191,165
Messages
5,985,034
Members
439,935
Latest member
Monty238

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
Top