Adding together huge numbers with a large base/radix

mrblister

Board Regular
Joined
Nov 20, 2016
Messages
191
Office Version
  1. 2019
Platform
  1. Windows
I want to add (and multiply) very large numbers in Excel, in Base36.

What I've been doing is using this formula to convert my (Base36) input values to decimals (Base10), and then convert the answer to Base36.
=BASE(DECIMAL("A00000000",36)*DECIMAL("100",36),36).
Note: Answer should be "A0000000000".
The formula was working fine, but the above formula gives an error. I think it's because converting the above values to decimal (and then multiplying them) creates a decimal number too large for Excel to handle.

Can anyone recommend a simple way to add/multiply/etc. large numbers in Excel in a different radix (Base36 in my case). The maximum size I'll be working with a 12 digit Base36 number, and I just want to add or subtract and perform other math operations (e.g. "Floor") on that number.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
that answer, that; i can give you without calculator !
Multiply with "100" in base36 is adding 2 zeros.
It becomes more difficult if you multiply with another number.
 
Upvote 0
Map1
ABCDEF
1base36base10
2A00000000----->28.211.099.074.560translate to base109
3123----->1.371translate to base11
4product3,86774E+16multiply
5
62,82111E+12<---your max = 36^8 = your biggest number
7
8AKU<------------13710divide A4 / A6
900000000<------------0A4 MOD A6
10
11AKU00000000Join11
12
Blad1
Cell Formulas
RangeFormula
E2,E11E2=LEN(A2)
C2:C3C2=DECIMAL(A2,36)
C4C4=+C3*C2
C6C6=POWER(36,8)
A8A8=BASE(C8,36)
A9A9=RIGHT(REPT("0",8)&BASE(C9,36),8)
C8C8=+C4/C6
C9C9=MOD(C4,C6)
A11A11=A8&A9
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,665
Members
449,091
Latest member
peppernaut

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