Re: $$Excel-Macros$$ entering Array formula in lookup function
I'm sorry gentlemen. I was out of the office for a few days. (Actually, I'm not sorry... I needed the time off!) As Sam (I believed) surmised, the actual problem was that I couldn't get the CSE to work properly. It kept wanting to create the array function as: ={LOOKUP(A2,"0","1","2","3","4","5","6","7","8","9","#","#","#","#","#","#","#","#","#")} instead of =LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) I couldn't figure out how to get it to work as a function. I managed to do it quite easily with VBA, and I simply wrote a UDF for the user to accomplish his task. To REALLY get on my "good side", he didn't NEED it. He was "just wondering" if it could be done! He's now VERY low on my priority assistance list! 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: Sam Mathai Chacko To: excel-macros@googlegroups.com Sent: Sat, September 8, 2012 7:11:19 AM Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function Well, I guess then it's up to Paul to clarify what he's finding hard to do here. Sam On Sat, Sep 8, 2012 at 2:34 PM, David Grugeon wrote: This is an array option in the formula and does not have to be entered >with CSE. It is just overloaded. You put the curly brackets in >manually. > >David > > >On 8 September 2012 17:44, Sam Mathai Chacko wrote: >> Dave, I guess Paul's issue is more on not being able to enter this as an >> array formula. Changing the vector array elements to strings probably >> doesn't really make a difference if the issue is about entering the CSE >> formula. >> >> Regards, >> Sam Mathai Chacko >> >> >> On Sat, Sep 8, 2012 at 1:38 AM, David Grugeon wrote: >>> >>> The numbers are strings too >>> >>> >>>=LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) >>>) >>> >>> Regards >>> David Grugeon >>> >>> On 8 September 2012 03:57, Paul Schreiner wrote: >>> > Sorry, I copy/pasted the wrong one. >>> > I'm still having trouble inserting it as an array function. >>> > >>> > thanks, >>> > >>> > >>> > 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: Sam Mathai Chacko >>> > To: excel-macros@googlegroups.com >>> > Sent: Fri, September 7, 2012 1:26:28 PM >>> > Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function >>> > >>> > 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 >>> > 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,
Re: $$Excel-Macros$$ entering Array formula in lookup function
Well, I guess then it's up to Paul to clarify what he's finding hard to do here. Sam On Sat, Sep 8, 2012 at 2:34 PM, David Grugeon wrote: > This is an array option in the formula and does not have to be entered > with CSE. It is just overloaded. You put the curly brackets in > manually. > > David > > On 8 September 2012 17:44, Sam Mathai Chacko wrote: > > Dave, I guess Paul's issue is more on not being able to enter this as an > > array formula. Changing the vector array elements to strings probably > > doesn't really make a difference if the issue is about entering the CSE > > formula. > > > > Regards, > > Sam Mathai Chacko > > > > > > On Sat, Sep 8, 2012 at 1:38 AM, David Grugeon > wrote: > >> > >> The numbers are strings too > >> > >> > >> > =LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) > >> > >> Regards > >> David Grugeon > >> > >> On 8 September 2012 03:57, Paul Schreiner > wrote: > >> > Sorry, I copy/pasted the wrong one. > >> > I'm still having trouble inserting it as an array function. > >> > > >> > thanks, > >> > > >> > > >> > 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: Sam Mathai Chacko > >> > To: excel-macros@googlegroups.com > >> > Sent: Fri, September 7, 2012 1:26:28 PM > >> > Subject: Re: $$Excel-Macros$$ entering Array formula in lookup > function > >> > > >> > 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
Re: $$Excel-Macros$$ entering Array formula in lookup function
This is an array option in the formula and does not have to be entered with CSE. It is just overloaded. You put the curly brackets in manually. David On 8 September 2012 17:44, Sam Mathai Chacko wrote: > Dave, I guess Paul's issue is more on not being able to enter this as an > array formula. Changing the vector array elements to strings probably > doesn't really make a difference if the issue is about entering the CSE > formula. > > Regards, > Sam Mathai Chacko > > > On Sat, Sep 8, 2012 at 1:38 AM, David Grugeon wrote: >> >> The numbers are strings too >> >> >> =LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) >> >> Regards >> David Grugeon >> >> On 8 September 2012 03:57, Paul Schreiner wrote: >> > Sorry, I copy/pasted the wrong one. >> > I'm still having trouble inserting it as an array function. >> > >> > thanks, >> > >> > >> > 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: Sam Mathai Chacko >> > To: excel-macros@googlegroups.com >> > Sent: Fri, September 7, 2012 1:26:28 PM >> > Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function >> > >> > 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 >> > 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. >> >&
Re: $$Excel-Macros$$ entering Array formula in lookup function
Dave, I guess Paul's issue is more on not being able to enter this as an array formula. Changing the vector array elements to strings probably doesn't really make a difference if the issue is about entering the CSE formula. Regards, Sam Mathai Chacko On Sat, Sep 8, 2012 at 1:38 AM, David Grugeon wrote: > The numbers are strings too > > > =LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) > > Regards > David Grugeon > > On 8 September 2012 03:57, Paul Schreiner wrote: > > Sorry, I copy/pasted the wrong one. > > I'm still having trouble inserting it as an array function. > > > > thanks, > > > > > > 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: Sam Mathai Chacko > > To: excel-macros@googlegroups.com > > Sent: Fri, September 7, 2012 1:26:28 PM > > Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function > > > > 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 > > 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 (
Re: $$Excel-Macros$$ entering Array formula in lookup function
The numbers are strings too =LOOKUP(A2,{"0","1","2","3","4","5","6","7","8","9"},{"#","#","#","#","#","#","#","#","#"}) Regards David Grugeon On 8 September 2012 03:57, Paul Schreiner wrote: > Sorry, I copy/pasted the wrong one. > I'm still having trouble inserting it as an array function. > > thanks, > > > 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: Sam Mathai Chacko > To: excel-macros@googlegroups.com > Sent: Fri, September 7, 2012 1:26:28 PM > Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function > > 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 > 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 becaus
Re: $$Excel-Macros$$ entering Array formula in lookup function
Strange! I can enter it as an array function =LOOKUP(A2,{0,1,2,3,4,5,6,7,8, 9},{"#","#","#","#","#","#","#","#","#"}) using CSE Regards, Sam On Fri, Sep 7, 2012 at 11:27 PM, Paul Schreiner wrote: > Sorry, I copy/pasted the wrong one. > I'm still having trouble inserting it as an array function. > > thanks, > > > *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:* Sam Mathai Chacko > *To:* excel-macros@googlegroups.com > *Sent:* Fri, September 7, 2012 1:26:28 PM > *Subject:* Re: $$Excel-Macros$$ entering Array formula in lookup function > > 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 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 p
Re: $$Excel-Macros$$ entering Array formula in lookup function
Sorry, I copy/pasted the wrong one. I'm still having trouble inserting it as an array function. thanks, 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: Sam Mathai Chacko To: excel-macros@googlegroups.com Sent: Fri, September 7, 2012 1:26:28 PM Subject: Re: $$Excel-Macros$$ entering Array formula in lookup function 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 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. -- 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 li
Re: $$Excel-Macros$$ entering Array formula in lookup function
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 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.