Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Deb Deb is offline
external usenet poster
 
Posts: 12
Default 15th of prior month

How do I display the 15th of the prior month?

A1 = 09-05-07
B1 = display 08-15-07

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 15th of prior month

=DATE(YEAR(A1),MONTH(A1)-1,15)
--
Gary's Student
gsnu200704


"Deb" wrote:

How do I display the 15th of the prior month?

A1 = 09-05-07
B1 = display 08-15-07


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default 15th of prior month

=((DATE(YEAR(A1),MONTH(A1),1))-31)+14

there must be a better way but it's all I could think of

"Deb" wrote:

How do I display the 15th of the prior month?

A1 = 09-05-07
B1 = display 08-15-07


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default 15th of prior month

On 6 Feb 2007 12:10:52 -0800, "Deb" wrote:

How do I display the 15th of the prior month?

A1 = 09-05-07
B1 = display 08-15-07


A bit different way:

=A1-DAY(A1)-DAY(A1-DAY(A1))+15


--ron
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
Formatting for 15th and last day of the month Emilio Guerra Excel Worksheet Functions 2 April 29th 23 07:41 PM
Excel User Conference - Last days for regular registration - Mar 15th Damon Longworth Excel Discussion (Misc queries) 0 March 10th 06 12:29 PM
Extra 1 showing up in 15th decimal place nsc Excel Discussion (Misc queries) 5 December 16th 05 12:57 PM
excel changing after 15th digit the numbers into zero's alex Excel Discussion (Misc queries) 2 August 4th 05 01:11 AM
Set the serial number every 15th column SJ Excel Discussion (Misc queries) 2 February 23rd 05 01:39 AM


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