Extract Number from Cell with decimals

DIPASGL

New Member
Joined
Oct 26, 2022
Messages
39
Office Version
  1. 2003 or older
Platform
  1. Windows
Hi
Please help me in this.

I am having below numbers
AUD 76,946.71 CR
AUD 92,421.49 CR

and I want to get below result.
76,946.71
2,92,421.493
I used below but its giving me number without decimal which I do not want.

=RIGHT(B5,LEN(B5)-MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&"0123456789"))+1)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Book1
ABC
1AUD 76,946.71 CR76,946.71
2AUD 92,421.49 CR92,421.49
3AUD 92,421.492 CR92,421.492
Sheet1
Cell Formulas
RangeFormula
C1:C3C1=IFERROR(MID(A1:A3,1+LEN(TEXTBEFORE(A1:A3,SEQUENCE(10,,0))),10),"Not Found")
Dynamic array formulas.


=IFERROR(MID(A1:A3,1+LEN(TEXTBEFORE(A1:A3,SEQUENCE(10,,0))),10),"Not Found")*1 - for numeric

This single formula will return (spill) all of your results (just change the two instances of A9:A11 to the range you want to process)...
Excel Formula:
=IFERROR(MID(A9:A11,1+LEN(TEXTBEFORE(A9:A11,SEQUENCE(10,,0))),6),"Not Found")

Formula from @Rick Rothstein
 
Upvote 0
how about this (Fluff's is ingenious, this is a bit more brute strength - really not sure which would be better though Fluff's is perhaps easier to read):

Excel Formula:
=--(LEFT(RIGHT(A1, LEN(A1)-FIND(" ",A1)),FIND(" ", RIGHT(A1, LEN(A1)-FIND(" ",A1)))))
 
Upvote 0
Thanks so much pjmorris, Fluff and RudRud for help.

I am using excel online browser for work for my files. GREAT HELP guys.
 
Upvote 0
In that case you could use
Excel Formula:
=INDEX(TEXTSPLIT(B5," "),,2)
I would also suggest that you mention using xl online as it has a lot more functions than 2003.
 
Upvote 0
In that case you could use
Excel Formula:
=INDEX(TEXTSPLIT(B5," "),,2)
I would also suggest that you mention using xl online as it has a lot more functions than 2003.
I will check. Thanks Fluff
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Limited sample data but taking a guess that the data all has a currency prefix (3 letters) & a CR or DR suffix (2 letters) then for all versions you could possibly use this

23 06 26.xlsm
BC
5AUD 76,946.71 CR76946.71
6AUD 92,421.49 CR92421.49
7USD 362.00 DR362
Extract Number
Cell Formulas
RangeFormula
C5:C7C5=--MID(LEFT(B5,LEN(B5)-2),4,20)


Also, if sticking with the TEXTSPLIT option and want numerical results not text
Excel Formula:
=--INDEX(TEXTSPLIT(B5," "),,2)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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