SUMPRODUCT or SUMIF or something else?

samilynn

Board Regular
Joined
Jun 24, 2003
Messages
177
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet with salereps which are assigned to two teams. How do I replace my simple formula (in rows 20 and 21) with some sort of a lookup, or sumif, which basically says "lookup the rep names in a table, and total their sales as a team?" (the teams are on a different workbook, but I put them on the same sheet in this example for simplicity):

Book1.xlsx
ABCDE
1SLSREPJAN SALESFEB SALESMAR SALESAPR SALES
2REP1$463,894$733,811$1,064,166$1,348,145
3REP2$28,104$33,301$65,012$73,504
4REP3$446,867$682,103$885,842$371,260
5REP4$688,287$1,099,895$1,715,446$2,250,357
6REP55$536,881$443,793$679,629$838,596
7REP66$117,756$681,703$359,723$37,412
8REP77$564,908$936,422$1,496,989$1,945,976
9REP88$643,928$925,184$1,419,050$1,879,872
10
11
12
13TEAM1TEAM2
14REP1REP3
15REP2REP4
16REP66REP55
17REP88REP77
18
19
20TEAM1 TOTAL$1,253,683$2,373,999$2,907,951$3,338,934
21TEAM 2 TOTAL$2,236,944$3,162,214$4,777,906$5,406,188
Sheet1
Cell Formulas
RangeFormula
B20:E20B20=B2+B3+B7+B9
B21:E21B21=B4+B5+B6+B8
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
How about
Excel Formula:
=SUMPRODUCT(SUMIFS(B$2:B$9,$A$2:$A$9,$A$14:$A$17))
 
Upvote 0
Solution

Forum statistics

Threads
1,225,606
Messages
6,185,956
Members
453,333
Latest member
BioCoder84

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top