Hello,
I have the following table for which I need a macro that enters a value into column G, SESSION_TEMPLATE, based on the values found in columns B, CLASS_NO and F, START_DATE:
The value I need to enter into column G, SESSION_TEMPLATE, is specific to the day of the week found in column F and the last three numbers of the string of characters found in column B. For example, for row 1, I want the value needs to be "1-day Sun" because the 402 (from 06052022_GST_402) = 1-day and the date in the START_DATE column for this row is a Sunday (6/5/2022). Another example, in row 2, I want the value to be "2-day Mon" because 401 = 2-day and the date in START_DATE column for this row is a Monday (7/4/2022).
The rest of the key is 330 = 3-day, 305 = 1-day, 301 = 3-day, and 302 = 1-day.
If you have a formula that does the trick, that works as well.
I have the following table for which I need a macro that enters a value into column G, SESSION_TEMPLATE, based on the values found in columns B, CLASS_NO and F, START_DATE:
ID | CLASS_NO | STATUS | COURSE | DOMAIN | START_DATE | SESSION_TEMPLATE |
06052022_GST_402 | 06052022_GST_402 | 100 | 11202V | Shared | 6/5/2022 | |
07042022_GMT_401 | 07042022_GMT_401 | 100 | 21201V | Shared | 7/4/2022 | |
07062022_GMT_330 | 07062022_GMT_330 | 100 | 3267 | Shared | 7/6/2022 | |
07072022_MT_305 | 07072022_MT_305 | 100 | 3237 | Shared | 7/7/2022 | |
07112022_SGT_301 | 07112022_SGT_301 | 100 | 6541 | Shared | 7/11/2022 | |
07142022_SGT_302 | 07142022_SGT_302 | 100 | 6545 | Shared | 7/14/2022 |
The value I need to enter into column G, SESSION_TEMPLATE, is specific to the day of the week found in column F and the last three numbers of the string of characters found in column B. For example, for row 1, I want the value needs to be "1-day Sun" because the 402 (from 06052022_GST_402) = 1-day and the date in the START_DATE column for this row is a Sunday (6/5/2022). Another example, in row 2, I want the value to be "2-day Mon" because 401 = 2-day and the date in START_DATE column for this row is a Monday (7/4/2022).
The rest of the key is 330 = 3-day, 305 = 1-day, 301 = 3-day, and 302 = 1-day.
If you have a formula that does the trick, that works as well.