Custom number/decimal

JimmyBigDog

New Member
Joined
Apr 9, 2012
Messages
14
Hi,

(I've gone through a lot of threads and couldn't find a similar question)

I work with numbers split into "Units" and "Baskets".

24 Units = 1 Basket

Can a formula convert (e.g.)
25 units into 1 basket and 1 unit.
42 units into 1 basket and 18 units

420 units into 17 baskets and 12 units ...and displayed as "17.12" or "17+12"?


Any help appreciated,
Jimmy
 
Last edited:

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Another way:

Row\Col
A​
B​
C​
1​
25​
1.01​
B1: =DOLLARFR(A1/24, 24)
2​
42​
1.18​
3​
420​
17.12​
 
Upvote 0
Hi Jimmy,
Why not use a simple formula
Code:
=QUOTIENT(A1,24)&"."&MOD(A1,24)
Considering A1 has 420 units it will give you 17.12 as answer.
Hope it helps.
 
Upvote 0
=DOLLARFR(TargetAmount/ 24 , 24)

Just be careful how you use this number. or reverse with DOLLARDE
 
Upvote 0
That makes 25 and 34 baskets ambiguous if you were to convert the result to a number.
Yeah, the decimal point method allows for that confusion. If the OP wants the decimal point instead of the plus sign, then this would work...

=INT(A1/24)&"."&TEXT(MOD(A1,24),"00")

Still, I like your formula in Message #3 better.
 
Upvote 0
Thanks for the replies guys- the below works just fine and will be easy for me to convert and maintain.

Thanks again,
Jimmy

Another way:

Row\Col
A​
B​
C​
1​
25​
1.01​
B1: =DOLLARFR(A1/24, 24)
2​
42​
1.18​
3​
420​
17.12​

<tbody>
</tbody>
 
Upvote 0
Many hands make light work. You're welcome.
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,012
Members
449,204
Latest member
tungnmqn90

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