Re: $$Excel-Macros$$ need correction in the formula
Excellent Haseeb. Probably safer to use FIND instead of SEARCH. Example: Shanmukh and Sushanth will both return the same vector result for Sha. Since FIND is case sensitive, this would solve that possible error. Regards, Sam Mathai Chacko On Wed, Nov 23, 2011 at 11:53 PM, Haseeb Avarakkan haseeb.avarak...@gmail.com wrote: Let me explain my best. I hope this help. 9E300; When you use it in Excel it will changed to 9E+300. It is a scientific notation of a big number. 300 zeros after 9, so it is like 9000…… This will give a big number. As you know LOOKUP will always look for the number =Lookup_Value. So here is =900….. SEARCH({Sa,Su,Sha},B4); This will look for the each array in B4, “Sa”,’Su”,”Sha” will give the position (*How many characters after*). For B4 will get like {1,#VALUE!,#VALUE!} So here “Sa” contains in starting of B4, rest of the doesn’t. LOOKUP will ignore the error values. In these 3 arrays, position of the Lookup_value is 1 (=9E300, =1) Lookup will give the corresponding value in result_array, which is from {Hero,Boy,Shaan} = “Hero” Finally Lookup will like, LOOKUP(9E+300,{1,#VALUE!,#VALUE!},{Hero,Boy,Shaan}) here position of lookup value is 1, so 1st value from result_vector = Hero For B5, LOOKUP(9E+300,{#VALUE!,1,#VALUE!},{Hero,Boy,Shaan}) here position of lookup value is 2, so 2nd value from result_vector = Boy For B6, LOOKUP(9E+300,{#VALUE!,#VALUE!,1},{Hero,Boy,Shaan}) here position of lookup value is 3, so 3rd value from result_vector = Shaan __ Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Sam Mathai Chacko -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
RE: $$Excel-Macros$$ need correction in the formula
Hi Haseeb, Thanks for the solution. But I am unable to understand the formula,would request you to kindly help me in understanding the formula and where can we use 9E300. Regards Santosh -- Date: Wed, 23 Nov 2011 08:06:00 +0530 Subject: Re: $$Excel-Macros$$ need correction in the formula From: noorain.ans...@gmail.com To: excel-macros@googlegroups.com Great Solution Haseeb..Excellent.. On Wed, Nov 23, 2011 at 12:59 AM, Haseeb Avarakkan haseeb.avarak...@gmail.com wrote: Hello Santosh, Another one. =IFERROR(LOOKUP(9E300,SEARCH({Sa,Su,Sha},B4),{Hero,Boy,Shaan}),) __ HTH Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Thanks regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*http://excelmacroworld.blogspot.com/ *http://noorain-ansari.blogspot.com/* http://noorain-ansari.blogspot.com/ -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Regards Santosh santoshkumar.subu...@gmail.com -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ need correction in the formula
Let me explain my best. I hope this help. 9E300; When you use it in Excel it will changed to 9E+300. It is a scientific notation of a big number. 300 zeros after 9, so it is like 9000…… This will give a big number. As you know LOOKUP will always look for the number =Lookup_Value. So here is =900….. SEARCH({Sa,Su,Sha},B4); This will look for the each array in B4, “Sa”,’Su”,”Sha” will give the position (*How many characters after*). For B4 will get like {1,#VALUE!,#VALUE!} So here “Sa” contains in starting of B4, rest of the doesn’t. LOOKUP will ignore the error values. In these 3 arrays, position of the Lookup_value is 1 (=9E300, =1) Lookup will give the corresponding value in result_array, which is from {Hero,Boy,Shaan} = “Hero” Finally Lookup will like, LOOKUP(9E+300,{1,#VALUE!,#VALUE!},{Hero,Boy,Shaan}) here position of lookup value is 1, so 1st value from result_vector = Hero For B5, LOOKUP(9E+300,{#VALUE!,1,#VALUE!},{Hero,Boy,Shaan}) here position of lookup value is 2, so 2nd value from result_vector = Boy For B6, LOOKUP(9E+300,{#VALUE!,#VALUE!,1},{Hero,Boy,Shaan}) here position of lookup value is 3, so 3rd value from result_vector = Shaan __ Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ need correction in the formula
Dear Santosh, Please try it.. =IF(NOT(ISERROR(SEARCH(sa,B4,1))),Hero,IF(NOT(ISERROR(SEARCH(Su,B4,1))),Boy,IF(NOT(ISERROR(SEARCH(Sha,B4,1))),Shaan,))) On Tue, Nov 22, 2011 at 1:38 PM, santosh subudhi santoshkumar.subu...@gmail.com wrote: Hi All, Please look into the formula and do the necessary correction. -- Regards Santosh santoshkumar.subu...@gmail.com -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Thanks regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*http://excelmacroworld.blogspot.com/ *http://noorain-ansari.blogspot.com/* http://noorain-ansari.blogspot.com/ -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com Solved.xlsm Description: Binary data
Re: $$Excel-Macros$$ need correction in the formula
Hello Santosh, Another one. =IFERROR(LOOKUP(9E300,SEARCH({Sa,Su,Sha},B4),{Hero,Boy,Shaan}),) __ HTH Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ need correction in the formula
Great Solution Haseeb..Excellent.. On Wed, Nov 23, 2011 at 12:59 AM, Haseeb Avarakkan haseeb.avarak...@gmail.com wrote: Hello Santosh, Another one. =IFERROR(LOOKUP(9E300,SEARCH({Sa,Su,Sha},B4),{Hero,Boy,Shaan}),) __ HTH Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Thanks regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*http://excelmacroworld.blogspot.com/ *http://noorain-ansari.blogspot.com/* http://noorain-ansari.blogspot.com/ -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com
Re: $$Excel-Macros$$ need correction in the formula
plz tell me about 9E300. On Wed, Nov 23, 2011 at 8:06 AM, NOORAIN ANSARI noorain.ans...@gmail.comwrote: Great Solution Haseeb..Excellent.. On Wed, Nov 23, 2011 at 12:59 AM, Haseeb Avarakkan haseeb.avarak...@gmail.com wrote: Hello Santosh, Another one. =IFERROR(LOOKUP(9E300,SEARCH({Sa,Su,Sha},B4),{Hero,Boy,Shaan}),) __ HTH Haseeb -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- Thanks regards, Noorain Ansari *http://excelmacroworld.blogspot.com/*http://excelmacroworld.blogspot.com/ *http://noorain-ansari.blogspot.com/*http://noorain-ansari.blogspot.com/ -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com -- mujhay dukh is baat ka nahin kay meri zaat ko muntashir karny walay haath tairy thy mujhay dukh faqt is baat ka hay meri raiza raiza zaat ko samaitnay walay haath tairy na thy Thanks Regards Sourabh Contact Numbers: +91-94630-49202 Website:http://adhurapyaar.co.cc -- FORUM RULES (934+ 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. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. -- To post to this group, send email to excel-macros@googlegroups.com