forest1959
New Member
- Joined
- Mar 16, 2010
- Messages
- 30
- Office Version
- 2016
- Platform
- Windows
Hi All
I know this will be pretty straight forward, but i'm struggling to ask the web the right question..
I have an array formula that brings back an "order number" in column E, based on the order date in column A
{=IF(ROWS(A$35:A35)>COUNTIF(Timesheets!$A2:$A2000,$E$31),"",INDEX(Timesheets!$E2:$E2000,SMALL(IF(Timesheets!$A2:$A2000=$E$31,ROW(Timesheets!$A2:$A2000)-ROW(Timesheets!$A$2)+1),ROWS(A$35:A35))))}
I just need to add another criteria based on the employee's name populated in column C
Below is an example of the results i'm looking for
[TABLE="width: 427"]
<colgroup><col><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD]Criteria 2[/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]3456[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]5678[/TD]
[/TR]
[TR]
[TD]31/03/2019[/TD]
[TD]Brian[/TD]
[TD]1234[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]31/03/2019[/TD]
[TD]Chris[/TD]
[TD]2345[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]3456[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Chris[/TD]
[TD]4567[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]5678[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Chris[/TD]
[TD]6789[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
regards
Paul
I know this will be pretty straight forward, but i'm struggling to ask the web the right question..
I have an array formula that brings back an "order number" in column E, based on the order date in column A
{=IF(ROWS(A$35:A35)>COUNTIF(Timesheets!$A2:$A2000,$E$31),"",INDEX(Timesheets!$E2:$E2000,SMALL(IF(Timesheets!$A2:$A2000=$E$31,ROW(Timesheets!$A2:$A2000)-ROW(Timesheets!$A$2)+1),ROWS(A$35:A35))))}
I just need to add another criteria based on the employee's name populated in column C
Below is an example of the results i'm looking for
[TABLE="width: 427"]
<colgroup><col><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD]Criteria 2[/TD]
[TD]Results[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]3456[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD]5678[/TD]
[/TR]
[TR]
[TD]31/03/2019[/TD]
[TD]Brian[/TD]
[TD]1234[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]31/03/2019[/TD]
[TD]Chris[/TD]
[TD]2345[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]3456[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Chris[/TD]
[TD]4567[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Brian[/TD]
[TD]5678[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]05/04/2019[/TD]
[TD]Chris[/TD]
[TD]6789[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
regards
Paul