multiple variables in sumproduct or if/then formulas

A

Ang

Help....I just can't figure out a correct formula. I need a formula that
gives me:
if a specific date spreadsheet A = a date on spreadsheet B
and a specific dept # on spreadsheet A = the department# on spreadsheet B
then get the # of hours for that department on spreadsheet B for that
specific date

I was trying =SUMPRODUCT(('Labor Download'!O:O=Report!A6)*('Labor
Download'!I:I=Report!P:p)*('Labor Download'!J:J)) [where Report!A6=date
and Report!P=dept and labor downloadJ=# hours]
but the result is #NUM!

Clear as mud?
Thx much!
-Angela
 
A

Ang

I tried this and still get the #num! error message. Any other ideas? I'm
just plain stuck!
Thx!

JMB said:
Prior to XL2007, Sumproduct cannot use an entire column. Instead of O:O, use
the actual range or use O1:O65535, or use a dynamic named range.

http://www.cpearson.com/excel/excelF.htm#DynamicRanges

Ang said:
Help....I just can't figure out a correct formula. I need a formula that
gives me:
if a specific date spreadsheet A = a date on spreadsheet B
and a specific dept # on spreadsheet A = the department# on spreadsheet B
then get the # of hours for that department on spreadsheet B for that
specific date

I was trying =SUMPRODUCT(('Labor Download'!O:O=Report!A6)*('Labor
Download'!I:I=Report!P:p)*('Labor Download'!J:J)) [where Report!A6=date
and Report!P=dept and labor downloadJ=# hours]
but the result is #NUM!

Clear as mud?
Thx much!
-Angela
 
J

JMB

A little light on details. What exactly did you try?

Ang said:
I tried this and still get the #num! error message. Any other ideas? I'm
just plain stuck!
Thx!

JMB said:
Prior to XL2007, Sumproduct cannot use an entire column. Instead of O:O, use
the actual range or use O1:O65535, or use a dynamic named range.

http://www.cpearson.com/excel/excelF.htm#DynamicRanges

Ang said:
Help....I just can't figure out a correct formula. I need a formula that
gives me:
if a specific date spreadsheet A = a date on spreadsheet B
and a specific dept # on spreadsheet A = the department# on spreadsheet B
then get the # of hours for that department on spreadsheet B for that
specific date

I was trying =SUMPRODUCT(('Labor Download'!O:O=Report!A6)*('Labor
Download'!I:I=Report!P:p)*('Labor Download'!J:J)) [where Report!A6=date
and Report!P=dept and labor downloadJ=# hours]
but the result is #NUM!

Clear as mud?
Thx much!
-Angela
 
A

Ang

I figure it out! Thank you so much for your help - you saved me!

-Ang

JMB said:
A little light on details. What exactly did you try?

Ang said:
I tried this and still get the #num! error message. Any other ideas? I'm
just plain stuck!
Thx!

JMB said:
Prior to XL2007, Sumproduct cannot use an entire column. Instead of O:O, use
the actual range or use O1:O65535, or use a dynamic named range.

http://www.cpearson.com/excel/excelF.htm#DynamicRanges

:

Help....I just can't figure out a correct formula. I need a formula that
gives me:
if a specific date spreadsheet A = a date on spreadsheet B
and a specific dept # on spreadsheet A = the department# on spreadsheet B
then get the # of hours for that department on spreadsheet B for that
specific date

I was trying =SUMPRODUCT(('Labor Download'!O:O=Report!A6)*('Labor
Download'!I:I=Report!P:p)*('Labor Download'!J:J)) [where Report!A6=date
and Report!P=dept and labor downloadJ=# hours]
but the result is #NUM!

Clear as mud?
Thx much!
-Angela
 
Top