Solved

text field  ms excel

Posted on 2014-11-13
5
72 Views
Last Modified: 2014-11-13
q:

I want the last 4 char of a date field in ms excel.

e.g. 1/1/2012  returns 2012.  or 01/1/2012 returns 2012.


restated I want to extract the year from my date field without code.

can anyone help

thanks!
0
Comment
Question by:brianpowell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
tomfarrar earned 500 total points
ID: 40440586
=year(A1).  A1 being the cell the date is in.
0
 
LVL 1

Author Comment

by:brianpowell
ID: 40440594
ill try it thanks... was thinking in terms of instr.....
0
 
LVL 1

Author Comment

by:brianpowell
ID: 40440607
what does the formatting for A1 need to be:  

bp
0
 
LVL 1

Author Closing Comment

by:brianpowell
ID: 40440609
thanks!
0
 
LVL 7

Expert Comment

by:tomfarrar
ID: 40440613
If the date is text =YEAR(DATEVALUE(A1))
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question