Solved

Choose Year

Posted on 2014-01-24
2
232 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
2 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
combine fist two words in a cell 2 24
assignment of laptops - risks 6 49
Need help with Clear Macro 4 25
Excel VBA 30 39
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

860 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