Returning a 2 digits number !

serge

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

I don't know if it's possible but I'm gone ask anyway.

Would it be possible to create a formula that will reduce which ever number from 1 to 6561 and return a number of 2 digits from 01 to 99 ?
And when I use those 2 digits number in reverse a formula would give me the original number I started with ?
Maybe with a Lookup function ?

Thank you.
 
Thank you very much for answering my post.
Every single number from 1 to 6561 must have an equivalent number from 1 to 99 and been able to be reverse to the exact number, maybe like you said using decimal, maybe as and example if the formula can transfer :
65 to 65
165 to 65.1
265 to 65.2
365 to 65.3
......
......
3665 to 65.30
6561 to 65.60

Don't quote me for those number above, it's just to show as an example, do you think it could work this way ?
Using the decimal this way in your formula would return the exact 4 digits number I think ?
The question is how many arguments a formula can handle, that I don't know only you can answer this question.
If decimal is allowed then here's one possible solution.

Scaling factor = (99-1)/(6561-1) = 0.014939

Mapping from 1-6561 -> 1-99:
Y=(X-1)*Scaling factor + 1

Example mapping 165:
Y=(165-1)*0.014939+1 = 3.45

You can go from 3.45 to 165 using basic algebra rearranging the above equation.
 
Upvote 0

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Thank you BigBeachBananas, would the reverse formula would give me back the exact 165 ?
 
Upvote 0
Thank you guys or your help, Im gone see how I can use it, working with the software, I really appreciate all your help.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,678
Members
449,116
Latest member
HypnoFant

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