Reverse formula.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,446
Office Version
  1. 2007
Platform
  1. Windows
Hello,

I'm lookking for a formula that will give me the result in reverse, like if I type 1203 in A3 it will return 99 in H3.

Here the formulas that transfer the numbers.
C3 IF($B3="","",INT(LEFT(MOD(SUM($A3/64),4))))
D3 IF($B3="","",INT(LEFT(MOD(SUM($A3/16),4))))
E3 IF($B3="","",INT(LEFT(MOD(SUM($A3/4),4))))
F3 IF($B3="","",INT(LEFT(MOD(SUM($A3/1),4))))

Capture 1.PNG


Thank you.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi stephenCrump,

I believe that excel 2007 doesn't support "DECIMAL" does it ?
Would another formula do the trick ?
I appreciate your help.
Thank you.
 
Upvote 0
For numbers up to 6 digits, try ..

23 10 10.xlsm
AB
1120399
2102375
312125
400
53333334095
Convert
Cell Formulas
RangeFormula
B1:B5B1=SUMPRODUCT(MID(TEXT(A1,REPT(0,6)),{1,2,3,4,5,6},1)*(4^{5,4,3,2,1,0}))
 
Upvote 0
Or, use this:
VBA Code:
=SUMPRODUCT(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)*4^(LEN(A1)-ROW(INDIRECT("1:"&LEN(A1)))))
 
Upvote 0
Thank you to all of you, your formulas work great, I really appreciate the help.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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