Trying to count only expenses for a specific month

thespasticone

New Member
Joined
Jul 11, 2014
Messages
3
I am putting together a cashflow spreadsheet. Multi tab.
In one tab I have one-time expenses like this
Col A Col B Col C
Travel $1000 Jul
Expo $500 Aug
Denver $1500 Jul

If I put in this formula
=SUMIF('up-coming one-time expenses'!C:C,"=jul",'up-coming one-time expenses'!B:B)
Then the value of $2500 is returned. PERFECT!
However, If I put in this formula
=SUMIF('up-coming one-time expenses'!C:C,"=A2",'up-coming one-time expenses'!B:B)
no value is returned
In this instance, the value of A2 is "Jul", but it is returned from a reference, the formula of A2 is
=Snapshot!M1
To confuse the matter more, the values of snapshot m1 are given by a drop down, and the actual value is 7/1/2014, but the dropdown is for months

BASICALLY what I need to do is somehow adjust
=SUMIF('up-coming one-time expenses'!C:C,"=A2",'up-coming one-time expenses'!B:B)
So that it only returns the TEXT VALUE of a2, rather than the formula.

I have no idea if I am explaining myself properly but please help if you can. Thanks!
 
not sure I'm understanding everything, but, if you are trying to reference A2 as Jul then try....

=SUMIF('up-coming one-time expenses'!C:C,"="&A2,'up-coming one-time expenses'!B:B)

you can try

=text(Snapshot!M1,"mmm")

to convert A1 to Jul as text
 
Upvote 0
[Qoute]=SUMIF('up-coming one-time expenses'!C:C,"=A2",'up-coming one-time expenses'!B:B)[/Qoute]

The problem with this is that it's look for the value to be equal to "A2" not the VALUE in A2. When you surround things in qoutes it reads it as a string, so your not referencing that cell. It should look more like "="&A2.
 
Upvote 0
not sure I'm understanding everything, but, if you are trying to reference A2 as Jul then try....

=SUMIF('up-coming one-time expenses'!C:C,"="&A2,'up-coming one-time expenses'!B:B)

you can try

=text(Snapshot!M1,"mmm")

to convert A1 to Jul as text

Your first suggestion nailed it!
 
Upvote 0

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