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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Special-K

Board Regular
Joined
Apr 18, 2006
Messages
63
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!
 

agihcam

Well-known Member
Joined
Jan 16, 2006
Messages
1,624
try;
Code:
=LEFT(E3,FIND(".",E3)-1)&" "&"Days"&" "&RIGHT(TEXT(E3,"# ?/?"),FIND(".",E3)+1) & " " & "Hours"
data in E3
 

babycody

Well-known Member
Joined
Jul 8, 2003
Messages
1,395
Custom format the cells like this: #" Days" ?/?" Hours" All you need to do is enter a fraction then.
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi Kevin

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

kind regards
PGC
 

Forum statistics

Threads
1,136,925
Messages
5,678,602
Members
419,774
Latest member
MooseWinooski

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
Top