Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Days360 Formula in VBA error

I need to write a macro which looks at a column of dates, takes the Minimum
date (earliest) and the maximum date(latest) and figure out how many weeks
have passed between the two. I recorded a macro, but that limits me by
forcing me to select the exact cells. It is fine on one set of data but I
need to use this over and over with a variable number of data rows. Any
suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Days360 Formula in VBA error

No macro needed

With the dates in Column B:

=(MAX(B:B)-MIN(B:B))/7

Decide how you'd like to round

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Brian A" wrote in message ...
|I need to write a macro which looks at a column of dates, takes the Minimum
| date (earliest) and the maximum date(latest) and figure out how many weeks
| have passed between the two. I recorded a macro, but that limits me by
| forcing me to select the exact cells. It is fine on one set of data but I
| need to use this over and over with a variable number of data rows. Any
| suggestions?


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
Entering Days360 in Table formula Bob Arnett Excel Discussion (Misc queries) 2 October 15th 09 09:02 PM
days360 keng Excel Discussion (Misc queries) 3 March 19th 08 05:33 PM
DAYS360 Candentco Creative Collection[_2_] Excel Worksheet Functions 4 April 12th 07 09:48 PM
DAYS360 Trouvera52 Excel Worksheet Functions 1 January 2nd 07 06:25 PM
DAYS360 Jan Buckley Excel Worksheet Functions 3 July 21st 05 10:44 PM


All times are GMT +1. The time now is 04:45 PM.

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"