pretty easy help needed for mph formula

Hoffman

Board Regular
Joined
Oct 19, 2007
Messages
220
Office Version
  1. 365
Platform
  1. MacOS
Hi all,
Thanks for reading and offering a simple solution.

I have a cell that uses a formula =O54*60 that tells me speed in mph. In the cell it just shows the mph number. i.e. 23.4

I would like to have mph appear after the number in the same cell like
23.4 mph

I read how to do this and got it but I also need the number rounded to to the tenths which I could not do by hitting the Decrease Decimal button as it would not adjust the number (many decimal places appeared) since the text was with it.

Can you please help me write the needed formula that would get the mph number and have mph appear after the number in the same cell and rounded to tenths.

Thanks!!

Barry
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
The best way to do this is to use the following custom format:

0.0 \MP\H

The 0.0 says "show the number rounded to 1 decimal place" This does not mean that the number is rounded to 1 decimal place, only that the number displayed is rounded.
The \ characters are needed because m and h are used to indicate minutes and hours, so you need a \ if you just want the actual letters.

$scratch.xlsm
AB
131.3 MPH31.26
Sheet8
Cell Formulas
RangeFormula
A1A1=O1*60
B1B1=O1*60
 
Upvote 0
Solution
The best way to do this is to use the following custom format:

0.0 \MP\H

The 0.0 says "show the number rounded to 1 decimal place" This does not mean that the number is rounded to 1 decimal place, only that the number displayed is rounded.
The \ characters are needed because m and h are used to indicate minutes and hours, so you need a \ if you just want the actual letters.

$scratch.xlsm
AB
131.3 MPH31.26
Sheet8
Cell Formulas
RangeFormula
A1A1=O1*60
B1B1=O1*60

thanks that seemed to work!!

Barry
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,015
Members
449,203
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