Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Lookup/Index 2 Criteria, find the result with furthest date

I Hhve the formula below that finds a date in Column I, that is "for sale"
and is in "Suburb"

=INDEX(I:I,MATCH(1,('Banner Sold (A:A="Suburb")*(B:B="For Sale"),0))

The problem I have is sometimes there might be two options that agree with
this, and I need to select the date that is the furthest away.

Any suggestions on how to do this would be great.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Lookup/Index 2 Criteria, find the result with furthest date

Try this array formula** :

=MAX(IF(A1:A100="Suburb",IF(B1:B100="For Sale",I1:I100)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"KimC" wrote in message
...
I Hhve the formula below that finds a date in Column I, that is "for sale"
and is in "Suburb"

=INDEX(I:I,MATCH(1,('Banner Sold (A:A="Suburb")*(B:B="For Sale"),0))

The problem I have is sometimes there might be two options that agree with
this, and I need to select the date that is the furthest away.

Any suggestions on how to do this would be great.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Lookup/Index 2 Criteria, find the result with furthest date

I did try this, and it did work - but not consistantly. This might help to
understand what i need

This is an example of the data i have:

Suburb Section Date
Suburb 1 For Sale 14/07/2009
Suburb 3 For Sale 13/05/2009
Suburb 2 For Sale 14/06/2010
Suburb 1 For Sale 14/03/2010
Suburb 3 For Sale 14/06/2010
Suburb 2 For Sale 13/05/2009
Suburb 1 For Sale 15/12/2010
Suburb 3 For Sale 14/09/2009

and this is the ideal results

For Sale
Suburb 1 15/12/2010
Suburb 2 14/06/2010
Suburb 3 14/06/2010

The section part does need to be taken in consideration as it will be
different at times.

Does this make more sense?

Cheers,
Kimberley

"T. Valko" wrote:

Try this array formula** :

=MAX(IF(A1:A100="Suburb",IF(B1:B100="For Sale",I1:I100)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"KimC" wrote in message
...
I Hhve the formula below that finds a date in Column I, that is "for sale"
and is in "Suburb"

=INDEX(I:I,MATCH(1,('Banner Sold (A:A="Suburb")*(B:B="For Sale"),0))

The problem I have is sometimes there might be two options that agree with
this, and I need to select the date that is the furthest away.

Any suggestions on how to do this would be great.



.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Lookup/Index 2 Criteria, find the result with furthest date

Just add another test for the section.

Still array entered:

=MAX(IF(A1:A100="Suburb",IF(B1:B100=1,IF(C1:C100=" For Sale",I1:I100)))

--
Biff
Microsoft Excel MVP


"KimC" wrote in message
...
I did try this, and it did work - but not consistantly. This might help to
understand what i need

This is an example of the data i have:

Suburb Section Date
Suburb 1 For Sale 14/07/2009
Suburb 3 For Sale 13/05/2009
Suburb 2 For Sale 14/06/2010
Suburb 1 For Sale 14/03/2010
Suburb 3 For Sale 14/06/2010
Suburb 2 For Sale 13/05/2009
Suburb 1 For Sale 15/12/2010
Suburb 3 For Sale 14/09/2009

and this is the ideal results

For Sale
Suburb 1 15/12/2010
Suburb 2 14/06/2010
Suburb 3 14/06/2010

The section part does need to be taken in consideration as it will be
different at times.

Does this make more sense?

Cheers,
Kimberley

"T. Valko" wrote:

Try this array formula** :

=MAX(IF(A1:A100="Suburb",IF(B1:B100="For Sale",I1:I100)))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"KimC" wrote in message
...
I Hhve the formula below that finds a date in Column I, that is "for
sale"
and is in "Suburb"

=INDEX(I:I,MATCH(1,('Banner Sold (A:A="Suburb")*(B:B="For Sale"),0))

The problem I have is sometimes there might be two options that agree
with
this, and I need to select the date that is the furthest away.

Any suggestions on how to do this would be great.



.



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
Index lookup with multiple match criteria Vance K[_2_] Excel Worksheet Functions 5 July 18th 09 07:08 AM
Four criteria MATCH INDEX lookup of date between matching two text John_J Excel Worksheet Functions 9 September 23rd 08 01:33 PM
Finding Nearest and Furthest Date carl Excel Worksheet Functions 4 August 20th 07 08:37 PM
Find 2nd, 3rd, etc Result with index/match BKO Excel Worksheet Functions 2 June 13th 07 02:00 PM
how do I deduct furthest south cell from furthest north cell? Ollie Excel Discussion (Misc queries) 3 September 29th 06 05:43 PM


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