#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default SUMPRODUCT

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default SUMPRODUCT

http://www.microsoft.com/office/comm...a-8d398339035a

--
** John C **

"Scott Kieta" wrote:

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default SUMPRODUCT

Thank you, i was not sure how to find my initial question, i will work off of
that.



"John C" wrote:

http://www.microsoft.com/office/comm...a-8d398339035a

--
** John C **

"Scott Kieta" wrote:

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default SUMPRODUCT

You can simplify the calculation if you enter all SAT/SUN hours in the OT
column.

If you can do that then,

=SUMPRODUCT(--(F22:BU22="Reg"),(F23:BW23))
will give you sum of Regular Hours

=SUMPRODUCT(--(F22:BU22="OT"),(F23:BW23))

If not then
=SUMPRODUCT(--(F21:BU21="SAT"),--(F22:BU22="Reg"),(F23:BU23))
will give you total of Sat Reg hours
Similary for Sun
=SUMPRODUCT(--(F21:BU21="SUN"),--(F22:BU22="Reg"),(F23:BU23))

Add these two and subtract from total reg hours

"Scott Kieta" wrote:

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default SUMPRODUCT

That makes perfect sense however for some reason my formula continues to come
up with an answer of "0"

Thanks

"Sheeloo" wrote:

You can simplify the calculation if you enter all SAT/SUN hours in the OT
column.

If you can do that then,

=SUMPRODUCT(--(F22:BU22="Reg"),(F23:BW23))
will give you sum of Regular Hours

=SUMPRODUCT(--(F22:BU22="OT"),(F23:BW23))

If not then
=SUMPRODUCT(--(F21:BU21="SAT"),--(F22:BU22="Reg"),(F23:BU23))
will give you total of Sat Reg hours
Similary for Sun
=SUMPRODUCT(--(F21:BU21="SUN"),--(F22:BU22="Reg"),(F23:BU23))

Add these two and subtract from total reg hours

"Scott Kieta" wrote:

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,805
Default SUMPRODUCT

Did you try my formulae?

Your formula
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
is trying to sum over two rows (23 & 24)

I think you should chang the last range to F23:Bw24.

It might also be giving you problems due to merging of cells in Row 21
"Scott Kieta" wrote:

That makes perfect sense however for some reason my formula continues to come
up with an answer of "0"

Thanks

"Sheeloo" wrote:

You can simplify the calculation if you enter all SAT/SUN hours in the OT
column.

If you can do that then,

=SUMPRODUCT(--(F22:BU22="Reg"),(F23:BW23))
will give you sum of Regular Hours

=SUMPRODUCT(--(F22:BU22="OT"),(F23:BW23))

If not then
=SUMPRODUCT(--(F21:BU21="SAT"),--(F22:BU22="Reg"),(F23:BU23))
will give you total of Sat Reg hours
Similary for Sun
=SUMPRODUCT(--(F21:BU21="SUN"),--(F22:BU22="Reg"),(F23:BU23))

Add these two and subtract from total reg hours

"Scott Kieta" wrote:

I tried submitting this before but i am not sure if it made it to the site, i
apologize if this is a duplicate.

Scenario: Worksheet with month data Nov 1- Nov 30 (F21:BU21) Row 22 is the
day format of those dates. Row 23 is alternating columns for attendance
headers "Reg, "OT") all the way through BU23.

G H
1-nov (Merged)
SAT (Merged)
Reg OT (sep columns)

Trying to sum all "reg" hours to one summary column, and all "OT" hours to
another column where any days Sat or Sun automatically sum to the OT hours.
And do not sum with the Reg hours.

This is my formula to start (which obvioulsy is not working) can someone
help point me in the right direction?
=SUMPRODUCT(F21:BU21=$F$21)*(F22:BW22=$G$22)*(--F23:BW24)
$F$21 represents cell indicating "Sat", $g$22 represents "OT"

I think i am overthinking it and just confusing myself

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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
How to use Sumproduct in VBA??? FARAZ QURESHI Excel Discussion (Misc queries) 3 December 31st 07 05:31 PM
SUMPRODUCT Paul Dennis Excel Worksheet Functions 4 December 18th 07 03:59 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct Curtis Excel Worksheet Functions 1 March 5th 07 11:42 PM


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

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"