Find Last three Days Sales

In this Assignment you will have to find last three days sales from following sheet.

ABCDEFG
1sales20-Jan21-Jan22-Jan23-Jan24-Jan25-Jan
2bicyle3143676481
3Motorcycle5478853644
4Car5543256939
6Bus3338335572
7
8
9last 3 working days productionoutputOFF Days(No working days)
10bicyle8-Jan
11Motorcycle15-Jan
12Car22-Jan
13Bus24-Jan

Show me Formula

Type formula in B9 cell
There are Two formula
=SUMPRODUCT(INDEX($B$2:$H$5,MATCH($A$9,$A$2:$A$5,0),N(IF(1,COLUMNS($B$1:$H$1)-{0,1,2}))))
=SUM(OFFSET($A$1,MATCH($A$9,$A$2:$A$5,0),COLUMNS($B$1:$H$1)-2,1,3))

Leave a Reply

Your email address will not be published. Required fields are marked *