PC Review


Reply
Thread Tools Rate Thread

Displaying Dates

 
 
Khalil Handal
Guest
Posts: n/a
 
      17th Feb 2007
Hi to all,
Sheet1 has a value in cell G14 represent the years of a date
I want to copy it to sheet3 in th same location G14 but only to display 2
digits (1993 will show as 93) and 2007 will show 07 and 2000 will show 00)

G14 in sheet3 will show nothing if no value is entered in G14 in sheet1

Thanks


 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      17th Feb 2007
In Sheet3's G14:
=IF(Sheet1!G14="","",TEXT(RIGHT(Sheet1!G14,2)+0,"00"))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Khalil Handal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi to all,
> Sheet1 has a value in cell G14 represent the years of a date
> I want to copy it to sheet3 in th same location G14 but only to display 2
> digits (1993 will show as 93) and 2007 will show 07 and 2000 will show 00)
>
> G14 in sheet3 will show nothing if no value is entered in G14 in sheet1
>
> Thanks
>
>



 
Reply With Quote
 
MartinW
Guest
Posts: n/a
 
      17th Feb 2007
Hi Khalil,

If your input in sheet one is numeric then
=IF(Sheet1!G14="","",RIGHT(Sheet1!G14,2))

If your input in sheet one is date then
=IF(Sheet1!G14="","",RIGHT(YEAR(Sheet1!G14),2))

HTH
Martin


 
Reply With Quote
 
Khalil Handal
Guest
Posts: n/a
 
      17th Feb 2007
Note: Sheet1 containes only numbers: 1992 , 2000 ...
Thanks to both of you. It worked well.
Khalil


"MartinW" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Khalil,
>
> If your input in sheet one is numeric then
> =IF(Sheet1!G14="","",RIGHT(Sheet1!G14,2))
>
> If your input in sheet one is date then
> =IF(Sheet1!G14="","",RIGHT(YEAR(Sheet1!G14),2))
>
> HTH
> Martin
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dates from DB2 displaying as 12:00:00 AM Tiana Arylle Microsoft Access External Data 3 10th Mar 2010 02:36 PM
Displaying Dates =?Utf-8?B?bmJvaGFuYQ==?= Microsoft C# .NET 5 26th Oct 2005 10:49 PM
Displaying Dates =?Utf-8?B?Um9i?= Microsoft Excel Charting 1 26th Jul 2005 12:57 PM
Displaying dates Chumley the Walrus Microsoft Dot NET 1 25th Jun 2004 08:04 AM
Displaying Dates Lin Microsoft Access Security 0 13th Nov 2003 03:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:22 AM.