Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marc
 
Posts: n/a
Default Max or Min with condition

How can I search the minimum and maximum values of the rows that follow a
specific condition?

e.g.
A mission means having to travel to a set of destinations.
Columns are Mission, Destination, Arrival and Departure.
How can I build a formula that for a specific mission, searches the lowest
arrival date and highest departure date? In that way I will know from which
day to which day was the mission.

If I could do an array I would do MAX((mission=A1)*(departure_date))

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Max or Min with condition

=MAX(IF(mission=A1,departure_date))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(replace xxxx in email address with googlemail if mailing direct)

"Marc" wrote in message
...
How can I search the minimum and maximum values of the rows that follow a
specific condition?

e.g.
A mission means having to travel to a set of destinations.
Columns are Mission, Destination, Arrival and Departure.
How can I build a formula that for a specific mission, searches the lowest
arrival date and highest departure date? In that way I will know from

which
day to which day was the mission.

If I could do an array I would do MAX((mission=A1)*(departure_date))

Thank you



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Max or Min with condition

Why didn't you? It works, but for MIN you would need

=MIN(IF(Mission=A1,departure_date))

both entered with ctrl + shift & enter

Regards,

Peo Sjoblom


"Marc" wrote:

How can I search the minimum and maximum values of the rows that follow a
specific condition?

e.g.
A mission means having to travel to a set of destinations.
Columns are Mission, Destination, Arrival and Departure.
How can I build a formula that for a specific mission, searches the lowest
arrival date and highest departure date? In that way I will know from which
day to which day was the mission.

If I could do an array I would do MAX((mission=A1)*(departure_date))

Thank you

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
conditional formatting - multiple condition jenhow Excel Discussion (Misc queries) 5 August 17th 05 02:45 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
Condition IF Jeff Excel Discussion (Misc queries) 3 February 15th 05 10:19 PM
Add condition to formula Pat Excel Worksheet Functions 0 November 16th 04 12:23 PM
External reference as a condition Ingeniero1 Excel Worksheet Functions 2 November 12th 04 07:10 PM


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