Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sum data if 3 criteria are met

I'm trying to come up with a formula that will let me sum data in one column
if three criteria are met in the other columns. Here is sample data:

A2:A65535 = Dates (looking for all items that = 3/15/2008)
C2:C65535 = Text (looking for all items that equal = "eChannel")
O2:O65535 = Text (looking for all items that equal = "Direct Expense")
AG2:AG65535 = Numbers (I want to sum all numbers if all three criteria above
are met for a particular row)

So, I want to sum column AG for all rows that have 3/15/2008 in column A,
"echannel" in column C, and "Direct expense" in column O.

I've tried Ctrl-Shift-Enter formulas but I must not have them correct. Also
I've tried SUMPRODUCT formulas but here again I must be doing something
wrong. Thanks in advance for any help.

--
rdbjr99
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sum data if 3 criteria are met


Your date will be a serial number (39522).
=SUMPRODUCT(--(A2:A65535=39522),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)

If criteria to be met will reside in cells, then you can replace with the
cell references.
=SUMPRODUCT(--(A2:A65535=A1),--(C2:C65535=C1),--(O2:O65535=O1),AG2:AG65535)

HTH,
Paul

--

"rdbjr99" wrote in message
...
I'm trying to come up with a formula that will let me sum data in one
column
if three criteria are met in the other columns. Here is sample data:

A2:A65535 = Dates (looking for all items that = 3/15/2008)
C2:C65535 = Text (looking for all items that equal = "eChannel")
O2:O65535 = Text (looking for all items that equal = "Direct Expense")
AG2:AG65535 = Numbers (I want to sum all numbers if all three criteria
above
are met for a particular row)

So, I want to sum column AG for all rows that have 3/15/2008 in column A,
"echannel" in column C, and "Direct expense" in column O.

I've tried Ctrl-Shift-Enter formulas but I must not have them correct.
Also
I've tried SUMPRODUCT formulas but here again I must be doing something
wrong. Thanks in advance for any help.

--
rdbjr99



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Sum data if 3 criteria are met

Paul: Thanks but when I enter the formula you provided I get #N/A returned.
Does it make a difference that the data is in one spreadsheet and the formula
is in another? For example I am trying to sum the data in the Mar. Scorecard
worksheet and the data is in the FCByAccount worksheet. Here is what my
formula looks like:
=SUMPRODUCT(--(FCbyAccount!A2:A65535=39522),--(FCbyAccount!C2:C65535="eChannel"),--(FCbyAccount!O2:O65535="Direct
Expense"),FCbyAccount!AG2:AG65535)
--
rdbjr99


"PCLIVE" wrote:


Your date will be a serial number (39522).
=SUMPRODUCT(--(A2:A65535=39522),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)

If criteria to be met will reside in cells, then you can replace with the
cell references.
=SUMPRODUCT(--(A2:A65535=A1),--(C2:C65535=C1),--(O2:O65535=O1),AG2:AG65535)

HTH,
Paul

--

"rdbjr99" wrote in message
...
I'm trying to come up with a formula that will let me sum data in one
column
if three criteria are met in the other columns. Here is sample data:

A2:A65535 = Dates (looking for all items that = 3/15/2008)
C2:C65535 = Text (looking for all items that equal = "eChannel")
O2:O65535 = Text (looking for all items that equal = "Direct Expense")
AG2:AG65535 = Numbers (I want to sum all numbers if all three criteria
above
are met for a particular row)

So, I want to sum column AG for all rows that have 3/15/2008 in column A,
"echannel" in column C, and "Direct expense" in column O.

I've tried Ctrl-Shift-Enter formulas but I must not have them correct.
Also
I've tried SUMPRODUCT formulas but here again I must be doing something
wrong. Thanks in advance for any help.

--
rdbjr99




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Sum data if 3 criteria are met

To avoid converting the date separately to its serial number, you could
change
=SUMPRODUCT(--(A2:A65535=DATE(2008,3,15)),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)
to
=SUMPRODUCT(--(A2:A65535=39522),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)
--
David Biddulph

"PCLIVE" wrote in message
...

Your date will be a serial number (39522).
=SUMPRODUCT(--(A2:A65535=39522),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)

If criteria to be met will reside in cells, then you can replace with the
cell references.
=SUMPRODUCT(--(A2:A65535=A1),--(C2:C65535=C1),--(O2:O65535=O1),AG2:AG65535)

HTH,
Paul

--

"rdbjr99" wrote in message
...
I'm trying to come up with a formula that will let me sum data in one
column
if three criteria are met in the other columns. Here is sample data:

A2:A65535 = Dates (looking for all items that = 3/15/2008)
C2:C65535 = Text (looking for all items that equal = "eChannel")
O2:O65535 = Text (looking for all items that equal = "Direct Expense")
AG2:AG65535 = Numbers (I want to sum all numbers if all three criteria
above
are met for a particular row)

So, I want to sum column AG for all rows that have 3/15/2008 in column A,
"echannel" in column C, and "Direct expense" in column O.

I've tried Ctrl-Shift-Enter formulas but I must not have them correct.
Also
I've tried SUMPRODUCT formulas but here again I must be doing something
wrong. Thanks in advance for any help.

--
rdbjr99





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sum data if 3 criteria are met

That should be fine. However, if you have any errors in your data (ex.
#DIV/0!, #N/A, etc.), then your formula will also result in an error.

Regards,
Paul

--

"rdbjr99" wrote in message
...
Paul: Thanks but when I enter the formula you provided I get #N/A
returned.
Does it make a difference that the data is in one spreadsheet and the
formula
is in another? For example I am trying to sum the data in the Mar.
Scorecard
worksheet and the data is in the FCByAccount worksheet. Here is what my
formula looks like:
=SUMPRODUCT(--(FCbyAccount!A2:A65535=39522),--(FCbyAccount!C2:C65535="eChannel"),--(FCbyAccount!O2:O65535="Direct
Expense"),FCbyAccount!AG2:AG65535)
--
rdbjr99


"PCLIVE" wrote:


Your date will be a serial number (39522).
=SUMPRODUCT(--(A2:A65535=39522),--(C2:C65535="eChannel"),--(O2:O65535="Direct
Expense"),AG2:AG65535)

If criteria to be met will reside in cells, then you can replace with the
cell references.
=SUMPRODUCT(--(A2:A65535=A1),--(C2:C65535=C1),--(O2:O65535=O1),AG2:AG65535)

HTH,
Paul

--

"rdbjr99" wrote in message
...
I'm trying to come up with a formula that will let me sum data in one
column
if three criteria are met in the other columns. Here is sample data:

A2:A65535 = Dates (looking for all items that = 3/15/2008)
C2:C65535 = Text (looking for all items that equal = "eChannel")
O2:O65535 = Text (looking for all items that equal = "Direct Expense")
AG2:AG65535 = Numbers (I want to sum all numbers if all three criteria
above
are met for a particular row)

So, I want to sum column AG for all rows that have 3/15/2008 in column
A,
"echannel" in column C, and "Direct expense" in column O.

I've tried Ctrl-Shift-Enter formulas but I must not have them correct.
Also
I've tried SUMPRODUCT formulas but here again I must be doing something
wrong. Thanks in advance for any help.

--
rdbjr99






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
looking up data in a table using 2 criteria Willem Excel Worksheet Functions 0 September 19th 07 03:16 PM
SUM data if meets criteria Jose Mourinho Charts and Charting in Excel 3 May 29th 07 08:06 PM
data entry criteria cwignall Excel Worksheet Functions 2 July 28th 06 02:18 PM
arrange data by criteria Jeff New Users to Excel 4 May 24th 05 07:57 PM
under certain criteria copy data. dave Excel Worksheet Functions 2 November 16th 04 02:56 AM


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