Hi,
I have a question in regards to automatic lists in Excel and will try my best to explain it clearly. Any help is appreciated.
Very simplified, I have 3 tabs. #1 has raw data, #2 has a list of "cost centers" and #3 is a tab in which I would like to have an automatic list of all rows with the cost centers not included in #2.
For example:
Tab #1 would look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Region[/TD]
[TD]Cost Center[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Alberta[/TD]
[TD]1111[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]8$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]8$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Manitoba[/TD]
[TD]5555[/TD]
[TD]10$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Nova Scotia[/TD]
[TD]6666[/TD]
[TD]3$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Saskatchewan[/TD]
[TD]4444[/TD]
[TD]2$[/TD]
[/TR]
</tbody>[/TABLE]
Tab #2 could look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Region[/TD]
[TD]Cost Center[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Alberta[/TD]
[TD]1111[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]10$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]15$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Saskatchewan[/TD]
[TD]4444[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Nova Scotia[/TD]
[TD]6666[/TD]
[TD]3$[/TD]
[/TR]
</tbody>[/TABLE]
I would like tab #3 to automatically list the entire row of any line items from tab #1 that were not included in tab#2, using the cost center as reference. It would generate this info in this case:
[TABLE="width: 500"]
<tbody>[TR]
[TD]2015[/TD]
[TD]Manitoba[/TD]
[TD]5555[/TD]
[TD]10$[/TD]
[/TR]
</tbody>[/TABLE]
If 5555 was included in tab #2, tab#3 would then be blank. If 5555 and 6666 were not included in tab #2, all line items for 5555 and 6666 would automatically be listed in #3.
I have done this previously for another model, but I can't seem to adapt it or understand my logic haha.
If you could help, it would be so appreciated.
Thank you!!
Manon
I have a question in regards to automatic lists in Excel and will try my best to explain it clearly. Any help is appreciated.
Very simplified, I have 3 tabs. #1 has raw data, #2 has a list of "cost centers" and #3 is a tab in which I would like to have an automatic list of all rows with the cost centers not included in #2.
For example:
Tab #1 would look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Region[/TD]
[TD]Cost Center[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Alberta[/TD]
[TD]1111[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]8$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]8$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Manitoba[/TD]
[TD]5555[/TD]
[TD]10$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Nova Scotia[/TD]
[TD]6666[/TD]
[TD]3$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Saskatchewan[/TD]
[TD]4444[/TD]
[TD]2$[/TD]
[/TR]
</tbody>[/TABLE]
Tab #2 could look like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Year[/TD]
[TD]Region[/TD]
[TD]Cost Center[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Alberta[/TD]
[TD]1111[/TD]
[TD]5$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Ontario[/TD]
[TD]2222[/TD]
[TD]10$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Quebec[/TD]
[TD]3333[/TD]
[TD]15$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Saskatchewan[/TD]
[TD]4444[/TD]
[TD]2$[/TD]
[/TR]
[TR]
[TD]2015[/TD]
[TD]Nova Scotia[/TD]
[TD]6666[/TD]
[TD]3$[/TD]
[/TR]
</tbody>[/TABLE]
I would like tab #3 to automatically list the entire row of any line items from tab #1 that were not included in tab#2, using the cost center as reference. It would generate this info in this case:
[TABLE="width: 500"]
<tbody>[TR]
[TD]2015[/TD]
[TD]Manitoba[/TD]
[TD]5555[/TD]
[TD]10$[/TD]
[/TR]
</tbody>[/TABLE]
If 5555 was included in tab #2, tab#3 would then be blank. If 5555 and 6666 were not included in tab #2, all line items for 5555 and 6666 would automatically be listed in #3.
I have done this previously for another model, but I can't seem to adapt it or understand my logic haha.
If you could help, it would be so appreciated.
Thank you!!
Manon