#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default date formula

what I'm trying to do is, I have three columns which are labeled as below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the current
week which in the example would return $600, any ideas on how tto do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default date formula

Try this:

=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6="test"),B2:B6)

Or, you can put this formula in another cell to calculate the start of the
current week: (I'm assuming the week is Mon to Sun)

D2: =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A2:A6=D2),--(A2:A6<=D2+6),--(C2:C6="test"),B2:B6)

Biff

"Dreamstar_1961" wrote in message
...
what I'm trying to do is, I have three columns which are labeled as below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the
current
week which in the example would return $600, any ideas on how tto do this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default date formula

that worked but I now have found part of it that needs an array, but it is
not excepting the formula, I keep getting the #value error, this is what I
put in
=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6={"other","test"}),B2:B6)
any idea what is wrong.
thanks


"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6="test"),B2:B6)

Or, you can put this formula in another cell to calculate the start of the
current week: (I'm assuming the week is Mon to Sun)

D2: =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A2:A6=D2),--(A2:A6<=D2+6),--(C2:C6="test"),B2:B6)

Biff

"Dreamstar_1961" wrote in message
...
what I'm trying to do is, I have three columns which are labeled as below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the
current
week which in the example would return $600, any ideas on how tto do this?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default date formula

Try it like this:

=SUMPRODUCT((A2:A6=TODAY()-WEEKDAY(TODAY(),3))*(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6)*(C2:C6={"other","test"})*B2: B6)

Biff

"Dreamstar_1961" wrote in message
...
that worked but I now have found part of it that needs an array, but it is
not excepting the formula, I keep getting the #value error, this is what I
put in
=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6={"other","test"}),B2:B6)
any idea what is wrong.
thanks


"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6="test"),B2:B6)

Or, you can put this formula in another cell to calculate the start of
the
current week: (I'm assuming the week is Mon to Sun)

D2: =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A2:A6=D2),--(A2:A6<=D2+6),--(C2:C6="test"),B2:B6)

Biff

"Dreamstar_1961" wrote in
message
...
what I'm trying to do is, I have three columns which are labeled as
below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the
current
week which in the example would return $600, any ideas on how tto do
this?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 43
Default date formula

worked like a charm,

thank you


"T. Valko" wrote:

Try it like this:

=SUMPRODUCT((A2:A6=TODAY()-WEEKDAY(TODAY(),3))*(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6)*(C2:C6={"other","test"})*B2: B6)

Biff

"Dreamstar_1961" wrote in message
...
that worked but I now have found part of it that needs an array, but it is
not excepting the formula, I keep getting the #value error, this is what I
put in
=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6={"other","test"}),B2:B6)
any idea what is wrong.
thanks


"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6="test"),B2:B6)

Or, you can put this formula in another cell to calculate the start of
the
current week: (I'm assuming the week is Mon to Sun)

D2: =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A2:A6=D2),--(A2:A6<=D2+6),--(C2:C6="test"),B2:B6)

Biff

"Dreamstar_1961" wrote in
message
...
what I'm trying to do is, I have three columns which are labeled as
below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the
current
week which in the example would return $600, any ideas on how tto do
this?








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default date formula

You're welcome. Thanks for the feedback!

Biff

"Dreamstar_1961" wrote in message
...
worked like a charm,

thank you


"T. Valko" wrote:

Try it like this:

=SUMPRODUCT((A2:A6=TODAY()-WEEKDAY(TODAY(),3))*(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6)*(C2:C6={"other","test"})*B2: B6)

Biff

"Dreamstar_1961" wrote in
message
...
that worked but I now have found part of it that needs an array, but it
is
not excepting the formula, I keep getting the #value error, this is
what I
put in
=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6={"other","test"}),B2:B6)
any idea what is wrong.
thanks


"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A6=TODAY()-WEEKDAY(TODAY(),3)),--(A2:A6<=TODAY()-WEEKDAY(TODAY(),3)+6),--(C2:C6="test"),B2:B6)

Or, you can put this formula in another cell to calculate the start of
the
current week: (I'm assuming the week is Mon to Sun)

D2: =TODAY()-WEEKDAY(TODAY(),3)

Then:

=SUMPRODUCT(--(A2:A6=D2),--(A2:A6<=D2+6),--(C2:C6="test"),B2:B6)

Biff

"Dreamstar_1961" wrote in
message
...
what I'm trying to do is, I have three columns which are labeled as
below

k l m
Date Compl Amt Adj level
20/03/07 $300 test
22/3/06 $600 test
26/3/07 $200 test
27/3/07 $500 other
28/3/07 $400 test

what I need is a formula that would add only those from test in the
current
week which in the example would return $600, any ideas on how tto do
this?








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a formula in a date range to locate a specific date - ecel util Excel Discussion (Misc queries) 0 February 19th 07 03:03 PM
Excel Formula to calulate number of days passed from date to date K. Mack Excel Discussion (Misc queries) 8 January 4th 07 11:27 PM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Worksheet Functions 2 April 21st 06 02:50 AM
Formula for determining if two date columns fall within specific date range Igottabeme Excel Discussion (Misc queries) 1 April 20th 06 10:03 PM
Date formula: return Quarter and Fiscal Year of a date Rob Excel Discussion (Misc queries) 7 May 11th 05 08:48 PM


All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"