Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 38
Default Sumproduct with text and numbers in cells

Excel 2007

I want to sum a column that each cell has a number or text in it based on
the conditions of that cell having a number and the results of other arrays.
I keep getting #value error even though I use the double unary (--). Can I
do this using sumproduct or do I need to use the sumifs? I was hoping to use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,355
Default Sumproduct with text and numbers in cells

What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based on
the conditions of that cell having a number and the results of other arrays.
I keep getting #value error even though I use the double unary (--). Can I
do this using sumproduct or do I need to use the sumifs? I was hoping to use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 38
Default Sumproduct with text and numbers in cells

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week number
in A1 on another sheet. The problem is the C column has numbers or text, not
both, and I want to sum the numbers in the C column that are greater than 0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--). Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman





  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,355
Default Sumproduct with text and numbers in cells

=sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C100),(C1:C10))

--
HTH,
Barb Reinhardt



"Lee" wrote:

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week number
in A1 on another sheet. The problem is the C column has numbers or text, not
both, and I want to sum the numbers in the C column that are greater than 0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--). Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman






  #5   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 38
Default Sumproduct with text and numbers in cells

=SUMPRODUCT(--(WEEKNUM(Spring4!$N$2:$N$2000,1)='Weekly Plug
Tray'!$A4),--(Spring4!$P$2:$P$20000),(Spring4!$P$2:$P$2000))

The above formula is what I have and doesn't work. However, if I use the
formula below with a helper column it works:

=SUMPRODUCT(--(Spring4!$U$2:$U$2000='Weekly Plug
Tray'!$A5),--(Spring4!$P$2:$P$20000),(Spring4!$P$2:$P$2000))

My problem may be with the weeknum function rather than with the sumproduct.
any thoughts?
Thanks again.
Lee

"Barb Reinhardt" wrote in message
...
=sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C100),(C1:C10))

--
HTH,
Barb Reinhardt



"Lee" wrote:

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week
number
in A1 on another sheet. The problem is the C column has numbers or text,
not
both, and I want to sum the numbers in the C column that are greater than
0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in
message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based
on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--).
Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping
to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman









  #6   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 287
Default Sumproduct with text and numbers in cells

A helper column would be the easiest way to go, I think, but if you really
wanted to avoid that......

You can replicate =WEEKNUM(A1,1) with

=INT((A1-DATE(YEAR(A1),1,1)-WEEKDAY(A1))/7)+2

so you could change your formula to:

=SUMPRODUCT(--(INT((Spring4!$N$2:$N$2000-DATE(YEAR(Spring4!$N$2:$N$2000),1,1)-WEEKDAY(Spring4!$N$2:$N$2000))/7)+2='Weekly
Plug Tray'!$A4),--(Spring4!$P$2:$P$20000),(Spring4!$P$2:$P$2000))

"Lee" wrote:

=SUMPRODUCT(--(WEEKNUM(Spring4!$N$2:$N$2000,1)='Weekly Plug
Tray'!$A4),--(Spring4!$P$2:$P$20000),(Spring4!$P$2:$P$2000))

The above formula is what I have and doesn't work. However, if I use the
formula below with a helper column it works:

=SUMPRODUCT(--(Spring4!$U$2:$U$2000='Weekly Plug
Tray'!$A5),--(Spring4!$P$2:$P$20000),(Spring4!$P$2:$P$2000))

My problem may be with the weeknum function rather than with the sumproduct.
any thoughts?
Thanks again.
Lee

"Barb Reinhardt" wrote in message
...
=sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C100),(C1:C10))

--
HTH,
Barb Reinhardt



"Lee" wrote:

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week
number
in A1 on another sheet. The problem is the C column has numbers or text,
not
both, and I want to sum the numbers in the C column that are greater than
0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in
message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based
on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--).
Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping
to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman








  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Sumproduct with text and numbers in cells

The WEEKNUM function won't work on arrays.

--
Biff
Microsoft Excel MVP


"Barb Reinhardt" wrote in message
...
=sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C100),(C1:C10))

--
HTH,
Barb Reinhardt



"Lee" wrote:

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week
number
in A1 on another sheet. The problem is the C column has numbers or text,
not
both, and I want to sum the numbers in the C column that are greater than
0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in
message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it based
on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--).
Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping
to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman








  #8   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10
Default Sumproduct with text and numbers in cells

Thanks for telling me. It will work with the helper column. How do you know
what will and won't work?
Lee
"T. Valko" wrote in message
...
The WEEKNUM function won't work on arrays.

--
Biff
Microsoft Excel MVP


"Barb Reinhardt" wrote in
message ...
=sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C100),(C1:C10))

--
HTH,
Barb Reinhardt



"Lee" wrote:

I have tried something like this:
=sumproduct(--(weeknum(A1:A10,1)=othersheetA1),--(C1:100),C1:C10)
I want to sum column C based on the date column A equal to the week
number
in A1 on another sheet. The problem is the C column has numbers or text,
not
both, and I want to sum the numbers in the C column that are greater
than 0.
I get the #value error based on the above formula.
Thanks,
Lee

"Barb Reinhardt" wrote in
message
...
What exactly are you trying?

=SUMPRODUCT(--(A1:A10="Text"),--(B1:B10=1),(C1:C10))

Sums values in column C where A = "Text" and b (the value) = 1.

Is this what you're doing?
--
HTH,
Barb Reinhardt



"Lee" wrote:

Excel 2007

I want to sum a column that each cell has a number or text in it
based on
the conditions of that cell having a number and the results of other
arrays.
I keep getting #value error even though I use the double unary (--).
Can
I
do this using sumproduct or do I need to use the sumifs? I was hoping
to
use
the sumproduct to keep the workbook compatible with 2003 user.
Thanks,
--
Lee Coleman










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
Sumproduct Numbers and Text? wx4usa New Users to Excel 4 February 24th 07 03:15 AM
Summing cells that contain numbers and text Mango Excel Discussion (Misc queries) 10 May 13th 06 06:18 PM
How do I sum numbers in cells that have text? PageRow Excel Worksheet Functions 5 March 13th 06 04:55 PM
Cells as text not numbers??? tkaplan Excel Discussion (Misc queries) 1 July 16th 05 03:29 AM
How do I sum numbers from cells that contain text nicklissa Excel Worksheet Functions 16 March 18th 05 07:04 PM


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