Solved

unique filter

Posted on 2014-12-10
7
67 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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 45

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

762 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