What to use - If Statement? Index & Match lookup? Or Vlookup?

Joined
Jul 27, 2017
Messages
24
Hi all,

I am working with the following data and am trying to identify the appropriate formula to use to speed up this process. I do not have a ton of familiarity with INDEX(MATCH()) formulas, and I think what I am looking for cannot be satisfied by a VLOOKUP() alone. Any ideas on what I can do would be greatly appreciated!

I have data from a few different documents that I am trying to consolidate into one worksheet. Those input tables are shown in the below two tables:

Input Table #1
Defect IDField NameInterface #1Interface #2
1first_nameX
2last_nameX
2zip_codeX

<tbody>
</tbody>

Input Table #2
Defect IDField NameInterface #3Interface #4
2zip_codeX
3phone_numberX
4first_nameX
5state_IDX


<tbody>
</tbody>

The worksheet I am trying to consolidate the data on to looks like the below sample table. What I am looking for is a formula (or formulas) to put in cells C2:F8 that will pull in the "X" from the Input tables if applicable.
Consolidated Table
Defect IDField NameInterface #1Interface #2Interface #3Interface #4
1first_name
2last_name
2zip_code
3phone_number
4first_name
4work_address
5state_ID

<tbody>
</tbody>

Any assistance, suggestions, or resources that you all can provide would be awesome, thank you in advance!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Try the below (confirm with ctrl+shift+enter) - note, you'll need to change the reference to C$12 - this was the cell of my consolidated table that contained "Interface #1 "...

PHP:
=IF(COUNTIF(Table1[Defect ID],[@[Defect ID]])*COUNTIF(Table1[Field Name],[@[Field Name]])*COUNTIF(Table1[#Headers],C$12),INDEX(Table1,MATCH([@[Defect ID]]&[@[Field Name]],Table1[Defect ID]&Table1[Field Name],0),MATCH(C$12,Table1[#Headers],0)),IF(COUNTIF(Table2[Defect ID],[@[Defect ID]])*COUNTIF(Table2[Field Name],[@[Field Name]])*COUNTIF(Table2[#Headers],C$12),INDEX(Table2,MATCH([@[Defect ID]]&[@[Field Name]],Table2[Defect ID]&Table2[Field Name],0),MATCH(C$12,Table2[#Headers],0)),""))
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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