#1   Report Post  
cursednomore
 
Posts: n/a
Default sumproduct?

I am trying to take a set of data and make it simpler to work with, but don't
want to have to retype all the data. On sheet 1(data), I have names in column
A, orders or sales in column b, the day of the week in column c, and the
beginning date of the week in D through BC (not my design). The columns with
the week begin date have the number of orders or sales contained within. What
I would like to get is a second worksheet(records), with 5 columns, names,
week begin date, day of week, orders, and sales. I tried to use sumproduct,
but get an #N/A error.

I used
=SUMPRODUCT((data!$A$2:$A$289=records!$A2)*(data!$ C$2:$C$290=records!$C2)*(data!$D$1:$BC$1=records!$ B2)*(data!$B$2:$B$289=records!$D$1)).
This was to get the orders. Can you tell me where I went wrong, or if I'm
using the wrong function?

Thanks in advance for any help that you can provide.
  #2   Report Post  
cursednomore
 
Posts: n/a
Default

I caught the error regarding column c, and changed that to $C$289, but now I
get "1" as the result.

"cursednomore" wrote:

I am trying to take a set of data and make it simpler to work with, but don't
want to have to retype all the data. On sheet 1(data), I have names in column
A, orders or sales in column b, the day of the week in column c, and the
beginning date of the week in D through BC (not my design). The columns with
the week begin date have the number of orders or sales contained within. What
I would like to get is a second worksheet(records), with 5 columns, names,
week begin date, day of week, orders, and sales. I tried to use sumproduct,
but get an #N/A error.

I used
=SUMPRODUCT((data!$A$2:$A$289=records!$A2)*(data!$ C$2:$C$290=records!$C2)*(data!$D$1:$BC$1=records!$ B2)*(data!$B$2:$B$289=records!$D$1)).
This was to get the orders. Can you tell me where I went wrong, or if I'm
using the wrong function?

Thanks in advance for any help that you can provide.

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

By using ranges of different dimensions (e.g., A2:A289, C2:C290), the
product of the array will contain #N/A (e.g., the 289th element for the
two ranges above). This is passed through to SUMPRODUCT's result.

As a first step, try changing C2:C290 to C2:C289.

In article ,
cursednomore wrote:

I used
=SUMPRODUCT((data!$A$2:$A$289=records!$A2)*(data!$ C$2:$C$290=records!$
C2)*(dat a!$D$1:$BC$1=records!$B2)*(data!$B$2:$B$289=record s!$D$1)).
This was to get the orders. Can you tell me where I went wrong, or if
I'm using the wrong function?

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 Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 07:33 AM.

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"