Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Wishing there was a 'maxif/minif' - your help appreciated!

Hi!

I am trying to find earliest and latest contract expiry dates for a
large number of companies, each with many contracts!

Right now my data is in the format:

Company ID / Contract Expiry (with the data in separate columns, of
course)

There can be up to 10 contracts per company.
E.g.
Company X / 3 January 2009
Company X / 5 December 2011
Company X / 10 November 2012

I need to find the earliest and latest expiry dates, so the output
would look like
Company X / 3 January 2009 / 10 November 2012

I really want some kind of MAXIF formula! Is there an easy way to do
this, or will I have to crack out the VBA?

Thank you for your help! : )
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Wishing there was a 'maxif/minif' - your help appreciated!

Enter these formulas as arrays (Ctrl+Shift+Enter to confirm, should see curly
brackets around formula if done correct)
=MIN(IF(A2:A100="Company X",B2:B100)
=MAX(IF(A2:A100="Company X",B2:B100)

Adjust range sizes as appropriate.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


" wrote:

Hi!

I am trying to find earliest and latest contract expiry dates for a
large number of companies, each with many contracts!

Right now my data is in the format:

Company ID / Contract Expiry (with the data in separate columns, of
course)

There can be up to 10 contracts per company.
E.g.
Company X / 3 January 2009
Company X / 5 December 2011
Company X / 10 November 2012

I need to find the earliest and latest expiry dates, so the output
would look like
Company X / 3 January 2009 / 10 November 2012

I really want some kind of MAXIF formula! Is there an easy way to do
this, or will I have to crack out the VBA?

Thank you for your help! : )

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Wishing there was a 'maxif/minif' - your help appreciated!

Hi,

Assuming your companies are in column A and dates are in column B, then

=MIN((A1:A100="Company X")*(B1:B100))

entered as an array formula with Control-Shift-Enter should do the trick.
Replace MIN with MAX for the maximum. Format your result cells as a date it
comes up with a number.

You could also refernce "Company X" by a cell reference.

Dave


" wrote:

Hi!

I am trying to find earliest and latest contract expiry dates for a
large number of companies, each with many contracts!

Right now my data is in the format:

Company ID / Contract Expiry (with the data in separate columns, of
course)

There can be up to 10 contracts per company.
E.g.
Company X / 3 January 2009
Company X / 5 December 2011
Company X / 10 November 2012

I need to find the earliest and latest expiry dates, so the output
would look like
Company X / 3 January 2009 / 10 November 2012

I really want some kind of MAXIF formula! Is there an easy way to do
this, or will I have to crack out the VBA?

Thank you for your help! : )

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Wishing there was a 'maxif/minif' - your help appreciated!

Hi,
Sorry, I just realised that MIN behaves differently in array formulas.
The MAX formula should work, though the MIN should be replaced by

=MIN(IF(A1:A100="Company X",B1:B100,"") array entered.

Dave

"Dave Curtis" wrote:

Hi,

Assuming your companies are in column A and dates are in column B, then

=MIN((A1:A100="Company X")*(B1:B100))

entered as an array formula with Control-Shift-Enter should do the trick.
Replace MIN with MAX for the maximum. Format your result cells as a date it
comes up with a number.

You could also refernce "Company X" by a cell reference.

Dave


" wrote:

Hi!

I am trying to find earliest and latest contract expiry dates for a
large number of companies, each with many contracts!

Right now my data is in the format:

Company ID / Contract Expiry (with the data in separate columns, of
course)

There can be up to 10 contracts per company.
E.g.
Company X / 3 January 2009
Company X / 5 December 2011
Company X / 10 November 2012

I need to find the earliest and latest expiry dates, so the output
would look like
Company X / 3 January 2009 / 10 November 2012

I really want some kind of MAXIF formula! Is there an easy way to do
this, or will I have to crack out the VBA?

Thank you for your help! : )

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Wishing there was a 'maxif/minif' - your help appreciated!

Excel 2007 Pivot Table
Value Filter, Earliest/Latest Date
No formulas
http://www.mediafire.com/file/gzgy2mmg3ut/03_13_09.xlsx



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
Is there any funcion like a @maxif or @minif? Just Anna Excel Worksheet Functions 7 September 29th 08 06:37 PM
minif Andes2U Excel Worksheet Functions 5 November 5th 07 02:43 PM
MINIF ???? Jock Excel Worksheet Functions 4 June 21st 07 12:34 PM
Minif / Maxif ? Thrain Excel Worksheet Functions 3 December 1st 05 10:14 AM
MINIF /MAXIF Or something similar kraljb Excel Discussion (Misc queries) 6 November 11th 05 11:06 PM


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