Excel Multiple Vlookups (?) with transposing (?)

shannaganns

New Member
Joined
Apr 27, 2016
Messages
1
Hi all - I'm new here and really hoping that someone can help me before I pull all my hair out!

This is a sample of the data I have. I have over 24k rows that look just like this.

Group IDMerge KeyMaster RecordExclude RecordRecord IDKey IndicatorConstituent Import ID
G-1|ALEXANDRE|||||NoNo760105I00001-593-0000760105
G-1|ALEXANDRE|||||YesNo760324I00001-593-0000760324
G-9|TATTOLI|||||NoNo1148814I00001-593-0001148814
G-9|TATTOLI|||||NoNo1148816I00001-593-0001148816
G-9|TATTOLI|||||NoNo1149773I00001-593-0001149773
G-9|TATTOLI|||||NoNo1148813I00001-593-0001148813
G-9|TATTOLI|||||NoNo1149777I00001-593-0001149777
G-9|TATTOLI|||||YesNo1149885I00001-593-0001149885

<tbody>
</tbody>

Each Group ID (column A) is a potential duplicate record in the database I run. I need to import this spreadsheet back into my database (as a csv) so that I can merge these records, but need to make sure that they get merged into the correct records.

To import the data back, the system requires the following: Column A to the Constituent Import ID # (last column) that has the word Yes in the Master Record column, located on the same line. Then for the following cells (same row) to have the Constituent Import ID # (last column) that has the word No in the Master Record column, located on the same line.

So making sure that the data only comes from the rows that include Group ID G-1, and then G-9. Then:

  • Give me the number in the Constituent Import ID column in a NEW column
  • BUT only if the answer in Master Record column = Yes
Then also:

  • Give me the number in the Constituent Import ID column in a NEW column, next to the new column created for above
  • BUT only if the answer in the Master Record column = No

Here’s what I need to end up seeing, just in case what I wrote above isn't clear. I color coded an example to be clear (see above and below).

Constituent Import ID if Master Record = YesConstituent Import ID if Master Record = NoGroup IDMerge KeyMaster RecordExclude RecordRecord IDKey IndicatorConstituent Import ID
00001-593-000076032400001-593-0000760105G-1|ALEXANDRE|||||NoNo760105I00001-593-0000760105
G-1|ALEXANDRE|||||YesNo760324I00001-593-0000760324

<tbody>
</tbody>

Keeping in mind that Group ID G-9 has 6 rows of data - so the Constituent Import ID number that has the Master Record of Yes, goes in the first column, then the Constituent Import ID numbers that have the Master Record of No, go into the columns next to it.

I'm using Excel 2013, and have tried about a million different formulas, but I don't know formula's (except vlookup) very well, so I was really just trying to research online and play around on my own to see if I had any success, but clearly I didn't.

Any help you can provide would be SO SO SO appreciated!!

Thank you in advance!!!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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