Formula Needed

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,486
Need formula in cell D4 that will search My sheets "JAN" through Content of cell D2 - "MAR" and
sum the total of all records in the sheets that Match the Acct# given in my Cell B4. Can someone assist me?



Excel 2010
ABCDEFGHIJKL
1Through:Have
2MAR<< Variable assignedSubsequent
3Account NAMEAcct #BUDGETYTD SPENDContiguous
4Pastor Salary30 23,348.00#REF!<<< Formula Needed HERESheetNames
5to return $1,200.00
6
7JANDate pdCheck #Requester: AmountAcct #Explanation
8 100.0030
9 100.0030
10 50.0028
11
12FEBDate pdCheck #Requester: AmountAcct #Explanation
13 200.0030
14 200.0030
15 60.0027
16
17MARDate pdCheck #Requester: AmountAcct #Explanation
18 300.0030
19 300.0030
20 70.0026
21
22APRDate pdCheck #Requester: AmountAcct #Explanation
23 400.0030
24 400.0030
25 80.0025
26

<tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
D4=SUMPRODUCT(SUMIF(INDIRECT("'"&#REF!&"'!E3:E60"),$B4,INDIRECT("'"&#REF!&"'!D3:D60")))

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I may have cheated a little bit but here's my suggestion:

First of all I added the From-variable to C2. Also, I created a named range called MONTHS where there's the sheet names in the same order as the actual sheets.

Having done this I came up with the following monster of an array formula (Must be entered with Ctrl + Shift + Enter):
Code:
=SUM(SUMIF(INDIRECT(INDEX(OFFSET(Months,MATCH(C2,Months,0)-1,0,MATCH(D2,Months,0)-MATCH(C2,Months,0)+1),0)&"!E2:E4"),B4,INDIRECT(INDEX(OFFSET(Months,MATCH(C2,Months,0)-1,0,MATCH(D2,Months,0)-MATCH(C2,Months,0)+1),0)&"!D2:D4")))
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,853
Members
449,194
Latest member
HellScout

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