I have a formula that uses this { } but can't duplicate it

  • Thread starter Thread starter Stuart
  • Start date Start date
S

Stuart

I'm trying to add numbers in a column where the month of the date in an
adjacent column matches the month of a date in a criteria cell. I can't get
"SUMIF" to work. I had a formula that started and ended with this sign {}
but can't remember how I entered it.
 
The squiggly brackets denote an array but from your description you don't
need an array formula.

A1:A10 = dates
B1:B10 = numeric values

To sum column B where the corresponding cell in column A has a date in the
month of August:

=SUMPRODUCT(--(MONTH(A1:A10)=8),B1:B10)

For other months just change =8 to whatever month number you want. January
=1 through December =12.
 
Just to complete the answer...

You get {} around the formula if it is an Array formula - press
CTRL-SHIFT-ENTER together to enter an array formula
 
Hi,

Just to finish off your question -

=SUMPRODUCT(--(MONTH(A1:A10)=MONTH(D1)),B1:B10)

Where D1 is the critieria cell.

And you could write this as

=SUM((MONTH(A1:A10)=MONTH(D1))*B1:B10)

In which case you would press Shift+Ctrl+Enter to enter it and you would see
the {}'s.

If this helps, please click the Yes button

cheers,
Shane Devenshire
 

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

Reference Formula Help 1
Sumif formula 4
Excel Sumproduct 0
Excel Need aid in Excel Formulas 3
SumIf by Date? 12
Ignore calculation when criteria exceeds 12 5
filling down a formula using =TEXT() 4
Using SUMIFS with date range 4

Back
Top