Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Is there a formula can get min value of a range by certain conditi

Hello All:

I want to know if I can use a formula to get the min date that task ID "A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Is there a formula can get min value of a range by certain conditi

{=MIN((A2:A9)*(B2:B9="A")*(C2:C9="STK")+99999*((B2 :B9<"A")+(C2:C9<"STK")))}

paste the above ARRAY function without the brackets and use ctrl+shift+enter
(when done correctly Excel will surround the function in brackets
automatically).

"luvgreen" wrote:

Hello All:

I want to know if I can use a formula to get the min date that task ID "A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Is there a formula can get min value of a range by certain conditi

Try this:

Formula entered as an array using the key combination of CTRL,SHIFT,ENTER
(not just ENTER):

=MIN(IF((B2:B9="A")*(C2:C9="STK"),A2:A9))

Format the cell as DATE

Biff

"luvgreen" wrote in message
...
Hello All:

I want to know if I can use a formula to get the min date that task ID "A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Thank Sloth and Biff.

Thank Sloth and Biff.

"luvgreen" wrote:

Hello All:

I want to know if I can use a formula to get the min date that task ID "A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default Is there a formula can get min value of a range by certain conditi

Thank both Sloth and Biff.

"luvgreen" wrote:

Hello All:

I want to know if I can use a formula to get the min date that task ID "A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Thank Sloth and Biff.

You're welcome!

Biff

"luvgreen" wrote in message
...
Thank Sloth and Biff.

"luvgreen" wrote:

Hello All:

I want to know if I can use a formula to get the min date that task ID
"A"
and task type "STK"? Sample data below. I want to get 1/1/2005 as Min
date
for task A and Type STK. Thanks much!!

Date Task ID Task Type
1/1/2006 A PR
3/1/2006 C STK
1/1/2005 A STK
1/1/2003 B PR
1/1/2006 A PR
1/1/2006 D PR
1/1/2006 E PR
2/1/2006 A STK


Hope you all have a nice day!



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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Adjusting a formula cell range Jamie Excel Discussion (Misc queries) 1 May 26th 06 05:00 PM
Need formula to lookup a named range DMDave Excel Discussion (Misc queries) 5 May 7th 06 03:18 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM


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