SumIfs VBA formula

kerstinedatu

New Member
Joined
Jul 25, 2018
Messages
1
Hi All,

I am currently trying to write a code with SUMIFS formula but I'm having difficulty as I'm still a newbie at VBA.
I tried using other codes from different forums including here but to no avail.
Would also like to know if the code can loop for all blank cells in case other criteria will be added in the future.

Below is a sample of what I'm currently working on.

Sheet 1 (Received)
ABCDEF
9 Total 1,312.00 57,206.00 57,206.00
10 Bank1/1/20181/2/20181/3/2018
11JMCJP Morgan Chase 1,000.00 1,000.00 1,000.00
12BOABank of America - 1,000.00 1,000.00
13CGCitigroup - - -
14WFWells Fargo - - -
15GSGoldman Sachs 312.00 312.00 312.00
16MSMorgan Stanley - 54,894.00 54,894.00
17USBU.S Bancorp - - -

<colgroup><col><col><col><col span="3"></colgroup><tbody>
</tbody>
Sheet 2 (Details)
ABCDE
10BranchBank AccountCheque AmountDate Received from EO
111JP Morgan Chase10001/1/2018
121Bank of America10001/2/2018
132Citigroup50001/4/2018
143Wells Fargo821161/7/2018
151Goldman Sachs3121/1/2018
162Morgan Stanley548941/2/2018
171U.S Bancorp165491/4/2018

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>




<colgroup><col><col><col><col span="3"></colgroup><tbody>
</tbody>
Formula from D11 to infinity is =SUMIFS(Details!$D:$D,Details!$C:$C,Received!$C11,Details!$E:$E,Received!D$10)

Formula for D9:_9 is =SUM(D11:D66)

Hope someone can help me.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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