Solved

unique filter

Posted on 2014-12-10
7
71 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

948 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

23 Experts available now in Live!

Get 1:1 Help Now