SUMIFS Across Multiple Columns

PFS12

New Member
Joined
Jan 28, 2014
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
I have a formula that is getting out of hand. At first I found it to work without and issue but now I have to replicate it a little more frequently and its getting quite cumbesome to do so.

I have Columns L,M,N,O,P, and Q that all have individual Dollars that are pulled into this sheet at times. I have them summing based on the Month, and by the Salesperson. The month is tagged on manually by me in this sheet when I put information into it into column S, and the salemen information is in column E. The below is a snapshot of the sheet, starting in Column A with the Completion Date. and S being the Manually entered Month.

20190222CROPP019W0693103JRI30632$114.003.123.120$300.00$0.00$0.00$135.00$0.00$0.00February
20190222PANIP002W0699103JRI214935$60.0013.2511$720.00$0.00$0.00$360.00$0.00$0.00February

<tbody>
</tbody>


I can't seem to figure out how to get the sheet to calculate across the multiple columns, and I am sure its an easy fix but, my question is how can I add the last three columns in each Row based on the criteria of the salesmen and the month? Currently I am adding like this, but need to add the last three columns in order to catch everything that I need. Cerrently I am doing it like this and there has to be a better way.

=SUMIFS('Service Dollars'!$L:$L,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")+SUMIFS('Service Dollars'!$M:$M,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")+SUMIFS('Service Dollars'!$N:$N,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")+SUMIFS('Service Dollars'!$O:$O,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")+SUMIFS('Service Dollars'!$P:$P,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")+SUMIFS('Service Dollars'!$Q:$Q,'Service Dollars'!$S:$S,"February",'Service Dollars'!$E:$E,"JRI")

Thank you in advanced and please reach out if this isn't making any sense.

Seth
 

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"
See if this works:

Code:
=SUMPRODUCT('Service Dollars'!$L:$Q*('Service Dollars'!$S:$S="February")*('Service Dollars'!$E:$E="JRI"))
 
Upvote 0
Try this

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:59.88px;" /><col style="width:88.4px;" /><col style="width:58.93px;" /><col style="width:58.93px;" /><col style="width:58.93px;" /><col style="width:58.93px;" /><col style="width:58.93px;" /><col style="width:58.93px;" /><col style="width:29.47px;" /><col style="width:58.93px;" /><col style="width:24.71px;" /><col style="width:88.4px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >E</td><td >L</td><td >M</td><td >N</td><td >O</td><td >P</td><td >Q</td><td >R</td><td >S</td><td >T</td><td >U</td><td >V</td><td >W</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DATE</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">SALESPERSON</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">DOLLARS</td><td style="background-color:#92d050; font-weight:bold; "> </td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">MONTH</td><td > </td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">SALESPERSON</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">MONTH</td><td style="background-color:#92d050; font-weight:bold; text-align:center; ">RESULT</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">20190222</td><td >JRI</td><td style="text-align:right; ">300</td><td style="text-align:right; ">10</td><td style="text-align:right; ">0</td><td style="text-align:right; ">135</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >February</td><td > </td><td >JRI</td><td >February</td><td style="text-align:right; ">1540</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="text-align:right; ">20190222</td><td >JRI</td><td style="text-align:right; ">720</td><td style="text-align:right; ">15</td><td style="text-align:right; ">0</td><td style="text-align:right; ">360</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >February</td><td > </td><td >PFS</td><td >February</td><td style="text-align:right; ">4140</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="text-align:right; ">20190222</td><td >PFS</td><td style="text-align:right; ">1140</td><td style="text-align:right; ">20</td><td style="text-align:right; ">0</td><td style="text-align:right; ">585</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >February</td><td > </td><td >JRI</td><td >March</td><td style="text-align:right; ">6740</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td style="text-align:right; ">20190222</td><td >PFS</td><td style="text-align:right; ">1560</td><td style="text-align:right; ">25</td><td style="text-align:right; ">0</td><td style="text-align:right; ">810</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >February</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td style="text-align:right; ">20190222</td><td >JRI</td><td style="text-align:right; ">1980</td><td style="text-align:right; ">30</td><td style="text-align:right; ">0</td><td style="text-align:right; ">1035</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >March</td><td > </td><td > </td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td style="text-align:right; ">20190222</td><td >JRI</td><td style="text-align:right; ">2400</td><td style="text-align:right; ">35</td><td style="text-align:right; ">0</td><td style="text-align:right; ">1260</td><td style="text-align:right; ">0</td><td style="text-align:right; ">0</td><td > </td><td >March</td><td > </td><td > </td><td > </td><td > </td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >W2</td><td >=SUMPRODUCT(($E$2:$E$7=U2)*($S$2:$S$7=V2)*($L$2:$Q$7))</td></tr></table></td></tr></table>
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
Try this

AELMNOPQRSTUVW
1DATESALESPERSONDOLLARSDOLLARSDOLLARSDOLLARSDOLLARSDOLLARS MONTH SALESPERSONMONTHRESULT
220190222JRI30010013500 February JRIFebruary1540
320190222JRI72015036000 February PFSFebruary4140
420190222PFS114020058500 February JRIMarch6740
520190222PFS156025081000 February
620190222JRI1980300103500 March
720190222JRI2400350126000 March

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:59.88px;"><col style="width:88.4px;"><col style="width:58.93px;"><col style="width:58.93px;"><col style="width:58.93px;"><col style="width:58.93px;"><col style="width:58.93px;"><col style="width:58.93px;"><col style="width:29.47px;"><col style="width:58.93px;"><col style="width:24.71px;"><col style="width:88.4px;"><col style="width:76.04px;"><col style="width:76.04px;"></colgroup><tbody>
</tbody>

CellFormula
W2=SUMPRODUCT(($E$2:$E$7=U2)*($S$2:$S$7=V2)*($L$2:$Q$7))

<tbody>
</tbody>

<tbody>
</tbody>

Sorry for the delay as I am just now able to get back to this. This didn't work either. I tried several different ways with this formula, it either gets me an N/A result or #value . I tried adding a U,V, and W cloumn and mimiking what you did and I still can't make it work.

I do have this information across two sheets, Raw data comes in on Service Dollars and I pretty it up and Graph it on Service By Month. This is where I would like to add up all the raw data, but again I tried adding the columns that you suggested and I still can' tmake it work. I don't understand! Thank you though
 
Upvote 0
Sorry for the delay as I am just now able to get back to this. This didn't work either. I tried several different ways with this formula, it either gets me an N/A result or #value . I tried adding a U,V, and W cloumn and mimiking what you did and I still can't make it work.

I do have this information across two sheets, Raw data comes in on Service Dollars and I pretty it up and Graph it on Service By Month. This is where I would like to add up all the raw data, but again I tried adding the columns that you suggested and I still can' tmake it work. I don't understand! Thank you though


I attach my test file. With 2 examples, the formulas on the same sheet and the formulas on the sheet1

https://www.dropbox.com/s/6d4z6d4vrldgcbp/dollar.xlsx?dl=0
 
Upvote 0
I found that my issue was the columns needed to match in the search field, once I did that I think I can use this in the capacity you intended.

Thank you very much
 
Upvote 0
I found that my issue was the columns needed to match in the search field, once I did that I think I can use this in the capacity you intended.

Thank you very much

I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,254
Members
448,879
Latest member
oksanana

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