Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ang Ang is offline
external usenet poster
 
Posts: 36
Default multiple variables in sumproduct or if/then formulas

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default multiple variables in sumproduct or if/then formulas

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" wrote:

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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ang Ang is offline
external usenet poster
 
Posts: 36
Default multiple variables in sumproduct or if/then formulas

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

"JMB" wrote:

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" wrote:

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


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default multiple variables in sumproduct or if/then formulas

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

"Ang" wrote:

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

"JMB" wrote:

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" wrote:

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


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ang Ang is offline
external usenet poster
 
Posts: 36
Default multiple variables in sumproduct or if/then formulas

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

-Ang

"JMB" wrote:

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

"Ang" wrote:

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

"JMB" wrote:

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" wrote:

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


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
look for a value with multiple variables Andrea Excel Discussion (Misc queries) 2 January 18th 07 12:24 PM
How do I string formulas together in Excel to display variables DavidB New Users to Excel 19 October 10th 06 09:44 AM
Using formulas to source a value based on 2 variables bsmith69 Excel Worksheet Functions 2 June 14th 06 11:12 PM
How can I use variables in formulas in VB? thorsten Excel Discussion (Misc queries) 2 May 16th 06 08:22 PM
Sumif with multiple variables les8 Excel Discussion (Misc queries) 5 April 8th 06 02:16 AM


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