ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   extract year (https://www.excelbanter.com/excel-worksheet-functions/55021-extract-year.html)

maryj

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

Bob Phillips

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




bpeltzer

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


Arvi Laanemets

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




Peo Sjoblom

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




maryj

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



All times are GMT +1. The time now is 12:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com