Solved

text field  ms excel

Posted on 2014-11-13
5
67 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
  • 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
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 a scrolling table in Microsoft Excel using the INDEX function.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now