lookup data on multiple columns

nholagi

New Member
Joined
Apr 16, 2015
Messages
27
Office Version
  1. 365
Platform
  1. Windows
hi everyone, i've been playing around with index/match/lookup but haven't been able to find a solution, hope to get some helps. below is just a small sample of my huge table. thanks

table1 is my source table with individual name on each row by date(this go down by thousand of rows).
table 2 is my main table that i want to return a value if it match date and name from table 1.
i originally used vlookup and endedup missing all the data since it only returns the first match value
i'm looking for a function that will look at both columns on both tables and return either 1 or 0 on result column.
i appreciate your help!

table 1table 2
Datelast nameDatelast nameresult
09/01/22
Smith
09/01/22
Luo
1
09/01/22​
Toledo
09/01/22
Smith
1
09/01/22
Luo
09/01/22​
Tran
0​
09/05/22​
Smith
09/02/22​
Kani
0​
09/05/22
Toledo
09/03/22​
Luo
0​
09/10/22​
Uro
09/04/22​
Tran
0​
09/05/22
Toledo
1
09/05/22​
Uro
0​
09/10/22​
Kani
0​
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
Fluff.xlsm
ABCDEF
1table 1table 2
2Datelast nameDatelast nameresult
301/09/2022Smith01/09/2022Luo1
401/09/2022Toledo01/09/2022Smith1
501/09/2022Luo01/09/2022Tran0
605/09/2022Smith02/09/2022Kani0
705/09/2022Toledo03/09/2022Luo0
810/09/2022Uro04/09/2022Tran0
905/09/2022Toledo1
1005/09/2022Uro0
1110/09/2022Kani0
Main
Cell Formulas
RangeFormula
F3:F11F3=SIGN(COUNTIFS(A:A,D3,B:B,E3))
 
Upvote 0
Solution
How about
Fluff.xlsm
ABCDEF
1table 1table 2
2Datelast nameDatelast nameresult
301/09/2022Smith01/09/2022Luo1
401/09/2022Toledo01/09/2022Smith1
501/09/2022Luo01/09/2022Tran0
605/09/2022Smith02/09/2022Kani0
705/09/2022Toledo03/09/2022Luo0
810/09/2022Uro04/09/2022Tran0
905/09/2022Toledo1
1005/09/2022Uro0
1110/09/2022Kani0
Main
Cell Formulas
RangeFormula
F3:F11F3=SIGN(COUNTIFS(A:A,D3,B:B,E3))
yay it works! just curious, when i try just =COUNTIFS(A:A,D3,B:B,E3) it works as well, so does it matter with the SIGN?

also, could you help find a new function? i need to add another table (table 3). This table is basically looks at table 1 and 2 and returns rows of Date and last name if it's appearing on both tables (in reality i need to look at alot more tables but if i can get this function i can modify to look at all of them )
 
Upvote 0
If you just use the countifs & something appears 3 times then the formul will return 3, but using Sign the formula will only return 1
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top