ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula still needed! Help! (https://www.excelbanter.com/excel-discussion-misc-queries/131288-formula-still-needed-help.html)

judgejulz

Formula still needed! Help!
 
What formula can I use to get the sum of cells in 1 column, but only if that
cell corresponds to a date in January. For example, column A is the date
column and every cell has a different date in it and I want to get the sum of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A100000/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!


Roger Govier

Formula still needed! Help!
 
Hi

Try
=SUMPRODUCT(--(A4:A10000=--"01/01/07"),--(A1:A10000<=--"28/02/07"),--(AP4:AP10000))


--
Regards

Roger Govier


"judgejulz" wrote in message
...
What formula can I use to get the sum of cells in 1 column, but only
if that
cell corresponds to a date in January. For example, column A is the
date
column and every cell has a different date in it and I want to get the
sum of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A100000/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!




Toppers

Formula still needed! Help!
 
=SUMPRODUCT((MONTH(A4:A10000)=1)*(AP4:AP10000))

MONTH is a FUNCTION and tests if the month in A4:A10000 is 1 i.e January.

HTH

"judgejulz" wrote:

What formula can I use to get the sum of cells in 1 column, but only if that
cell corresponds to a date in January. For example, column A is the date
column and every cell has a different date in it and I want to get the sum of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A100000/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!


Bob Phillips

Formula still needed! Help!
 
=SUMPRODUCT(--(A4:A10000=--"2007-01-01"),--(A4:A10000<--"2007-03-01"),--(AP4:AP10000))


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"judgejulz" wrote in message
...
What formula can I use to get the sum of cells in 1 column, but only if
that
cell corresponds to a date in January. For example, column A is the date
column and every cell has a different date in it and I want to get the sum
of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A100000/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!




judgejulz

Formula still needed! Help!
 
That never worked either. It's just coming up 'error in formula' #VALUE!

"Roger Govier" wrote:

Hi

Try
=SUMPRODUCT(--(A4:A10000=--"01/01/07"),--(A1:A10000<=--"28/02/07"),--(AP4:AP10000))


--
Regards

Roger Govier


"judgejulz" wrote in message
...
What formula can I use to get the sum of cells in 1 column, but only
if that
cell corresponds to a date in January. For example, column A is the
date
column and every cell has a different date in it and I want to get the
sum of
all the entries in column T in January or February etc.


The date column is setup in the format of dd/mm/yy

I've tried
=SUMPRODUCT(--(A4:A100000/1/7),--(A1:A10000<0/2/7),--(AP4:AP10000))

and I've tried =SUMPRODUCT((JANUARY(A4:A10000)=1)*(AP4:AP10000))

but neither has worked. Help!






All times are GMT +1. The time now is 03:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com