Hi
I wonder if any of you experts could point me in the right direction please? I've tried with no success.
I have a spreadsheet with staff names across various quarters, I also have a column that indicates which quarter was first and which last. I need to compare row with first and last quarter, and count how many times the value is higher in the last quarter compared to first quarter in cells C-E.
So the data looks something like this at the moment
In the column D (for all rows that are 'last' period) I'd like the result of how many time the number was higher.
All the rows in between that are not marked first or last are to be ignored.
Each staff need to have their data counted separately.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Staff[/TD]
[TD]period [/TD]
[TD]Shoes[/TD]
[TD]Dresses[/TD]
[TD]Trousers[/TD]
[TD]Total number that matches the criteria (column C-E) having value higher in the row marked as 'last' quarter against 'first' quarter[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Poppins[/TD]
[TD]First[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Poppins[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Poppins[/TD]
[TD]Last[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Star[/TD]
[TD]First[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Star[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Star[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Star[/TD]
[TD]Last[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you so much.
I wonder if any of you experts could point me in the right direction please? I've tried with no success.
I have a spreadsheet with staff names across various quarters, I also have a column that indicates which quarter was first and which last. I need to compare row with first and last quarter, and count how many times the value is higher in the last quarter compared to first quarter in cells C-E.
So the data looks something like this at the moment
In the column D (for all rows that are 'last' period) I'd like the result of how many time the number was higher.
All the rows in between that are not marked first or last are to be ignored.
Each staff need to have their data counted separately.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Staff[/TD]
[TD]period [/TD]
[TD]Shoes[/TD]
[TD]Dresses[/TD]
[TD]Trousers[/TD]
[TD]Total number that matches the criteria (column C-E) having value higher in the row marked as 'last' quarter against 'first' quarter[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Poppins[/TD]
[TD]First[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Poppins[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Poppins[/TD]
[TD]Last[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]7[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Star[/TD]
[TD]First[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Star[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]6[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Star[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Star[/TD]
[TD]Last[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]5[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Thank you so much.