Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default SumProduct Question

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default SumProduct Question

I noticed the data did not copy over very well. Per1 should be in column D.
and the numbers such as 528 and 69 are also in column D.
--
Anne


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default SumProduct Question

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


I see a missing ).

=SUMPRODUCT(--($B$2:$B$239=B2),--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

If that was a typo rather than what's wrong with the formula, I see quite a
bit of text in your data so you might sub TRIM($C$2:$C$239) for just the
range. The other usual suspect is numbers stored as text, so check PER1 (and
2 and 3) for format. Aside from those details, it seems you constructed the
right formula for what you describe.

What sort of error are you receiving?


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default SumProduct Question

Thanks for the help. I'm one step closer, but I am now getting a zero value.
--
Anne


"~L" wrote:

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


I see a missing ).

=SUMPRODUCT(--($B$2:$B$239=B2),--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

If that was a typo rather than what's wrong with the formula, I see quite a
bit of text in your data so you might sub TRIM($C$2:$C$239) for just the
range. The other usual suspect is numbers stored as text, so check PER1 (and
2 and 3) for format. Aside from those details, it seems you constructed the
right formula for what you describe.

What sort of error are you receiving?


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default SumProduct Question

I'm still leaning toward text issue.

This seems to be a formula you are going to create an entire column out of,
are all of the rows in that column 0?

If not, to troubleshoot, try using the advanced filter tool to create lists
of unique values in an unused column off to the side for column B and column
C. If the same values appear to appear twice, you may have to clean up the
text entries.

If all of the values are 0, it means there are no matches. Instead of
having "total shifts required" in the formula, copy one of the cells that
contains that value to another location (we'll call it G1) and sub $G$1 into
the formula where there was text before. Now we're sure we have at least one
match (on the row where you copied the text from) because B(whatever that row
number was) will always be equal to itself even if there is a typo somewhere,
and the text you copied will be equal to itself, so unless the number for
that row is 0, something else must be wrong.

In that case, check to make sure calculation for your spreadsheet is set to
automatic instead of manual (hitting F9 would work unless...), and that
calculation is not disabled by code (Alt F11 to access the VB editor).

"Anne" wrote:

Thanks for the help. I'm one step closer, but I am now getting a zero value.
--
Anne


"~L" wrote:

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


I see a missing ).

=SUMPRODUCT(--($B$2:$B$239=B2),--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

If that was a typo rather than what's wrong with the formula, I see quite a
bit of text in your data so you might sub TRIM($C$2:$C$239) for just the
range. The other usual suspect is numbers stored as text, so check PER1 (and
2 and 3) for format. Aside from those details, it seems you constructed the
right formula for what you describe.

What sort of error are you receiving?


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 74
Default SumProduct Question

I finally got it to work. Thank you so much for your help. Text was the
issue.


--
Anne


"~L" wrote:

I'm still leaning toward text issue.

This seems to be a formula you are going to create an entire column out of,
are all of the rows in that column 0?

If not, to troubleshoot, try using the advanced filter tool to create lists
of unique values in an unused column off to the side for column B and column
C. If the same values appear to appear twice, you may have to clean up the
text entries.

If all of the values are 0, it means there are no matches. Instead of
having "total shifts required" in the formula, copy one of the cells that
contains that value to another location (we'll call it G1) and sub $G$1 into
the formula where there was text before. Now we're sure we have at least one
match (on the row where you copied the text from) because B(whatever that row
number was) will always be equal to itself even if there is a typo somewhere,
and the text you copied will be equal to itself, so unless the number for
that row is 0, something else must be wrong.

In that case, check to make sure calculation for your spreadsheet is set to
automatic instead of manual (hitting F9 would work unless...), and that
calculation is not disabled by code (Alt F11 to access the VB editor).

"Anne" wrote:

Thanks for the help. I'm one step closer, but I am now getting a zero value.
--
Anne


"~L" wrote:

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

I see a missing ).

=SUMPRODUCT(--($B$2:$B$239=B2),--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

If that was a typo rather than what's wrong with the formula, I see quite a
bit of text in your data so you might sub TRIM($C$2:$C$239) for just the
range. The other usual suspect is numbers stored as text, so check PER1 (and
2 and 3) for format. Aside from those details, it seems you constructed the
right formula for what you describe.

What sort of error are you receiving?


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default SumProduct Question

Glad I could help.

"Anne" wrote:

I finally got it to work. Thank you so much for your help. Text was the
issue.


--
Anne


"~L" wrote:

I'm still leaning toward text issue.

This seems to be a formula you are going to create an entire column out of,
are all of the rows in that column 0?

If not, to troubleshoot, try using the advanced filter tool to create lists
of unique values in an unused column off to the side for column B and column
C. If the same values appear to appear twice, you may have to clean up the
text entries.

If all of the values are 0, it means there are no matches. Instead of
having "total shifts required" in the formula, copy one of the cells that
contains that value to another location (we'll call it G1) and sub $G$1 into
the formula where there was text before. Now we're sure we have at least one
match (on the row where you copied the text from) because B(whatever that row
number was) will always be equal to itself even if there is a typo somewhere,
and the text you copied will be equal to itself, so unless the number for
that row is 0, something else must be wrong.

In that case, check to make sure calculation for your spreadsheet is set to
automatic instead of manual (hitting F9 would work unless...), and that
calculation is not disabled by code (Alt F11 to access the VB editor).

"Anne" wrote:

Thanks for the help. I'm one step closer, but I am now getting a zero value.
--
Anne


"~L" wrote:

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

I see a missing ).

=SUMPRODUCT(--($B$2:$B$239=B2),--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)

If that was a typo rather than what's wrong with the formula, I see quite a
bit of text in your data so you might sub TRIM($C$2:$C$239) for just the
range. The other usual suspect is numbers stored as text, so check PER1 (and
2 and 3) for format. Aside from those details, it seems you constructed the
right formula for what you describe.

What sort of error are you receiving?


"Anne" wrote:

I am trying to sum amounts based on two conditions. The information below is
a sample of what my spreadsheet looks like:

Line Groupings Data
Per1

Line 11 - 1# 1# Bottle Total Shifts Available
528
Line 11 - 1# 1# Bottle Total Shifts Required
69
Line 11 - 1# 1# Bottle Total Shifts Remaining -
Constrained 459
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Available
528
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Required
25
Line 14 - 2# FS 2# FS Bottle (Ln14) Total Shifts Remaining -
Constrained 503


I would like to sum the amounts from Per1 (Period 1) based on Grouping and
Data. I will also be using this formula to add more columns such as Per2 &
Per3 that are in columns E and F.

I have tried the following formula, but am not having success.

=SUMPRODUCT(--($B$2:$B$239=B2,--($C$2:$C$239="Total Shifts
Required"),$D$2:$D$239)


Any help would be appreciated.

Thanks,

Anne

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 Question [email protected] Excel Discussion (Misc queries) 4 June 3rd 08 04:22 PM
SUMPRODUCT question PFAA Excel Discussion (Misc queries) 13 June 2nd 08 07:58 PM
Sumproduct question wx4usa Excel Discussion (Misc queries) 5 August 10th 07 11:28 PM
Sumproduct question Barb Reinhardt Excel Worksheet Functions 8 May 9th 06 06:24 PM
SUMPRODUCT Question... PokerZan Excel Discussion (Misc queries) 4 August 27th 05 12:09 AM


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