Maksood,
Are you looking for a VBA solution? or an Excel Function solution?
 
Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------




________________________________
From: maksood alam <786maks...@gmail.com>
To: excel-macros@googlegroups.com
Sent: Fri, September 7, 2012 11:20:08 AM
Subject: Re: $$Excel-Macros$$ show only last four digit of the number


Partially correct, but it show as per below

Numbers Required out put 
555-55-5505 ***-***-5505 
555-55-125-04444 ***-**-***-*4444 
555-55-5555-23 ***-**-**55-23 


On Fri, Sep 7, 2012 at 8:41 PM, Kuldeep Singh <naukrikuld...@gmail.com> wrote:


>Dear Maksood, 
>
>
>You can use this and more clarity see attached file.
>
>
>=RIGHT(SUBSTITUTE(A1,"-",""),4)
>
>
>Regards,
>Kuldeep Singh 
>
>
>
>
>On Fri, Sep 7, 2012 at 8:38 PM, <in.vaib...@gmail.com> wrote:
>
>First use Substitue fn to subst "-" with "" and then use Right function.
>>
>>Rgds
>>Vabs 
________________________________

>>From: maksood alam <786maks...@gmail.com> 
>>Sender: excel-macros@googlegroups.com 
>>Date: Fri, 7 Sep 2012 20:33:28 +0530
>>To: <excel-macros@googlegroups.com>
>>ReplyTo: excel-macros@googlegroups.com 
>>Subject: Re: $$Excel-Macros$$ show only last four digit of the number
>>
>>
>>
>>Kuldeep, please read my question in the mail. it should show last four digit 
>>and 
>>rest of all should show "*".
>>if i use right(555-55-5555-23,4) it will show 5-23 but the answer should be 
>>5523.
>>
>>On Fri, Sep 7, 2012 at 8:29 PM, Kuldeep Singh <naukrikuld...@gmail.com> wrote:
>>
>>
>>>
>>>Hi,
>>>
>>>
>>>Try this one.
>>>
>>>=RIGHT(A1,4)
>>>
>>>Regards, 
>>>Kuldeep Singh
>>>
>>>
>>>On Fri, Sep 7, 2012 at 8:15 PM, maksood alam <786maks...@gmail.com> wrote:
>>>
>>>Hi Guys,
>>>>
>>>>Below are the number i want to show only last four digit of the numbers and 
>>>>rest 
>>>>of all should be "*", please provide me the solution.
>>>>
>>>>Numbers Required out put 
>>>>555-55-5505 ***-***-5505 
>>>>555-55-125-04444 ***-**-***-*4444 
>>>>555-55-5555-23 ***-**-**55-23 
>>>> -- 
>>>>Join official facebook page of this forum @ 
>>>>https://www.facebook.com/discussexcel
>>>> 
>>>>FORUM RULES (1120+ members already BANNED for violation)
>>>> 
>>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>>Help, 
>>>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>>>get 
>>>>quick attention or may not be answered.
>>>> 
>>>>2) Don't post a question in the thread of another member.
>>>> 
>>>>3) Don't post questions regarding breaking or bypassing any security 
measure.
>>>> 
>>>>4) Acknowledge the responses you receive, good or bad.
>>>> 
>>>>5) Cross-promotion of, or links to, forums competitive to this forum in 
>>>>signatures are prohibited. 
>>>>
>>>> 
>>>>6) Jobs posting is not allowed.
>>>> 
>>>>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>>>> 
>>>>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>>>>owners 
>>>>and members are not responsible for any loss.
>>>>--- 
>>>>You received this message because you are subscribed to the Google Groups 
>>>>"MS 
>>>>EXCEL AND VBA MACROS" group.
>>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>>To unsubscribe from this group, send email to 
>>>>excel-macros+unsubscr...@googlegroups.com.-- 
>>>>
>>>Join official facebook page of this forum @ 
>>>https://www.facebook.com/discussexcel
>>> 
>>>FORUM RULES (1120+ members already BANNED for violation)
>>> 
>>>1) Use concise, accurate thread titles. Poor thread titles, like Please 
>>>Help, 
>>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>>get 
>>>quick attention or may not be answered.
>>> 
>>>2) Don't post a question in the thread of another member.
>>> 
>>>3) Don't post questions regarding breaking or bypassing any security measure.
>>> 
>>>4) Acknowledge the responses you receive, good or bad.
>>> 
>>>5) Cross-promotion of, or links to, forums competitive to this forum in 
>>>signatures are prohibited. 
>>>
>>> 
>>>6) Jobs posting is not allowed.
>>> 
>>>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>>> 
>>>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>>>owners 
>>>and members are not responsible for any loss.
>>>--- 
>>>You received this message because you are subscribed to the Google Groups 
>>>"MS 
>>>EXCEL AND VBA MACROS" group.
>>>To post to this group, send email to excel-macros@googlegroups.com.
>>>To unsubscribe from this group, send email to 
>>>excel-macros+unsubscr...@googlegroups.com.
>>> 
>>> 
>>>
>>-- 
>>Join official facebook page of this forum @ 
>>https://www.facebook.com/discussexcel
>> 
>>FORUM RULES (1120+ members already BANNED for violation)
>> 
>>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>get 
>>quick attention or may not be answered.
>> 
>>2) Don't post a question in the thread of another member.
>> 
>>3) Don't post questions regarding breaking or bypassing any security measure.
>> 
>>4) Acknowledge the responses you receive, good or bad.
>> 
>>5) Cross-promotion of, or links to, forums competitive to this forum in 
>>signatures are prohibited. 
>>
>> 
>>6) Jobs posting is not allowed.
>> 
>>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>> 
>>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>>owners 
>>and members are not responsible for any loss.
>>--- 
>>You received this message because you are subscribed to the Google Groups "MS 
>>EXCEL AND VBA MACROS" group.
>>To post to this group, send email to excel-macros@googlegroups.com.
>>To unsubscribe from this group, send email to 
>>excel-macros+unsubscr...@googlegroups.com.
>> 
>> 
>>
>>-- 
>>Join official facebook page of this forum @ 
>>https://www.facebook.com/discussexcel
>> 
>>FORUM RULES (1120+ members already BANNED for violation)
>> 
>>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not 
>>get 
>>quick attention or may not be answered.
>> 
>>2) Don't post a question in the thread of another member.
>> 
>>3) Don't post questions regarding breaking or bypassing any security measure.
>> 
>>4) Acknowledge the responses you receive, good or bad.
>> 
>>5) Cross-promotion of, or links to, forums competitive to this forum in 
>>signatures are prohibited. 
>>
>> 
>>6) Jobs posting is not allowed.
>> 
>>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
>> 
>>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>>owners 
>>and members are not responsible for any loss.
>>--- 
>>You received this message because you are subscribed to the Google Groups "MS 
>>EXCEL AND VBA MACROS" group.
>>To post to this group, send email to excel-macros@googlegroups.com.
>>To unsubscribe from this group, send email to 
>>excel-macros+unsubscr...@googlegroups.com.
>-- 
>Join official facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES (1120+ members already BANNED for violation)
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
> 
>2) Don't post a question in the thread of another member.
> 
>3) Don't post questions regarding breaking or bypassing any security measure.
> 
>4) Acknowledge the responses you receive, good or bad.
> 
>5) Cross-promotion of, or links to, forums competitive to this forum in 
>signatures are prohibited. 
>
> 
>6) Jobs posting is not allowed.
> 
>7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
> 
>NOTE : Don't ever post personal or confidential data in a workbook. Forum 
>owners 
>and members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To post to this group, send email to excel-macros@googlegroups.com.
>To unsubscribe from this group, send email to 
>excel-macros+unsubscr...@googlegroups.com.
> 
> 
>
-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel
 
FORUM RULES (1120+ members already BANNED for violation)
 
1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
 
2) Don't post a question in the thread of another member.
 
3) Don't post questions regarding breaking or bypassing any security measure.
 
4) Acknowledge the responses you receive, good or bad.
 
5) Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

 
6) Jobs posting is not allowed.
 
7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.
 
NOTE : Don't ever post personal or confidential data in a workbook. Forum 
owners 
and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.

-- 
Join official facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES (1120+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

6) Jobs posting is not allowed.

7) Sharing copyrighted ebooks/pirated ebooks/their links is not allowed.

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To post to this group, send email to excel-macros@googlegroups.com.
To unsubscribe from this group, send email to 
excel-macros+unsubscr...@googlegroups.com.


Reply via email to