As Ashish rightly points out, these functions will work if your percentages
are written in ascending order. However, in cases where your text may look
like this

10+2 with 60% with pcm or 45% in the aggregate, it will return 60%, not 45%

To tackle this issue, try the following array formula

=IFERROR(MIN(--MID(A2,SMALL(IFERROR(ROW(INDIRECT("1:"&LEN(A2)))*SEARCH("%",MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1)),""),ROW(INDIRECT("1:"&MAX(1,LEN(A2)-LEN(SUBSTITUTE(A2,"%",""))))))-2,3)),"")


Another flaw with the formula is that since this uses 3 characters, if your
text has a single digit percentage starting at the very beginning of the
text like '8% with pcm or 45% in the aggregate', it will return a blank, and
not 8%. But I guess that would be a very rare case :D

Enjoy,

Sam Mathai Chacko (GL)


On Sun, Oct 2, 2011 at 5:15 PM, rajan verma <rajanverma1...@gmail.com>wrote:

> Try this:
> =IF(ISERROR(MID(A2,FIND("%",A2,1)-2,3)),"",MID(A2,FIND("%",A2,1)-2,3))
>
> On Sat, Oct 1, 2011 at 3:08 PM, karan 1237 <karan1...@gmail.com> wrote:
>
>> Hello All,
>>
>> Hope you all are doing well. I'm here as usual, need your assistance. I'v
>> text data which have percentage numbers (50% or 60%), I need to extract
>> minimum percentage number. Kindly help me to sort out this problem.
>>
>> Text is : minimum qualification pcm with 50% or MCA 60%
>> Result should be : 50%
>>
>> I've attached the file, Please find enclosed.
>>
>>
>> Thanks
>> Karan Singh
>>
>> <http://www.facebook.com/singhkarann> <http://twitter.com/#%21/karan1237>
>> <https://plus.google.com/111143524614789164919/posts>
>> <http://www.myspace.com/singhkaran>
>> <http://www.linkedin.com/in/singhkarann> <http://karanxel.blogspot.com/>
>> <http://karanxel.wordpress.com/>
>>
>>
>> --
>>
>> ----------------------------------------------------------------------------------
>> Some important links for excel users:
>> 1. Follow us on TWITTER for tips tricks and links :
>> http://twitter.com/exceldailytip
>> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
>> 3. Excel tutorials at http://www.excel-macros.blogspot.com
>> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
>> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>>
>> To post to this group, send email to excel-macros@googlegroups.com
>>
>> <><><><><><><><><><><><><><><><><><><><><><>
>> Like our page on facebook , Just follow below link
>> http://www.facebook.com/discussexcel
>>
>
>
>
> --
> Regards
> Rajan verma
> +91 9158998701
>
> --
>
> ----------------------------------------------------------------------------------
> Some important links for excel users:
> 1. Follow us on TWITTER for tips tricks and links :
> http://twitter.com/exceldailytip
> 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
> 3. Excel tutorials at http://www.excel-macros.blogspot.com
> 4. Learn VBA Macros at http://www.quickvba.blogspot.com
> 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
>
> To post to this group, send email to excel-macros@googlegroups.com
>
> <><><><><><><><><><><><><><><><><><><><><><>
> Like our page on facebook , Just follow below link
> http://www.facebook.com/discussexcel
>



-- 
Sam Mathai Chacko

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to