Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default last day of the month in a range

Hi barkiny

Much better this solution from Bob Phillips

Assuming that the dates are in A1:A200, add this formula to B1

=IF(MAX(IF((MONTH($A$1:$A$200)=ROW(A1))*($A$1:$A$2 00<""),$A$1:$A$200))=0,"",MAX(IF((MONTH($A$1:$A$2 00)=ROW(A1))*($A$1:$A$200<""),$A$1:$A$200)))

It is an array formula, so it needs to be committed with Ctrl-Shift-Enter.
You will see the formula in the formula bar surrounded by {...}, which are
inserted by Excel. Then copy B1 down to B12.

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Ron de Bruin" wrote in message ...
Mmmmm

I have a solution but I think it is not very good
I send a mail to a friend that have more knowledge then I about this.

I hope he reply


--
Regards Ron de Bruin
http://www.rondebruin.nl


"barkiny" wrote in message
...

yes
for each motnth

it will return

01/25/2004 in cell A1 and 16/03/2004 in cell A2


--
barkiny
------------------------------------------------------------------------
barkiny's Profile: http://www.excelforum.com/member.php...o&userid=20397
View this thread: http://www.excelforum.com/showthread...hreadid=490715





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
SUM a range of sales based on month Manos Excel Worksheet Functions 9 May 8th 06 10:30 AM
1st Monday of a month in date range?? scwilly Excel Worksheet Functions 22 April 26th 06 04:49 AM
How do I break a date range by month? HeatherDawn Excel Discussion (Misc queries) 2 September 1st 05 07:31 PM
How do you sort a date range by month? Brewisc13 Excel Discussion (Misc queries) 13 July 7th 05 06:45 PM
Sm Product a Calendar Month Range? John Excel Worksheet Functions 3 January 3rd 05 08:07 PM


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