LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Need formula or Macro Help

Here is a crude solution:

If the date was entered as text in D5 in the format YY-MM-DD, the following
formula in another cell will return the result you want:

=LEFT(D5,3)&CHOOSE(MID(D5,4,2),"I","I","I","II","I I","II","III","III","III","IV","IV","IV")&RIGHT(D5 ,6)

This is all one formula. It may wrap in my reply because of its length.

Hope this helps,

Hutch

"Atomic" wrote:

Would appreciate if someone can help me create a (Macro or Formula) that would.

Below when I enter:
07-01-01, 07-04-01, 07-07-01 or 07-10-01

Turn into below:
07-I-01-01, 07-II-04-01, 07-III-07-01 or 07-IV-10-01
(The year needs to be flexible since I must use this for the years to come
like 2008-2020, something like that)

Something where the quarters should result automatically to the month of
each Quarter.

The quarters begins: 01-Jan-Mar, 02-Apr-Jun, 03-Jul-Sep, 04-Oct-Dec


 
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
Macro Formula for Max value El Bee Excel Worksheet Functions 4 December 8th 06 04:08 PM
Macro or Formula? A.S. Excel Discussion (Misc queries) 1 September 20th 06 05:26 PM
Do I need a formula or Macro? Sharen Excel Worksheet Functions 2 July 10th 05 05:27 PM
how to run a macro from a formula? davidhub Excel Discussion (Misc queries) 2 July 5th 05 02:42 PM
Macro - formula for end of last row Gary Brown Excel Worksheet Functions 1 June 1st 05 12:02 AM


All times are GMT +1. The time now is 05:52 AM.

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"