Solved

unique filter

Posted on 2014-12-10
7
81 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 30

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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 47

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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 demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

734 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