Darnell7007
New Member
- Joined
- Mar 11, 2025
- Messages
- 5
- Office Version
- 365
- Platform
- Windows
Hello!
I have a set of data on a tab "All" - this data is raw and unfiltered - new rows are being added each week. Based on certain criteria, "Y" or "N" in column M, I would like the rows where the value in column M equals "N" to be copied onto a second sheet "Current" and the rows where the value in M is "Y" onto a third sheet "Returned". I've tried VLOOKUP and a Pivot Table - I couldn't get the Pivot Table to format how my team prefers to read the data, and I can't get the VLOOKUP to work. I have the logic I want, my issue is understanding how to translate that into a format Excel understands.
In essence: IF M2=Y, THEN copy row to Returned
IF M2=N, THEN copy row to Current
For the sake of time and data sensitivity, Column M in my real data will just become Column C in the example data below.
So my logic would then be: IF C2=Y, THEN copy row to Returned
IF C2=N, THEN copy row to Current
I would use filters on the first tab and be done with it, but several teams use this file, and each team needs their own spreadsheet for Accounts Payable, Accounts Receivable, Transportation Management, etc., so I really need to be able to separate all this raw data from the first tab into the correct Department tabs.
I have a set of data on a tab "All" - this data is raw and unfiltered - new rows are being added each week. Based on certain criteria, "Y" or "N" in column M, I would like the rows where the value in column M equals "N" to be copied onto a second sheet "Current" and the rows where the value in M is "Y" onto a third sheet "Returned". I've tried VLOOKUP and a Pivot Table - I couldn't get the Pivot Table to format how my team prefers to read the data, and I can't get the VLOOKUP to work. I have the logic I want, my issue is understanding how to translate that into a format Excel understands.
In essence: IF M2=Y, THEN copy row to Returned
IF M2=N, THEN copy row to Current
For the sake of time and data sensitivity, Column M in my real data will just become Column C in the example data below.
So my logic would then be: IF C2=Y, THEN copy row to Returned
IF C2=N, THEN copy row to Current
Customer Branch | Unit # | Y/N |
2033 | 1539 | Y |
2051 | 5577 | Y |
2033 | 9463 | N |
2051 | 1582 | Y |
2051 | 7964 | N |
2051 | 1948 | Y |
2033 | 2577 | Y |
2033 | 1392 | Y |
2051 | 1284 | N |
2033 | 9536 | N |
2033 | 8676 | N |
I would use filters on the first tab and be done with it, but several teams use this file, and each team needs their own spreadsheet for Accounts Payable, Accounts Receivable, Transportation Management, etc., so I really need to be able to separate all this raw data from the first tab into the correct Department tabs.