Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Need to Sum when THREE Conditions are met

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Need to Sum when THREE Conditions are met

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Need to Sum when THREE Conditions are met

When I use:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),--('Service Request
Log'!$C$4:$C$5000)<"")--('Service Request Log'!$O$4:$O$5000<"")

It comes back as #VALUE!.

"JMB" wrote:

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Need to Sum when THREE Conditions are met

That formula is not the same. You are missing a comma and end parentheses.

"jimswinder" wrote:

When I use:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),--('Service Request
Log'!$C$4:$C$5000)<"")--('Service Request Log'!$O$4:$O$5000<"")

It comes back as #VALUE!.

"JMB" wrote:

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Need to Sum when THREE Conditions are met

hmmmmm...I thought I copied and pasted...will try again.

"JMB" wrote:

That formula is not the same. You are missing a comma and end parentheses.

"jimswinder" wrote:

When I use:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),--('Service Request
Log'!$C$4:$C$5000)<"")--('Service Request Log'!$O$4:$O$5000<"")

It comes back as #VALUE!.

"JMB" wrote:

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default Need to Sum when THREE Conditions are met

I see what happened...Excel says it finds a problem with the equation and do
I want to acccept the proposed new formula.
And the new formula is what I pasted below.

"JMB" wrote:

That formula is not the same. You are missing a comma and end parentheses.

"jimswinder" wrote:

When I use:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),--('Service Request
Log'!$C$4:$C$5000)<"")--('Service Request Log'!$O$4:$O$5000<"")

It comes back as #VALUE!.

"JMB" wrote:

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Need to Sum when THREE Conditions are met

Got it. I had an extra parantheses

Corrected:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000<""), --('Service Request Log'!$O$4:$O$5000<""))

"jimswinder" wrote:

I see what happened...Excel says it finds a problem with the equation and do
I want to acccept the proposed new formula.
And the new formula is what I pasted below.

"JMB" wrote:

That formula is not the same. You are missing a comma and end parentheses.

"jimswinder" wrote:

When I use:
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189),--('Service Request
Log'!$C$4:$C$5000)<"")--('Service Request Log'!$O$4:$O$5000<"")

It comes back as #VALUE!.

"JMB" wrote:

Perhaps
=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189), --('Service
Request Log'!$C$4:$C$5000)<""), --('Service Request Log'!$O$4:$O$5000<""))



"jimswinder" wrote:

I need to sum a Column when it meets Three conditions.

When the date is the same as "a189", when there is a value in a cell in
Column "C" and there is also a value in column "O" (both the values in
column "C" & "O" have to be in the same row. If TRUE, give a value of "1" at
each occurrence and sum those values. I came up with the following:

=SUMPRODUCT(--('Service Request Log'!$B$4:$B$5000=$A189)*(LEFT('Service
Request Log'!$C$4:$C$5000,1)="0"))+SUMPRODUCT(--('Service Request
Log'!$B$4:$B$5000=$A189)*(LEFT('Service Request Log'!$O$4:$O$5000,1)<0))

But this is treating each column ("C" & "O") as separate values and adding
them together. So instead of a value of say, "5" for a certain date, I am
getting "15" because there are "10" entries in column "C" and "5" entries in
column "O".

I probably should mentione that Column "C" has a string of numbers (IE:
06-123.123) and column "O" will just have numbers...no text in either one so
I guess I should not be using the LEFT function, huh?

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
Checking if 2 of 3 conditions are met... guilbj2 Excel Discussion (Misc queries) 5 June 29th 06 04:31 PM
Count using 2 conditions, one of which being a "less than or equal to" - URGENT SamGB Excel Discussion (Misc queries) 2 February 15th 06 10:35 AM
COUNT using multiple conditions SamGB Excel Discussion (Misc queries) 2 February 9th 06 10:12 PM
More than 3 Conditional Formatting Conditions Beth H Excel Worksheet Functions 12 January 6th 06 07:35 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


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