Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default how to return a result from 2 conditions?

From the information below, I'm need a formula that when
the column A1:A3 = 6/27/07 AND column C1:C3 = in, then count column B1:B3

date count in/ot/dd
6/27/07 10 in
6/30/07 1 dd
7/6/07 9 ot

In this example above the correct result would be 10 but I can't get a
formula to consider 2 conditions. (Excel 2003) Thanks.






  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default how to return a result from 2 conditions?

Try this:

=SUMPRODUCT(--(A1:A3=DATE(2007,6,27)),--(C1:C3="in"),B1:B3)

HTH,
Elkar


"Christy" wrote:

From the information below, I'm need a formula that when
the column A1:A3 = 6/27/07 AND column C1:C3 = in, then count column B1:B3

date count in/ot/dd
6/27/07 10 in
6/30/07 1 dd
7/6/07 9 ot

In this example above the correct result would be 10 but I can't get a
formula to consider 2 conditions. (Excel 2003) Thanks.






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default how to return a result from 2 conditions?

It works! Thanks so much.

"Elkar" wrote:

Try this:

=SUMPRODUCT(--(A1:A3=DATE(2007,6,27)),--(C1:C3="in"),B1:B3)

HTH,
Elkar


"Christy" wrote:

From the information below, I'm need a formula that when
the column A1:A3 = 6/27/07 AND column C1:C3 = in, then count column B1:B3

date count in/ot/dd
6/27/07 10 in
6/30/07 1 dd
7/6/07 9 ot

In this example above the correct result would be 10 but I can't get a
formula to consider 2 conditions. (Excel 2003) Thanks.






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
excel result return wrong calcuation result garyww Excel Worksheet Functions 1 August 14th 06 11:14 AM
excel result return wrong calcuation result garyww Excel Worksheet Functions 0 August 14th 06 05:02 AM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
2 Conditions True, Many Variables, Return Result elliekev26 Excel Worksheet Functions 4 September 22nd 05 04:16 PM
How do I check the conditions of 2 fields to return a result Jimbob Excel Discussion (Misc queries) 3 January 17th 05 11:59 AM


All times are GMT +1. The time now is 07:18 AM.

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"