Replace decimal with text?

Special-K

Board Regular
Joined
Apr 18, 2006
Messages
63
I wish I had better luck with search results. I cannot locate a solution to this problem.

Can I replace a decimal with text?

In other words, if I have: 10.75
...... Can I have another cell report it as: 10 Days 3/4 Hrs

Cheers!
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Doh!

I failed to mention .... certainly I can format the cell to read: 10 3/4
.... if I change the cell type to "fraction" ...

But is there a way to stick "days" and "hours" in there so that it would read like:
10 days 3/4 hours

Thanks again!
 
Upvote 0
try;
Code:
=LEFT(E3,FIND(".",E3)-1)&" "&"Days"&" "&RIGHT(TEXT(E3,"# ?/?"),FIND(".",E3)+1) & " " & "Hours"
data in E3
 
Upvote 0
Custom format the cells like this: #" Days" ?/?" Hours" All you need to do is enter a fraction then.
 
Upvote 0
Hi Kevin

If the unit you use is days, shouldn't 10.75 mean 10 Days 18 Hrs?

kind regards
PGC
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,207
Members
448,554
Latest member
Gleisner2

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