Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Weeknum + Conditional Sum

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Weeknum + Conditional Sum

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Weeknum + Conditional Sum

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Weeknum + Conditional Sum

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Weeknum + Conditional Sum

Column G is a list of dates in xx-xx-xxxx format
Column A is a list of names
Column E is a list of Prices

I want to create a list with the following:

Name 'Total amount of Money in week x' by name.


"Joel" wrote:

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Weeknum + Conditional Sum

You dates are in Column G and your original code was referencing Column A.
You also need a 1 in weeknum to indicate the start of week being sunday

SUMPRODUCT(--($A$2:$A$4="Name"),--(WEEKNUM($G$2:$G$4)=Weeknum(DateValue("10/20/08"),1)),$E$2:$E$4)


"Gunti" wrote:

Column G is a list of dates in xx-xx-xxxx format
Column A is a list of names
Column E is a list of Prices

I want to create a list with the following:

Name 'Total amount of Money in week x' by name.


"Joel" wrote:

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Weeknum + Conditional Sum

It's still not working, can i send you an example sheet maybe?

Greetz

"Joel" wrote:

You dates are in Column G and your original code was referencing Column A.
You also need a 1 in weeknum to indicate the start of week being sunday

SUMPRODUCT(--($A$2:$A$4="Name"),--(WEEKNUM($G$2:$G$4)=Weeknum(DateValue("10/20/08"),1)),$E$2:$E$4)


"Gunti" wrote:

Column G is a list of dates in xx-xx-xxxx format
Column A is a list of names
Column E is a list of Prices

I want to create a list with the following:

Name 'Total amount of Money in week x' by name.


"Joel" wrote:

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Weeknum + Conditional Sum



joel dot warburg at itt dot com

"Gunti" wrote:

It's still not working, can i send you an example sheet maybe?

Greetz

"Joel" wrote:

You dates are in Column G and your original code was referencing Column A.
You also need a 1 in weeknum to indicate the start of week being sunday

SUMPRODUCT(--($A$2:$A$4="Name"),--(WEEKNUM($G$2:$G$4)=Weeknum(DateValue("10/20/08"),1)),$E$2:$E$4)


"Gunti" wrote:

Column G is a list of dates in xx-xx-xxxx format
Column A is a list of names
Column E is a list of Prices

I want to create a list with the following:

Name 'Total amount of Money in week x' by name.


"Joel" wrote:

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 58
Default Weeknum + Conditional Sum

For people who have the same problem. I solved the problem defining week 42
as a value between 31-12-2007 + (#week#*7) and 31-12-2007+ (%week%*7)-6

"Joel" wrote:



joel dot warburg at itt dot com

"Gunti" wrote:

It's still not working, can i send you an example sheet maybe?

Greetz

"Joel" wrote:

You dates are in Column G and your original code was referencing Column A.
You also need a 1 in weeknum to indicate the start of week being sunday

SUMPRODUCT(--($A$2:$A$4="Name"),--(WEEKNUM($G$2:$G$4)=Weeknum(DateValue("10/20/08"),1)),$E$2:$E$4)


"Gunti" wrote:

Column G is a list of dates in xx-xx-xxxx format
Column A is a list of names
Column E is a list of Prices

I want to create a list with the following:

Name 'Total amount of Money in week x' by name.


"Joel" wrote:

What values are in G2?

"Gunti" wrote:

Hi, Thanks for the reply!

When using =Datevalue(G2) however, it also gives a value error!

I'm going home now, so i won't read it untill tomorrow. Thanks for any effort.

"Joel" wrote:

"Week" need to be a datevalue.

WEEKNUM($A$2:$A$4)=Weeknum(DateValue("10/20/08")).



"Gunti" wrote:

Hello,
I have a list which resembles the following example:
A B C
<Name <Price <Date
<Name2 <Price2 <Date2
<Name3 <Price3 <Date3
The dates are in normal date formats (00-00-0000)
I want Excel to sum up the Prices where which contain the name & week i
insert..

For this i want to use the following formula:
SUMPRODUCT(--($A$2:$A$4="Name"),--( ??? ),$A$2:$A$4)

My question is what to insert at the questionmarks. I was thinking about
using WEEKNUM($A$2:$A$4)="Week". I get the 'VALUE' error!

Any help greatly appreciated.

Greetz,

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
Conditional Formatting using Formulas and WEEKNUM Kirk Excel Discussion (Misc queries) 7 April 16th 09 03:19 PM
WEEKNUM gone... George[_4_] Excel Discussion (Misc queries) 3 September 16th 08 05:21 PM
weeknum reno Excel Discussion (Misc queries) 1 June 20th 08 01:20 PM
Weeknum vs Conditional Formatting Ken Excel Discussion (Misc queries) 5 April 3rd 07 07:09 PM
Weeknum Christine Excel Worksheet Functions 3 December 17th 04 10:55 AM


All times are GMT +1. The time now is 03:11 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"