Combine data on new tab if criteria is met

Nanogirl21

Active Member
Joined
Nov 19, 2013
Messages
330
Office Version
  1. 365
Platform
  1. Windows
I have 3 worksheets: Old, RYG, and Differences


How would I copy and paste values from Old and RYG that meet certain criteria onto the Differences sheet and record the name of tab the data was originally from?

Formulas are easier for me to understand and my preferred method, but VBA can be used if necessary. I am using Office 365.


Lookup Set 1

Action: Clear all data (except row 1 headers) on the Differences sheet

Lookup: All values from column A on Old and RYG sheets

Paste: Column A on Differences sheet

Record: Name of the original sheet in column B of Differences sheet



Lookup Set 2

Lookup: All values from column N on Old and RYG sheets that contain the word RED

Paste: Column F on Differences sheet

Record: Name of the original sheet in column G of Differences sheet



Lookup Set 3

Lookup: All values from column N on Old and RYG sheets that contain the word YELLOW

Paste: Column L on Differences sheet

Record: Name of the original sheet in column M of Differences sheet


Thank you
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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