We help IT Professionals succeed at work.
Get Started

Excel formula referencing multiple columns between tables.

302 Views
Last Modified: 2018-02-02
I have 2 tables each with 2 columns referenced to find an answer and place it on a 3rd table,
sheet1
tid,cid,product,time
120,453,3b5,8:30
130,453,234,8:32
140,30,23,9:00
150,453,3b5,9:01
160,1278,1,9:07
170,30,3b6,9:09

sheet2
cid,product,ran,pri,productname
30,23,na,no,"box of rocks"
30,24,no,yes,"bigger box of rocks"
31,gam,no,no,"rare item"
30,3b5,na,no,"box of rocks, the original"
453,234,5,8,"barrel of monkeys"
453,3b6,4,8,"barrel of dirty monkeys"
1278,15,no,no,"soap"

on a 3rd page i would like to have the following
sheet3
tid,cid,productname,ran
120,453, ,
130,453,"barrel of monkeys",5
140,30,"box of rocks",na
150,453,"box of rocks, the original",na
160,1278, ,
170,30, ,

I have tried vlookup but to no avail, what formula would I use here to match the data across the pages?
Comment
Watch Question
Test your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Distinguished Expert 2020
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE