harleythecav
New Member
- Joined
- May 18, 2020
- Messages
- 7
- Office Version
- 2016
- Platform
- Windows
Hello forum - not sure what is possible so any assistance with the below question appreciated.
I have 2 worksheets in a workbook: Sheet 1 is my raw data set and Sheet 2 is the leave roster I'm creating.
Sheet 1 (raw data) has:
Column D = names (duplicate names exist)
Column F = Status (6 options: Approved, Unapproved, Cancelled, Declined, Deleted, Errored)
Column G = start date
Column H = end date
Sheet 2 (leave roster) has:
Column B = names (lists of names from sheet 1 with no duplicates using index/match formula to create list of unique values - this starts at row 13, header row 12)
Row 12 is the dates starting with =today() in Column F (and this continues across the row for 365 columns to capture 1 year using +1)
Ideally what I would like to do is:
Bring back the Status from Column F in Sheet 1 into Sheet 2, starting at F13 (then below and across for all names and dates) based on if -
1) the date in Sheet 2 Row 12 (starting with Column F) is equal to or between the date range of Columns G and H in Sheet 1
and
2) the name in Sheet 2 Column B (starting with Row 13) matches the name in Sheet 1 Column D (keeping in mind that Sheet 1 has duplicate names and Sheet 2 uses a formula to create a unique list of names that will change when the raw data in Sheet 1 is updated)
Ideally I would like to capture the Status as an abbreviation if possible (Approved = A, Unapproved = U, Cancelled = Ca etc) however if only Approved and Unapproved are possible this would be enough to help with blank or "X" where no data point exists.
I know how to achieve this is there are no duplicates names in Sheet 1 and also if I use an interim table as a work around but I don't want to do that if I can avoid it.
Is what I want to achieve possible?
Sheet 1 (Range A3 to H8):
Sheet 2 (Range B12 to J17) - illustrative example only of what I am trying to achieve, does not directly match the data example shown above:
I have 2 worksheets in a workbook: Sheet 1 is my raw data set and Sheet 2 is the leave roster I'm creating.
Sheet 1 (raw data) has:
Column D = names (duplicate names exist)
Column F = Status (6 options: Approved, Unapproved, Cancelled, Declined, Deleted, Errored)
Column G = start date
Column H = end date
Sheet 2 (leave roster) has:
Column B = names (lists of names from sheet 1 with no duplicates using index/match formula to create list of unique values - this starts at row 13, header row 12)
Row 12 is the dates starting with =today() in Column F (and this continues across the row for 365 columns to capture 1 year using +1)
Ideally what I would like to do is:
Bring back the Status from Column F in Sheet 1 into Sheet 2, starting at F13 (then below and across for all names and dates) based on if -
1) the date in Sheet 2 Row 12 (starting with Column F) is equal to or between the date range of Columns G and H in Sheet 1
and
2) the name in Sheet 2 Column B (starting with Row 13) matches the name in Sheet 1 Column D (keeping in mind that Sheet 1 has duplicate names and Sheet 2 uses a formula to create a unique list of names that will change when the raw data in Sheet 1 is updated)
Ideally I would like to capture the Status as an abbreviation if possible (Approved = A, Unapproved = U, Cancelled = Ca etc) however if only Approved and Unapproved are possible this would be enough to help with blank or "X" where no data point exists.
I know how to achieve this is there are no duplicates names in Sheet 1 and also if I use an interim table as a work around but I don't want to do that if I can avoid it.
Is what I want to achieve possible?
Sheet 1 (Range A3 to H8):
Mgr Name | Mgr Desc | Employee Code | Employee Name | Request Length | Status | Start Date | End Date |
1 | Name 1 | Approved | 30/03/2020 | 30/03/2020 | |||
2 | Name 1 | Deleted | 6/04/2020 | 17/04/2020 | |||
3 | Name 2 | Unapproved | 24/04/2020 | 15/05/2020 | |||
4 | Name 3 | Approved | 14/04/2020 | 17/04/2020 | |||
5 | Name 4 | Cancelled | 26/03/2020 | 27/03/2020 | |||
Sheet 2 (Range B12 to J17) - illustrative example only of what I am trying to achieve, does not directly match the data example shown above:
Employee Name | Payroll # | Mgr Name | Mgr Desc | 19-May | 20-May | 21-May | 22-May | 23-May |
Name 1 | 1 | - | - | X | X | A | A | A |
Name 2 | 3 | - | - | X | X | X | X | X |
Name 3 | 4 | - | - | U | X | X | X | X |
Name 4 | 5 | - | - | X | X | Ca | X | X |
Name 5 | 7 | - | - | X | Del | X | X | X |