?
Solved

Choose Year

Posted on 2014-01-24
2
Medium Priority
?
236 Views
Last Modified: 2014-01-24
Hi,

In the attached ss can you look at tab "Sales" and column L

I am trying to pick the year from Column A

Can i use a choose formula like i did in Column I?

Many thanks
Seamus
The-howl-sales.xlsx
0
Comment
Question by:Seamus2626
[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
2 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 2000 total points
ID: 39807032
Hi Seamus,

You can use CHOOSE in column L like you do column I, but I don't know what you'd get out of it. You'd have to subtract the year below the smallest year, so the first year would result in a 1. For example, to make the years use the last two digits in word format, you could use
=CHOOSE(YEAR(A2)-2011,"Twelve","Thirteen","Fourteen")
But I don't know why you'd ever want to do that.

For column L just use =YEAR(A2) and put the number format as General. Then your autofilter can easily filter by year.

Matt

EDIT: Brief explanation of choose. CHOOSE uses a numeric result between 1 and 254 to return a result. So if A2 had a number between 1 and 254, you could use
=CHOOSE(A2,"result if one","result if two","result if three",etc). That is why you use it for column I, because the WEEKDAY formula returns 1-7.
0
 

Author Closing Comment

by:Seamus2626
ID: 39807041
Perfect Matt,

For column L just use =YEAR(A2) and put the number format as General. Then your autofilter can easily filter by year.

Is what i was looking for

Thanks!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

752 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