Extract number from cell containing text

mikebrewer

New Member
Joined
Aug 11, 2015
Messages
8
From a previous post ( Extract number with decimal from a text cell ) I got the answer I was looking for as follows:
=LOOKUP(10^8,--MID($AG$6,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$AG$6&"0123456789")),{1,2,3,4,5,6,7,8}))
I then extended this formula to get my the answer I required as follows:
=LOOKUP(10^8,--MID($AG$6,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$AG$6&"0123456789")),{1,2,3,4,5,6,7,8}))*AA7

However I would like to refine my result by using the ROUND function to obtain my answer to two decimal places and I can't work out how to do this. I'd be grateful for ay assistance, thank you.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Try

Excel Formula:
=ROUND(LOOKUP(10^8,--MID($AG$6,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$AG$6&"0123456789")),{1,2,3,4,5,6,7,8}))*AA7,2)
 
Upvote 0
Solution
opps - answered , just as i posted, not sure why - it usually flags up
ignore

i assume
round(formula,2) does not work
=round((LOOKUP(10^8,--MID($AG$6,MIN(FIND({0,1,2,3,4,5,6,7,8,9},$AG$6&"0123456789")),{1,2,3,4,5,6,7,8}))*AA7),2)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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