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>
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</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 last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Perhaps this will help:
Sheet3[TABLE="class: html-maker-worksheet"]
<thead>[TR]
[TH][/TH]
[TH]B[/TH]
[/TR]
</thead><tbody>[TR]
[TH]1[/TH]
[TD]January[/TD]
[/TR]
[TR]
[TH]2[/TH]
[TD="align: right"]15[/TD]
[/TR]
</tbody>[/TABLE]
Excel 2010

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

<tbody>
[TD="bgcolor: #FFFFFF"] Worksheet Formulas [TABLE="class: html-maker-worksheet"]
<thead>[TR]

</thead><tbody>
</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]

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,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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