Solved

unique filter

Posted on 2014-12-10
7
74 Views
Last Modified: 2015-01-15
i just import some dates and would like to perform a unique filter on the dates by month and then by year .
thanks
unique-flter.xlsb
0
Comment
Question by:Svgmassive
7 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 125 total points
ID: 40493078
If you are looking for a formula, this will do it
for first one

=IFERROR(INDEX(YEAR($A$4:$A$315),MATCH(0,COUNTIF($O$6:O6,YEAR($A$4:$A$315)),0)),"")

and for second one,

=IFERROR(INDEX(TEXT($D$4:$D$315,"mmmm-yyyy"),MATCH(0,COUNTIF($Q$6:Q6,TEXT($D$4:$D$315,"mmmm-yyyy")),0)),"")

Kris
0
 
LVL 29

Assisted Solution

by:gowflow
gowflow earned 125 total points
ID: 40493308
ok first of all you need here an Array formula which is a formula that is represented by { .... } and this is achieved when the formula is in the cell to save it you press CTRL SHIFT then while holding then you press ENTER.

Second we cannot get the formula directly from Column A and D as already these columns although shows a Year and Month Year they are in fact a formatted cell underneath which the real value is a date. So if we apply on these 2 columns a formula to get unique values we will get the unique 'date values' that are not necessary what your looking for we will get several 2012 ..... several 2013 etc... which presume this is not what you want.

In order to achieve what you want we need to create real values and not formatted values on which we will apply the unique formula. I have created in the attached file real values of Column A and D which are in Column F and G in Yellow. As you can see now the values are not date but text.

Now in Column I and J respectively in Row1  we put the following formula

Cell I1 put this formula:
=INDEX($F$1:$F$400,SMALL(IF($F$1:$F$400="",ROWS($F$1:$F$400),IF(MATCH($F$1:$F$400,$F$1:$F$400,0)=ROW($F$1:$F$400),ROW($F$1:$F$400),ROWS($F$1:$F$400))),ROW()))
then Press on CTRL and SHIFT and while pressing on them click on ENTER you will then see that the formula has 2 brackets. Now drag this formula down until you get Zeroes.

Cell J1 put this formula:
=INDEX($G$1:$G$400,SMALL(IF($G$1:$G$400="",ROWS($G$1:$G$400),IF(MATCH($G$1:$G$400,$G$1:$G$400,0)=ROW($G$1:$G$400),ROW($G$1:$G$400),ROWS($G$1:$G$400))),ROW()))
then Press on CTRL and SHIFT and while pressing on them click on ENTER you will then see that the formula has 2 brackets. Now drag this formula down until you get Zeroes.

Pls check the attach file.
Regards

gowflow
unique-flter-V01.xlsb
0
 
LVL 18

Expert Comment

by:krishnakrkc
ID: 40493545
BTW, my formulas to be entered in O7 and Q7 respectively. Adjust the O6 and the Q6 part if you want to put this formulas in different cells. Also it's an array formula. Entered with CTRL+SHIFT+ENTER

Kris
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 5

Assisted Solution

by:Hakan Yılmaz
Hakan Yılmaz earned 250 total points
ID: 40493706
If you just want to see what unique values in a list; you can use "Remove Duplicates" in the "Data" tab.

You may look here for more information about filtering unique values or removing duplicate values.
0
 
LVL 5

Assisted Solution

by:Hakan Yılmaz
Hakan Yılmaz earned 250 total points
ID: 40493751
For your case, you can use TEXT function to get the same formatting of a value as text.
After that you can paste values to get all your formatted values as text.
Then you can remove duplicate values or filter unique values to another place.

1 - Get your format string from format cells dialog.
Cell format string2 - Use TEXT function to get your values as text.
TEXT function3 - Copy and Paste as Values

4 - Advanced filter to get unique values.
AdvancedFilter1AdvancedFilter2
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40550838
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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;…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

813 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