IF TABLE_1 has data based on TABLE_2, populate in TABLE_3

Status
Not open for further replies.

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
579
Office Version
  1. 2016
Hi all

In Table_1 I have data, which has a Unique Value in Column A, and data in cells C to Z. (Starting Row 2 downwards). Each of the columns C to Z has a Header

In Table_2 I have the Unique Reference in Column A, and some names of the column headers that are in Table 1.

What I need in table 3 is to replicate table_1, but only include the data if the column header (in Table 2) is listed


TABLE_1
Column A
Column B
Column C
Column D
Column E
Column F
ID_NUMBER
-
HORSE
CHICKEN
FOX
DOG
12345-XXXyyy
13579-CCCvvveeeWWW
24680-hhhKKK
97531-qqqRRRUUUJJJ


TABLE_2
COLUMN A(Ref Only)COLUMN BCOLUMN CCOLUMN DCOLUMN ECOLUMN F
ID_NONo. Of Matcheslookup_1look_up2Look_up3Look_up4Look_up5
123451HORSE
135792HORSEDOG
246801FOX
975313CHICKENFOXDOG



END_RESULT
Column AColumn B (Ref OnlY)Column CColumn DColmn EColumn F
ID_NUMBERNo Of Matches
HORSE
CHICKEN
FOX
DOG
123451XXXYYY
135792CCCWWW
246801KKK
975313RRRUUUJJJ

So,

For 12345 :-

Table 1 has value is Horse and Fox.
Table 2 wants Horse value only
In Table 1 The value of horse is xxx (Fox would be yyy, but is not needed)

End_Result table should in the cell that crosses Horse and 12345 put xxx only.

I have highlighted in green the values in Table_1 that end up in End_Result Table
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Status
Not open for further replies.

Forum statistics

Threads
1,214,606
Messages
6,120,483
Members
448,967
Latest member
visheshkotha

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