Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
Pete
 
Posts: n/a
Default Min If???

You can make use of MIN and IF in an array formula. For example, in
this formula:

=MIN(IF(((Bill_no =2)*(Acc_no="abc")),call_date,100000))

I want to find the earliest date in the named range "call_date" which
has an invoice number of 2 and an account number of abc, where
"Bill_no" and "acc_no" are also named ranges. A similar formula can be
used with MAX to find the latest date that meets these criteria, as
follows:

=MAX(IF(((Bill_no =2)*(Acc_no="abc")),call_date,0))

As these are array formulae, you have to use CTRL-SHIFT-ENTER instead
of just <enter to get them to work - this key combination also results
in putting curly brackets around the formula. Other criteria can be
added by *(criteria) in the first part of the formula for an AND
condition, or +(criteria) for an OR condition.

Hope this helps.

Pete

 
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



All times are GMT +1. The time now is 04:32 AM.

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"