You are on page 1of 3

Code Prod Jan Feb Mar Apr May Jun

001 Prod1 1,544 657 1,693 1,147 1,052 1,200


001 Prod2 1,261 1,237 1,140 1,281 804 1,697
001 Prod3 695 1,163 1,063 1,625 1,910 1,067
002 Prod4 1,785 1,118 1,782 1,921 1,237 565
002 Prod5 1,787 1,468 1,016 1,681 1,901 1,250
003 Prod6 516 1,231 1,344 967 1,542 1,227
004 Prod7 927 956 1,028 1,245 833 797
004 Prod8 1,636 1,286 908 1,955 1,592 1,665
005 Prod9 616 581 1,726 1,897 969 928
005 Prod10 673 1,990 1,891 1,964 1,425 1,879

Product Prod3
Month May
Sales 1,910.00 =INDEX(C2:N11,MATCH(C14,B2:B11,0),MATCH(C15,C1:N1,0))

Month Total 13,265.00 =SUM(INDEX(C2:N11,,MATCH(C15,C1:N1,0)))


Product Total 14,671.00 =SUM(INDEX(C2:N11,MATCH(C14,B2:B11,0),))

Code 002
Begin Month Mar
End Month Aug
Sales 15,643.00 =SUM(OFFSET($A$1,MATCH($C$21,$A$2:$A$11,0),MATCH($C$22,$C$1:$N$1,0)+1
Jul Aug Sep Oct Nov Dec
952 1,206 864 1,118 1,016 805
1,539 593 1,314 1,620 1,952 1,877
917 866 1,772 940 822 1,831
660 691 502 1,202 1,600 1,597
1,690 1,249 1,527 1,064 1,716 964
1,150 1,279 983 1,731 664 640
1,931 1,834 1,603 972 568 1,068
1,235 826 536 1,087 1,996 535
1,376 684 1,943 1,057 834 602
1,849 1,736 830 1,795 932 1,586

OFFSET(reference, rows, cols, [height], [width])


reference starting point - $A$1
rows where does the Code start - use the MATCH function
C15,C1:N1,0)) cols where does the month start - use the MATCH function
[height] how many rows in the range - use the COUNTIF function
[width] how many columns in the range - subtract one MATCH function from another

1,0),MATCH($C$22,$C$1:$N$1,0)+1,COUNTIF($A$2:$A$11,$C$21),(MATCH($C$23,$C$1:$N$1,0)-MATCH($C$22,$C$1:$N$1,0)+1)))
001
002
003
004
005

unction from another

H($C$22,$C$1:$N$1,0)+1)))

You might also like