SUMIF and Indirect help

mrjjman

New Member
Joined
Oct 2, 2014
Messages
3
Any help would be appreciated, trying to use an indirect with a sumif formula. Here is the sheet:

Marietta AgentsJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecemberCurrent Xfers
James
JT
Chris
Latiesha
Suwanee Agents
Chad
Jessica
Amberly

<colgroup><col style="width: 104px"><col width="64"><col width="64"><col width="71"><col width="43"><col width="31"><col width="34"><col width="29"><col width="46"><col width="70"><col width="52"><col width="66"><col width="66"><col width="83"></colgroup><tbody>
</tbody>


Basically, I'm trying to come up with a formula that will add up the sales of each agent from a sheet that corresponds with the months at the top of the sheet. For example, this is what I have come up with, but its very tedious: =SUMIF(January!A:A,A2,January!F:F) for cell B2, =SUMIF(January!A:A,B2,January!F:F) for cell B3, and so on. What I would like is an indirect so that I can change the January!A:A with "&A1&"!A:A, but i can't seem to get it to work. It's much quicker to change the cell rather than changing the month name.

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Perhaps this will help:
Sheet3
B
1January
215

<thead>
</thead><tbody>
</tbody>
Excel 2010

Worksheet Formulas
CellFormula
B2=SUM(INDIRECT("'" & B1 & "'!b:b"))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Mind the spacing and positioning of the " and ' characters. Extra spaces in the wrong places will kill the formula.
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,280
Members
449,149
Latest member
mwdbActuary

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