#1   Report Post  
maryj
 
Posts: n/a
Default extract year

I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default extract year

=YEAR(date_cell)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"maryj" wrote in message
...
I have a date like this: 23/05/2005 15:59:43. I need a formula to extract

the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj



  #3   Report Post  
bpeltzer
 
Posts: n/a
Default extract year

Is the entry really a date or a string? If a date, then =year(a1) will get
the year. If a string, =MID(A1,FIND(" ",A1)-4,4).

"maryj" wrote:

I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj

  #4   Report Post  
Arvi Laanemets
 
Posts: n/a
Default extract year

Hi

with date in A1
=YEAR(A1)


--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"maryj" wrote in message
...
I have a date like this: 23/05/2005 15:59:43. I need a formula to extract
the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj



  #5   Report Post  
Peo Sjoblom
 
Posts: n/a
Default extract year

=YEAR(cell)


--

Regards,

Peo Sjoblom


"maryj" wrote in message
...
I have a date like this: 23/05/2005 15:59:43. I need a formula to extract

the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj





  #6   Report Post  
maryj
 
Posts: n/a
Default extract year

That did it! I was trying to do a search based on the /, didn't think of
using the space!!
--
maryj


"bpeltzer" wrote:

Is the entry really a date or a string? If a date, then =year(a1) will get
the year. If a string, =MID(A1,FIND(" ",A1)-4,4).

"maryj" wrote:

I have a date like this: 23/05/2005 15:59:43. I need a formula to extract the
year - I've been trying mid, right, etc, but just can't get it. Thanks!

maryj

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
Auto Year scale John Sawyer Charts and Charting in Excel 1 July 19th 05 03:18 AM
Trendline Extract Phil Hageman Charts and Charting in Excel 5 July 6th 05 02:27 AM
Extract Unique Values, Then Extract Again to Remove Suffixes Karl Burrows Excel Discussion (Misc queries) 23 June 25th 05 10:37 PM
How to compare current year to prior year in bar chart? substring Charts and Charting in Excel 4 May 12th 05 07:04 PM
Extract specific data into its own workbook via macro? Adrian B Excel Discussion (Misc queries) 2 February 24th 05 06:09 AM


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