Magoosball
Board Regular
- Joined
- Jun 4, 2017
- Messages
- 70
- Office Version
- 365
I have a report that I am pulling from our database daily (Sheet 2). I am using this report to update information on a master spreadsheet (Sheet 1). Consider sheet 1 as a running total that is updated daily through a script and sheet 2 is information specific to today that I need to add onto sheet 1 under specific circumstances. There are 2 things that I need from this:
1) For any row on sheet 2 where the contents of the cell D and O on the same row are the same as any row on sheet 1 then do nothing. (Think of columns D and O as a double identifier. Under the first scenario I am copying over anything from sheet 2 to sheet 1 that doesn't already exist. I can tell if it exists based off the double identifier.)
If no row on sheet 1 contains contains this double identifier consider this a new row and copy the entire row from sheet 2 to the bottom of sheet 1.
2) On the same workbook as before, lets say there is a row on sheet where the contents of cells D and O don't exist on any row on sheet 2. Under this scenario I would want to fill the row from column A to column T with a light green color on Sheet 1 AND put today's date into that row on column S on sheet 1.
This is checking to see if there was a change from yesterday when I pulled this from our database to today. I can see that there was a change because on my master sheet 1 there is a value that no longer exists on sheet 2. This is determined by the double identifier above. I want to mark this change by filling the row from A to T with a light green color and by putting today's date into column S.
Thank you in advance!
1) For any row on sheet 2 where the contents of the cell D and O on the same row are the same as any row on sheet 1 then do nothing. (Think of columns D and O as a double identifier. Under the first scenario I am copying over anything from sheet 2 to sheet 1 that doesn't already exist. I can tell if it exists based off the double identifier.)
If no row on sheet 1 contains contains this double identifier consider this a new row and copy the entire row from sheet 2 to the bottom of sheet 1.
2) On the same workbook as before, lets say there is a row on sheet where the contents of cells D and O don't exist on any row on sheet 2. Under this scenario I would want to fill the row from column A to column T with a light green color on Sheet 1 AND put today's date into that row on column S on sheet 1.
This is checking to see if there was a change from yesterday when I pulled this from our database to today. I can see that there was a change because on my master sheet 1 there is a value that no longer exists on sheet 2. This is determined by the double identifier above. I want to mark this change by filling the row from A to T with a light green color and by putting today's date into column S.
Thank you in advance!