You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Numbers Formula

I want to enter a number in a cell (ie: 25kph in cell B2) . I would like a formula to convert that number into mph and have the resulting answer appear in the same cell (ie : 15.5mph in cell B2) Is it possible please and if so what should I type as the formula?


Mac mini, 12.5

Posted on Sep 10, 2022 12:13 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 10, 2022 12:44 AM

A cell can either be for user input or have a formula, not both. You can use an adjacent cell to do the conversion.


If you type 25 into cell B2 (not 25kph), the following formula in another cell will convert it to mph

=CONVERT(B2×1000,"m/h","mph")


With the formula below you could type "25kph" but really your could type "25abc" or "25 anything you like" and it will convert the 25 from kph to mph

=CONVERT(REGEX.EXTRACT(B2,"\d+")×1000,"m/h","mph")

1 reply
Question marked as Top-ranking reply

Sep 10, 2022 12:44 AM in response to TenpinBozz

A cell can either be for user input or have a formula, not both. You can use an adjacent cell to do the conversion.


If you type 25 into cell B2 (not 25kph), the following formula in another cell will convert it to mph

=CONVERT(B2×1000,"m/h","mph")


With the formula below you could type "25kph" but really your could type "25abc" or "25 anything you like" and it will convert the 25 from kph to mph

=CONVERT(REGEX.EXTRACT(B2,"\d+")×1000,"m/h","mph")

Numbers Formula

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.