#1   Report Post  
Steved
 
Posts: n/a
Default #NUM!

Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2))}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

SUMPRODUCT cannot handle entire column references. Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2)) }

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

  #3   Report Post  
Steved
 
Posts: n/a
Default

Hello from Steved

{=SUMPRODUCT((Sheet1!C1:C2000=B2),(Sheet1!D1:D2000 =$C$2))}

Returns 0

Any ideas please.

Thankyou.

-----Original Message-----
SUMPRODUCT cannot handle entire column references.

Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2) )}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

.

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

how about:

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!D1:D2000=$C$2))
or
=SUMPRODUCT((Sheet1!C1:C2000=B2)*(Sheet1!D1:D2000= $C$2))

(no need to array enter this)


The -- stuff changes true/falses to 1/0's. And =sumproduct() likes to work with
numbers.



Steved wrote:

Hello from Steved

{=SUMPRODUCT((Sheet1!C1:C2000=B2),(Sheet1!D1:D2000 =$C$2))}

Returns 0

Any ideas please.

Thankyou.

-----Original Message-----
SUMPRODUCT cannot handle entire column references.

Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2) )}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

.


--

Dave Peterson
  #5   Report Post  
 
Posts: n/a
Default

Hello from Steved

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!
D1:D2000=$C$2))

The above is giving me a 1 in this case it should be 4509.

My understanding is sumproduct will copy a value and
paste it. Am I using The right formula please.

The above formula is in B2 of sheet2 it is to copy the
value from Col A:A of Sheet1.

Thankyou.

-----Original Message-----
how about:

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!

D1:D2000=$C$2))
or
=SUMPRODUCT((Sheet1!C1:C2000=B2)*(Sheet1!D1:D2000 =$C$2))

(no need to array enter this)


The -- stuff changes true/falses to 1/0's. And

=sumproduct() likes to work with
numbers.



Steved wrote:

Hello from Steved

{=SUMPRODUCT((Sheet1!C1:C2000=B2),(Sheet1!

D1:D2000=$C$2))}

Returns 0

Any ideas please.

Thankyou.

-----Original Message-----
SUMPRODUCT cannot handle entire column references.

Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2) )}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

.


--

Dave Peterson
.



  #6   Report Post  
Steved
 
Posts: n/a
Default

Hello from Steved

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!
D1:D2000=$C$2))

The above is giving me a 1 in this case it should be 4509.

My understanding is sumproduct will copy a value and
paste it. Am I using The right formula please.

The above formula is in B2 of sheet2 it is to copy the
value from Col A:A of Sheet1.

Thankyou.

-----Original Message-----
how about:

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!

D1:D2000=$C$2))
or
=SUMPRODUCT((Sheet1!C1:C2000=B2)*(Sheet1!D1:D2000 =$C$2))

(no need to array enter this)


The -- stuff changes true/falses to 1/0's. And

=sumproduct() likes to work with
numbers.



Steved wrote:

Hello from Steved

{=SUMPRODUCT((Sheet1!C1:C2000=B2),(Sheet1!

D1:D2000=$C$2))}

Returns 0

Any ideas please.

Thankyou.

-----Original Message-----
SUMPRODUCT cannot handle entire column references.

Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2) )}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

.


--

Dave Peterson
.

  #7   Report Post  
Dave Peterson
 
Posts: n/a
Default

The most that this can be is: 2000.

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!D1:D2000=$C$2))

says to count the cells in C1:C2000 that match B2 and at the same time the cells
in D1:D2000 that match C2.

If all the cells match (correspondingly), then it can never exceed 2000. (Until
you include more cells.)

And formulas don't copy values and paste them. They do evaluate and put show
you what the calculated value will be, though.

Steved wrote:

Hello from Steved

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!
D1:D2000=$C$2))

The above is giving me a 1 in this case it should be 4509.

My understanding is sumproduct will copy a value and
paste it. Am I using The right formula please.

The above formula is in B2 of sheet2 it is to copy the
value from Col A:A of Sheet1.

Thankyou.

-----Original Message-----
how about:

=SUMPRODUCT(--(Sheet1!C1:C2000=B2),--(Sheet1!

D1:D2000=$C$2))
or
=SUMPRODUCT((Sheet1!C1:C2000=B2)*(Sheet1!D1:D2000 =$C$2))

(no need to array enter this)


The -- stuff changes true/falses to 1/0's. And

=sumproduct() likes to work with
numbers.



Steved wrote:

Hello from Steved

{=SUMPRODUCT((Sheet1!C1:C2000=B2),(Sheet1!

D1:D2000=$C$2))}

Returns 0

Any ideas please.

Thankyou.

-----Original Message-----
SUMPRODUCT cannot handle entire column references.
Change
your references to something like:

Sheet1!C1:C2000

HTH
Jason
Atlanta, GA

-----Original Message-----
Hello from Steved

{=SUMPRODUCT((Sheet1!C:C=B2),(Sheet1!D:D=$C$2) )}

I am getting a #NUM!

The formula is in A2 in Sheet2.

The object is to Find the value in Col A:A Sheet1 and
copy it to Sheet2.

Thankyou.
.

.


--

Dave Peterson
.


--

Dave Peterson
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



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

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"