Formula Help Needed

dcofer

Board Regular
Joined
Jun 25, 2004
Messages
203
Hello All,

I hope someone can help me. I have data that is formatted as below on the left and need it formatted as displayed to the right. Some of the numbers have decimal points and some do not. That is one of the problems. The formula I am using takes the numbers that have decimal points and extracts the data on each side of the decimal point. The formula returns an error if the number does not have a decimal point, but I fizxed that with the IFERROR function. The formula I am using almost works perfectly. The only problem I am still having is if the data has cents that ends in zero, such as 123.60 or 55.70, or 95.40 (any number that is a multiple of 10), then the formula does not put the extra zero at the end.

What I am trying to accomplish is convert the number on the left (which is a payment) to the number on the right and it must include two numbers on the right to represent the cents. I hope I have explained this well enough to be understood. Any zero amount must be displayed as "000". Again, my formula works perfectly except when the number on the left has cents that are a multiple of 10.


I am using the formula below.

=IFERROR(LEFT(G5,FIND(".",G5)-1)&RIGHT(G5,LEN(G5)-FIND(".",G5)),G5&"00")

How can I make a number such as 56.10 to be displayed as 5610 instead of 561?

Examples:

100.20 needs to be displayed as 10020 -- (This on is the one that does not work.)
12.00 needs to be displayed as 1200
0.00 needs to be displayed as 000
114.25 needs to be displayed as 11425

Thanks in advance for you help. Hopefully someone can help me tweak this formula to work or provide a better one that will work.

Thanks,

David
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hello kpark91,

Thanks, that seems to work. That was so simple. I was obviously trying to overcomplicate the problem. How remarkably simple the solution was.

Thanks!

David
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,754
Members
452,940
Latest member
rootytrip

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