Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default Minimum date per month

Hello all,

I just can not wrap my head around this.

Imagine this:

A list of prices for 10 products on certain dates (for every date, the price
for each of the 10 products is listed).
Column A = Product
Column B = Date
Column C = Price

In some months, prices are checked only once........in other months, prices
are checked twice.

In column D, I want a formula to list the earliest date in that month that
shows up in the whole list (unsorted list preferred).

Example:

using the dates:
1/5/2007
2/4/2007
3/6/2007
3/4/2007

would return:
1/5/2007 1/5/2007
2/4/2007 2/4/2007
3/6/2007 3/4/2007
3/4/2007 3/4/2007

For those who know SQL, I would do this in SQL to get the results I'm
looking for:

SELECT Min([Date]) as MinDate
FROM [SomeTable]
GROUP BY Year([Date]), Month([Date])

Then I would use the results from this to join back to [SomeTable] to either
look up or limit my results from [SomeTable].


Thanks for any help anyone can provide,

Conan Kelly


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
Minimum Date Greater Than Observation Start Date vito Excel Discussion (Misc queries) 2 August 14th 07 03:02 PM
Date arithmetic: adding 1 month to prior end of month date manxman Excel Worksheet Functions 2 July 14th 06 09:29 PM
Sort month/date/year data using month and date only SMW820 Excel Discussion (Misc queries) 6 June 22nd 06 05:14 PM
=VLOOKUP(1,Nationality!B5:B29,IF(MONTH(date)6,MONTH(date)-6, MON Ali Excel Worksheet Functions 14 January 18th 06 08:20 AM
Minimum date greater than a specific date. Joker Excel Discussion (Misc queries) 3 January 11th 06 12:56 PM


All times are GMT +1. The time now is 12:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"