LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula to look up Min Values in Date with 1 or more criteria

Hi Mike,

Sorry to correct my mistake, the formula I used was
={IF(B2="BCD",AL7,MIN(IF($A$2:$A$5=A2,$C$2:$C$5))) }
I had used the array formula over it.

The reason why I was returned the date from BCD was becos' of my criteria
was set to "Name". Is there any way I can check the Name and also limit the
minimum date value to only those under Company "ABC"?

Thanks,
Carine

"Mike H" wrote:

Is there any way I can capture the minimum date for the only for Company
"ABC" and ignore the date for "BCD":


You never read my response. The formula I gave you is an ARRAY formula and
will return excactly what your looking for if you follow the instructions.

Paste the formula in the formula bar then:

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Carine" wrote:

Hi Mike,

Thanks very much for your help.
Tried the formula out and it works well. However, I noticed that with the
mentioned formula, i have the following end results:

Formula used: =IF(B2="BCD",AL7,MIN(IF($A$2:$A$5=A2,$C$2:$C$5)))

Name Company Date End Result
Alex ABC 31-12-2009 31-12-2006
Alex ABC 31-12-2008 31-12-2006
Alex ABC 30-11-2009 31-12-2006
Alex BCD 31-12-2006 31-12-2006


Is there any way I can capture the minimum date for the only for Company
"ABC" and ignore the date for "BCD":
Name Company Date End Result
Alex ABC 31-12-2009 31-12-2008
Alex ABC 31-12-2008 31-12-2008
Alex ABC 30-11-2009 31-12-2008
Alex BCD 31-12-2006 31-12-2006


Thanks,
Carine


"Mike H" wrote:

Hi,

I have assumed your data are in columns A, B & C.
Put this ARRAY formula in D2 enter as an ARRAY (see below) and drag down

=IF(B2="BCD",C2,MIN(IF($B$2:$B$10=B2,$C$2:$C$10)))

This is an array formula which must be entered by pressing CTRL+Shift+Enter
'and not just Enter. If you do it correctly then Excel will put curly brackets
'around the formula {}. You can't type these yourself. If you edit the formula
'you must enter it again with CTRL+Shift+Enter.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.

 
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
how to sum up values in the date criteria nijins Excel Discussion (Misc queries) 1 July 23rd 08 12:14 PM
Return Numeric Values Matching EXACT Date for Criteria Sam via OfficeKB.com Excel Worksheet Functions 4 October 20th 06 11:20 PM
Criteria for DCOUNTA for date values wacNTN Excel Discussion (Misc queries) 1 April 25th 06 07:52 PM
Formula that sums the values if you have 2 criteria and 2 differe. Inga Excel Worksheet Functions 9 November 18th 05 08:44 AM
Sum range of values that meet date criteria Ed Wurster Excel Discussion (Misc queries) 2 April 11th 05 08:06 PM


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