W.E.B
asked on
Excel lookup - fomrula-macro
Hello,
can you please help, (Formula or Macro)
in Column "AB"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column A",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
in Column "AC"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column F",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
in Column "AD"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column G",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
I have more than 20 thousands rows .
Please see sample attached.
thanks,
Sample.xlsx
can you please help, (Formula or Macro)
in Column "AB"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column A",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
in Column "AC"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column F",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
in Column "AD"
I Need a formula to lookup column "M" in column "C".
if found, bring Value in column G",
If more than one value found, I need all values (separated by underscore, or comma,or ....).
I have more than 20 thousands rows .
Please see sample attached.
thanks,
Sample.xlsx
ASKER
Hi Neeraj,
I tried the code, but I'm not getting any results back.
please see sample attached.
thank you.
SampleUDF.xlsm
I tried the code, but I'm not getting any results back.
please see sample attached.
thank you.
SampleUDF.xlsm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very Much.
You're welcome. Glad to help.
Open in new window
Then use it like this......In AB2
Open in new window
In AC2
Open in new window
In AD2
Open in new window
For details, refer to the attached.
PS. You may change the delimiter as per your requirement in the following line of code
str = str & "_" & x(i, c)
SampleUDF.xlsm