Search and return a number that is contained within a stiring of text

My0j0

New Member
Joined
Apr 12, 2016
Messages
19
Can anyone please help me.

I want to search for a number (%) contained within in a string of text in another cell. E.G.

The data I currently have is listed below:

RowColumn CColumn DColumn E
Tax %New %Tax Code Description
110Albania Non-Recoverable 10% VAT Medical
120Albania 20% Non-Recoverable VAT
130ARM 20% VAT
140Northwest Balkans 17% Non-recoverable Tax
150Taxe sur la valeur ajoutée 18%
160Taxe à l'importation - TS (variable)
170BF4 - Droits d'enregistrement des baux 5%
180Cambodia 10% VAT Non-Recoverable
190VAT 19%
200CN1 VAT 17% Non-Recoverable Tax
210DPRK Std Rate VAT Non-Recoverable (China)
220Lebanon Std TDS 7.5% Income tax for Non-residents
230MOZ IVA Water 12.75% - not recoverable

<tbody>
</tbody>


























I want to search column 'E' for the 'number %' contained within the text and return just the 'number %' (without the rest of the text) in column 'C'

The result I want is -

Row 11 - Column C would return '10%' or '10'
Row 12 - Column C would return '20%' or 20
Row 16 - Column C would return '0' or 'blank'
Row 22 - Column C would return '7.5%' or 7.5
Row 23 - Column C would return '12.75%' or 12.75

Is there a formula that would help me do this?

I would be grateful if anyone could help me find a solution rather than me having to hard key the data.

Thanks in advance :)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
For a value in cell E3, use this formula:
Code:
=IFERROR(TRIM(RIGHT(SUBSTITUTE(LEFT(E3,FIND("%",E3))," ",REPT(" ",50)),25)),"")

If you want to turn it into a number without the % sign, you can made this edit:
Code:
=IFERROR(TRIM(RIGHT(SUBSTITUTE(LEFT(E3,FIND("%",E3))," ",REPT(" ",50)),25))[COLOR=#ff0000]*100[/COLOR],"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,566
Members
449,089
Latest member
Motoracer88

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