SUMIF.

G

GEM

On column A I have dates, and on column B I have money ammounts.

From C1 through C12 I have the months of the year, January, February, March,
etc.

On D1 I want to add all the amounts from column B that represent the month
of January. On D2 I want to add all the amounts from column B that represent
the month of February, etc.

Is this posible with a SUMIF??
 
J

Jacob Skaria

Use SUMPRODUCT()

Col C months should be in excel date/time format formatted to display the
month. (Enter date>Right clickFormatCells>Custom>Type: mmmm)

In D1 (and copy down as required)
=SUMPRODUCT(--(TEXT(A1:A1000,"mmyyyy")=TEXT(C1,"mmyyyy")),B1:B1000)

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumif does not work 2
Sum if 1
If Formula and Dates 4
Sort problem 1
SUMIF with NAME RANGE 1
Compare shorter date range against longer date range 2
Dates In Excel 5
Mapping strings to integers 6

Top