Strange situation with filling series of numbers stored as text

hasanlianar

New Member
Joined
Jul 21, 2011
Messages
43
Hi,

I have recently encountered with a strange situation in excel and dont know reason for that. To see what is strange please follow instructions below:

- open a new excel file
- convert all cells' format to text
- write any number in cell A1 with less than 11 charachters (for example, 435)
- Fill down, as you will see numbers will be filled in ascending order
- Now in cell B1 write any number with more than 10 charachters (for example, 474647847446)
- Fill down again, as you notice numbers will not be filled in ascending order, the same numbers will be filled.

So, what is the reason?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi

I'd say excel uses a 32 unsigned integer value to fill the series. This means that the maximum value possible will be the 10 digit value 4294967295 (2^32-1).

Any value bigger is not converted and simply copied. Try for ex. for 4294967296

Notice that the values will wrap, you'll have 4294967294, 4294967295, 0, 1.
 
Upvote 0
You're welcome

Remark: As I'm sure you've noticed, there's a word missing in my post.

"... excel uses a 32 bit unsigned integer ..."
 
Upvote 0
Yes, I noticed.

That was a question in my mind, but since I understood your explanation, I thought it was a minor issue to ask.

Now, I just wonder where do you know this kind of facts about Excel?

Best Regards
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,608
Members
452,930
Latest member
racefanjtd

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