#1   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default SUMIF by Week.

How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different numbers.
I want to use a SUMIF function on A1 that automatically adds different cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but instead
of TODAY(), I want to use this week.





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMIF by Week.

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.







  #3   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default SUMIF by Week.

Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.


Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.








  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMIF by Week.

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then refer to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.


Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.










  #5   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default SUMIF by Week.

Thanks!! Worked great!! Is there anyway a cell can show you what this week
is, something like when you enter =TODAY() into a cell, it shows you todays
date. This week I would like it to show, July 13, 2009 - July 19, 2009, next
week July 20, 2009 - July 26, 2009, and so on...


"T. Valko" wrote:

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then refer to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.













  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMIF by Week.

Try this (all on one line):

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

Or, using cell A1 to return the Monday date of the current week...

A1: =TODAY()-WEEKDAY(NOW(),3)

Then (all on one line):

=TEXT(A1,"mmmm d, yyyy")&" - "
&TEXT(A1+6,"mmmm d, yyyy")


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Thanks!! Worked great!! Is there anyway a cell can show you what this week
is, something like when you enter =TODAY() into a cell, it shows you
todays
date. This week I would like it to show, July 13, 2009 - July 19, 2009,
next
week July 20, 2009 - July 26, 2009, and so on...


"T. Valko" wrote:

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then refer to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds
different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.













  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMIF by Week.

Another option...

Create a name for the formula.
Goto InsertNameDefine
Name: ThisWeek
Refers to:

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

OK

Then this formula entered in a cell: =ThisWeek

I think I like this option the most.


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this (all on one line):

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

Or, using cell A1 to return the Monday date of the current week...

A1: =TODAY()-WEEKDAY(NOW(),3)

Then (all on one line):

=TEXT(A1,"mmmm d, yyyy")&" - "
&TEXT(A1+6,"mmmm d, yyyy")


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Thanks!! Worked great!! Is there anyway a cell can show you what this
week
is, something like when you enter =TODAY() into a cell, it shows you
todays
date. This week I would like it to show, July 13, 2009 - July 19, 2009,
next
week July 20, 2009 - July 26, 2009, and so on...


"T. Valko" wrote:

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then refer
to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds
different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.















  #8   Report Post  
Posted to microsoft.public.excel.misc
GEM GEM is offline
external usenet poster
 
Posts: 90
Default SUMIF by Week.

Works great!!! Thank you very much!!!

"T. Valko" wrote:

Another option...

Create a name for the formula.
Goto InsertNameDefine
Name: ThisWeek
Refers to:

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

OK

Then this formula entered in a cell: =ThisWeek

I think I like this option the most.


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this (all on one line):

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

Or, using cell A1 to return the Monday date of the current week...

A1: =TODAY()-WEEKDAY(NOW(),3)

Then (all on one line):

=TEXT(A1,"mmmm d, yyyy")&" - "
&TEXT(A1+6,"mmmm d, yyyy")


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Thanks!! Worked great!! Is there anyway a cell can show you what this
week
is, something like when you enter =TODAY() into a cell, it shows you
todays
date. This week I would like it to show, July 13, 2009 - July 19, 2009,
next
week July 20, 2009 - July 26, 2009, and so on...


"T. Valko" wrote:

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then refer
to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has different
numbers.
I want to use a SUMIF function on A1 that automatically adds
different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100) but
instead
of TODAY(), I want to use this week.
















  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default SUMIF by Week.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Works great!!! Thank you very much!!!

"T. Valko" wrote:

Another option...

Create a name for the formula.
Goto InsertNameDefine
Name: ThisWeek
Refers to:

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

OK

Then this formula entered in a cell: =ThisWeek

I think I like this option the most.


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
Try this (all on one line):

=TEXT(TODAY()-WEEKDAY(NOW(),3),"mmmm d, yyyy")
&" - "&TEXT(TODAY()-WEEKDAY(NOW(),3)+6
,"mmmm d, yyyy")

Or, using cell A1 to return the Monday date of the current week...

A1: =TODAY()-WEEKDAY(NOW(),3)

Then (all on one line):

=TEXT(A1,"mmmm d, yyyy")&" - "
&TEXT(A1+6,"mmmm d, yyyy")


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Thanks!! Worked great!! Is there anyway a cell can show you what this
week
is, something like when you enter =TODAY() into a cell, it shows you
todays
date. This week I would like it to show, July 13, 2009 - July 19,
2009,
next
week July 20, 2009 - July 26, 2009, and so on...


"T. Valko" wrote:

Try this:

This will return the Monday date of the current week:

=TODAY()-WEEKDAY(NOW(),3)

Format as Date (if Excel doesn't automatically do it for you).

Incorporated into a SUMIF formula:

=SUM(SUMIF(B1:B100,TODAY()-WEEKDAY(NOW(),3)+{0,1,2,3,4,5,6},C1:C100))

Or, you could enter the date formula in a separate cell and then
refer
to
it:

E1: =TODAY()-WEEKDAY(NOW(),3)

=SUMIF(B1:B100,"="&E1,C1:C100)-SUMIF(B1:B100,""&E1+6,C1:C100)

=SUMPRODUCT(--(B1:B100=E1),--(B1:B100<=E1+6),C1:C100)

Format the sum cells as General or Number

--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
Yes!! I want it to run from Monday - Sunday

"T. Valko" wrote:

I want to use this week.

Does "this week" run from Monday to Sunday?


--
Biff
Microsoft Excel MVP


"GEM" wrote in message
...
How can I sum a range of cells, identifing them by week.

For example, I have column B with dates, and colum C has
different
numbers.
I want to use a SUMIF function on A1 that automatically adds
different
cells
from column C which are included in this week.

Something like this, =SUMIF(B1:B100,TODAY(),C1:C100)
but
instead
of TODAY(), I want to use this week.


















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
Convert regular Date to Week Ending or Week Beginning Dates Sam H Excel Discussion (Misc queries) 5 April 3rd 23 04:39 PM
SUMIF? week, month & year-to-date totals FSFGgirl Excel Worksheet Functions 1 November 24th 08 10:03 PM
Auto calculate day of week to week of the year (not as serial) oftenconfused Excel Discussion (Misc queries) 4 June 23rd 08 05:14 PM
How do I set up a week by week skill training schedule in excel? davidwatts Excel Discussion (Misc queries) 0 June 16th 05 11:32 PM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM


All times are GMT +1. The time now is 05:43 PM.

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

About Us

"It's about Microsoft Excel"