Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to specific the cell format?

Does anyone know how to do it in excel?
In cell A1, if text within this cell is "Daily", then the cell B1 will show
the date in this format "18-Jan". If cell A1, if text within this cell is
"Monthly", then teh cell B1 will show the date in this format "Jan-07"
Does anyone have any suggestion?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default How to specific the cell format?

One way:

=TEXT(TODAY(), IF(A1="Daily", "dd-mmm", IF(A1="Monthly", "mmm-yy",
"dd mmm yyyy")))



In article ,
Eric wrote:

Does anyone know how to do it in excel?
In cell A1, if text within this cell is "Daily", then the cell B1 will show
the date in this format "18-Jan". If cell A1, if text within this cell is
"Monthly", then teh cell B1 will show the date in this format "Jan-07"
Does anyone have any suggestion?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default Thank you for your suggestion

Thank you very much
Eric
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Thank you for your suggestion

=TEXT(TODAY(),IF(A2="Daily","dd-mm","mm-yy"))

try this too.

On Jan 18, 2:51 pm, Eric wrote:
Thank you very much
Eric


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
linking a cell with a specific letter value to a cell with a formu tommo64 Excel Worksheet Functions 4 April 3rd 06 10:44 AM
Format of a cell profG Excel Discussion (Misc queries) 1 January 16th 06 03:02 PM
Format cell to accept only specific character-reject others aetzkin Excel Discussion (Misc queries) 2 December 27th 05 05:03 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
can't format cell - have tried unlocking and unprotecting griffin Excel Discussion (Misc queries) 1 April 5th 05 02:11 AM


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