I have some data which includes a list of tasks for 2 individuals.
I want to represent this data in the following format.
So that it looks like the below.
How can I achieve this with the use of formulas?
[EDIT] I don't think this question is the same as 'Data Wrangling in Excel - Rearranging Columns and Rows' as mine is about reflecting schedules in a more gantt chart-esque like format, whereas the other question seems to be more about transposing data.



Not sure if you have your desired output on the same sheet or a new sheet, but I used a new sheet starting in cell
A1. The source datasheet is referred to asS1in the formulas.Assumptions:
Column C= Date StartColumn D= Date EndOutput/Formulas:
A1is blankA2:=INDEX('S1'!$A$1:$A$6,IFERROR(MATCH(A1,'S1'!$A$1:$A$6,0),1)+COUNTIF('S1'!$A$1:$A$6,A1))A3: Formula copied down fromA2B1:=IF(A1<>"",EDATE(A1,1),MIN('S1'!$C$1:$D$6))C1toJ1: Formula copied fromB1B2: =INDEX('S1'!$B$1:$B$6,MATCH(1,INDEX(('S1'!$A$1:$A$6=$A2)*('S1'!$C$1:$C$6<=B$1)*('S1'!$D$1:$D$6>=B$1),0),0))B3andC2toJ3: Formula copied fromB2Explanations:
A2formula: Looks at where the previous Person entry first occurs (MATCHpart), and counts how many entries it has (COUNTIFpart) to determine the next Person entry in line (INDEXpart). TheIFERRORportion is used to return the first Person entry, which is assumed to be on row 1.B1formula: Adds one month to the previous date heading (EDATEpart). The very first date heading looks for the earliest date in your source data (MINpart).B2formula: Uses a match with multiple criteria on your source data (Person entry must match the indicated person, start date must be before or on the date heading, and end date must be after or on the date heading). The secondINDEXcreates an array of the combined criteria results (1 if true, 0 if false), and theMATCHreturns which entry that is. The firstINDEXreturns the task (A, B, or C).