Shouldn't they be strings? =LOOKUP(A2,{0,1,2,3,4,5,6,7,8,9},{"#","#","#","#","#","#","#","#","#"})
Regards, Sam Mathai Chacko On Fri, Sep 7, 2012 at 10:37 PM, Paul Schreiner <schreiner_p...@att.net>wrote: > Odd... > I seem to be suffering a temporary loss of cognitive function. > (can't think straight) > > I'm trying to use Lookup() to replace numbers with "#" > > I THOUGHT I could enter it as an array function like: > > =Lookup(A2,{0,1,2,3,4,5,6,7,8,9},{#,#,#,#,#,#,#,#,#,#}) > > but I cannot seem to figure out how to get it to enter as an array > function. > > I'm actually trying to DISPLAY a cell that has a PIN and blank out all > except the last (4) digits > So: > A2 is 123-45-6789 > the result of the lookup would be: > B2: ###-##-6789 > > However, the original string isn't always formatted the same. > I need to retain the non-numeric characters. > > Any ideas? > Maybe I just need an Array Formula refresher.... > Hmm... > > Paul S. > > -- > 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. > > > -- Sam Mathai Chacko -- 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.