Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Find top date for unique fields

In column A are the names of the cities. In column B are the dates of all of
the events for that city. Here's what I would like to do:

In column C put the earliest date for the unique city
In column D put the latest date for the unique city

So if in column A, Houston is listed 5 times with date ranges from 1/1/2007,
2/1/2007, 3/1/2007, 4/1/2007 and 5/1/2007. In column C, I want 1/1/2007 and
in column D I want 5/1/2007.

There will be multiple cities, so then if there is another city Los Angeles,
then the earliest and latest date should be shown for that also.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Find top date for unique fields

=MAX(IF($A$1:$A$100=A1,$B$1:$B$100))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

And

=MIN(IF($A$1:$A$100=A1,$B$1:$B$100))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"jhicsupt" wrote in message
...
In column A are the names of the cities. In column B are the dates of all
of
the events for that city. Here's what I would like to do:

In column C put the earliest date for the unique city
In column D put the latest date for the unique city

So if in column A, Houston is listed 5 times with date ranges from
1/1/2007,
2/1/2007, 3/1/2007, 4/1/2007 and 5/1/2007. In column C, I want 1/1/2007
and
in column D I want 5/1/2007.

There will be multiple cities, so then if there is another city Los
Angeles,
then the earliest and latest date should be shown for that also.

Thanks in advance.



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
Find Unique Sean Timmons Excel Discussion (Misc queries) 6 December 26th 06 11:27 PM
Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS! PSSSD Excel Worksheet Functions 2 August 8th 06 09:31 PM
Vlookup for non-unique fields EdwardG Excel Discussion (Misc queries) 0 May 13th 06 09:17 AM
code not unique find latest date Barbara Wiseman Excel Discussion (Misc queries) 3 December 11th 05 08:50 AM
Return unique fields only - but not a filter? Matt Excel Worksheet Functions 7 October 20th 05 12:12 AM


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