Sumif

Smoakstack

Board Regular
Joined
Mar 28, 2011
Messages
79
Looking for a way to link two worksheets together.

Financial calender and am trying to link using this formula

=SUMIF(Expense!B4:B613,MONTH(Expense!B4:B500) = 6,Expense!C4:C613)

this is for month of June. Expense worksheet looks like this

Excel Workbook
ABCDEF
1Expenses
2
3NameDateAmountTypeMonth
4McDonalds6/6/11$2.14Dining Out6
5
6
7
Expense


What I want is to be able to put any date and amount on this sheet and it tallys the amount on another sheet for the month given
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Looking for a way to link two worksheets together.

Financial calender and am trying to link using this formula

=SUMIF(Expense!B4:B613,MONTH(Expense!B4:B500) = 6,Expense!C4:C613)

this is for month of June. Expense worksheet looks like this

Excel Workbook
ABCDEF
1Expenses
2
3NameDateAmountTypeMonth
4McDonalds6/6/11$2.14Dining Out6
5
6
7
Expense


What I want is to be able to put any date and amount on this sheet and it tallys the amount on another sheet for the month given
Maybe something like this...

=SUMPRODUCT(--(MONTH(Expense!B4:B613)=6),Expense!C4:C613)
 
Upvote 0
reason as to why I used the sumif is because thee would be more. I am looking to sum all of the positive numbers, and sum all of the negative numbers to find a total. Seeing your formula, I cannot think of a way as I have not used it much. Any help would be much appreciated.
 
Upvote 0
reason as to why I used the sumif is because thee would be more. I am looking to sum all of the positive numbers, and sum all of the negative numbers to find a total. Seeing your formula, I cannot think of a way as I have not used it much. Any help would be much appreciated.
Try these...

Assuming you still want to use the month criteria.

To sum the negative numbers only:

=SUMPRODUCT(--(MONTH(Expense!B4:B613)=6),--(Expense!C4:C613<0),Expense!C4:C613)

To sum the positive numbers only:

=SUMPRODUCT(--(MONTH(Expense!B4:B613)=6),--(Expense!C4:C613>0),Expense!C4:C613)
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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