?
Solved

Choose Year

Posted on 2014-01-24
2
Medium Priority
?
239 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 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

Technology Partners: 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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

850 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