![]() |
Lookup with 3 criterias
I want to find the row in the second workbook which satisfies the following
three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
How about
=MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
It didn't work. I also need to return the value in column D of sheet2 to a
column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1:C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
It needs to be entered with ctrl + shift & enter
-- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1:C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
=MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) entered with
ctrl + shift & enter does give me the row number I wanted. But I also need to return the value in column D of that row. So I enter the following formula with ctrl + shift & enter: =INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1:C100,0),4)) This should work but it gives me #N/A. Any thoughts? Thanks! "Peo Sjoblom" wrote: It needs to be entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1:C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
Try
INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100 &Sheet2!B1:B100&Sheet2!C1: C100,0),4)) array entered again -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) entered with ctrl + shift & enter does give me the row number I wanted. But I also need to return the value in column D of that row. So I enter the following formula with ctrl + shift & enter: =INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0),4)) This should work but it gives me #N/A. Any thoughts? Thanks! "Peo Sjoblom" wrote: It needs to be entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
meant =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) -- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Try INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100 &Sheet2!B1:B100&Sheet2!C1: C100,0),4)) array entered again -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) entered with ctrl + shift & enter does give me the row number I wanted. But I also need to return the value in column D of that row. So I enter the following formula with ctrl + shift & enter: =INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0),4)) This should work but it gives me #N/A. Any thoughts? Thanks! "Peo Sjoblom" wrote: It needs to be entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
Yes. It works like a charm. This is absolutely great and helpful! Thanks!
"Bob Phillips" wrote: meant =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) -- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Try INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100 &Sheet2!B1:B100&Sheet2!C1: C100,0),4)) array entered again -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) entered with ctrl + shift & enter does give me the row number I wanted. But I also need to return the value in column D of that row. So I enter the following formula with ctrl + shift & enter: =INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0),4)) This should work but it gives me #N/A. Any thoughts? Thanks! "Peo Sjoblom" wrote: It needs to be entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
Glad we got there Ginger :-)
Bob "Ginger" wrote in message ... Yes. It works like a charm. This is absolutely great and helpful! Thanks! "Bob Phillips" wrote: meant =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) -- HTH RP (remove nothere from the email address if mailing direct) "Bob Phillips" wrote in message ... Try INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A100 &Sheet2!B1:B100&Sheet2!C1: C100,0),4)) array entered again -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) entered with ctrl + shift & enter does give me the row number I wanted. But I also need to return the value in column D of that row. So I enter the following formula with ctrl + shift & enter: =INDEX(Sheet2!A1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0),4)) This should work but it gives me #N/A. Any thoughts? Thanks! "Peo Sjoblom" wrote: It needs to be entered with ctrl + shift & enter -- Regards, Peo Sjoblom "Ginger" wrote in message ... It didn't work. I also need to return the value in column D of sheet2 to a column in sheet1. If the value is not available, I'd like to return blank. I also tried the following but it didn't work either. I got "#value!": =INDEX(Sheet2!D1:D100,MATCH(A2&B2&C2,Sheet2!A1:A10 0&Sheet2!B1:B100&Sheet2!C1 :C100,0)) Thanks!!! "Bob Phillips" wrote: How about =MATCH(A2&B2&C2,Sheet2!A1:A100&Sheet2!B1:B100&Shee t2!C1:C100,0) -- HTH RP (remove nothere from the email address if mailing direct) "Ginger" wrote in message ... I want to find the row in the second workbook which satisfies the following three criterias and return the number in column D of that row in the second workbook to the first (original) workbook. Return blank if the number is not available. 1. the content of column A in the first worksheet = the content of column A in the second worksheet (text); 2. the content of column B in the first worksheet = the content of column B in the second worksheet (numeric); 3. the content of column C in the first worksheet = the content of column C in the second worksheet (numeric and text); I was trying to use Lookup, Match and Index formulas but didn't succeed. Thanks much in advance for your help! |
All times are GMT +1. The time now is 08:12 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com