Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 128
Default Show a date based on another date

In cell A129, I have a date value.
In cell B129, I'd like to be able to show the date (in "mmm-yy" format) of
the previous June.

For example:
If A129 shows Aug-08, I'd like B129 to show Jun-08.
If A129 shows Apr-09, I'd like B129 to show Jun-08.
If A129 shows Jul-09, I'd like B129 to show Jun-09.

However, if A129 shows Jun-09, I'd like B129 to show Jun-09.

I'm trying to establish the start and end dates for the financial YTD and
the month provided.

I hope that makes sense. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Show a date based on another date

If A129 holds a real date (no matter how formatted):
In B129 use =DATE(YEAR(A129)-1,6,1) to get June 1 of previous year

Not sure I understand the rule you are using but to incorporate an IF use
something like
=IF(MONTH(A129)=6, what-you-want-when-month-is-June,
what-you-want-otherwise)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Sarah (OGI)" wrote in message
...
In cell A129, I have a date value.
In cell B129, I'd like to be able to show the date (in "mmm-yy" format) of
the previous June.

For example:
If A129 shows Aug-08, I'd like B129 to show Jun-08.
If A129 shows Apr-09, I'd like B129 to show Jun-08.
If A129 shows Jul-09, I'd like B129 to show Jun-09.

However, if A129 shows Jun-09, I'd like B129 to show Jun-09.

I'm trying to establish the start and end dates for the financial YTD and
the month provided.

I hope that makes sense. Any ideas?



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
How to show date in H2 based on date in I2 minus set number of day jt24 Excel Discussion (Misc queries) 2 January 9th 08 12:37 PM
Date subtraction -How to not show negative when 2nd date not entered Edward[_2_] New Users to Excel 2 September 27th 07 03:03 PM
Show a date based on today DJ Dusty Excel Worksheet Functions 2 November 12th 04 03:20 AM
Show a date based on today DJ Dusty Excel Worksheet Functions 0 November 11th 04 10:32 PM
Show a date based on today DJ Dusty Excel Worksheet Functions 1 November 11th 04 10:28 PM


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