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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,225,760
Messages
6,186,870
Members
453,380
Latest member
ShaeJ73

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