List all the unique events for a month in excel (array formula)
Question:
I have a table with four columns, Date, Name, Level, and outcome. The range is from row 3 to row 1000.
What I need to be able to do is look at today's date. Determine the month and year and then look up all the values in the date column that match the month and year. I've been trying to get it to work with sumproduct but I can't wrap my head around it.
Then on a separate tab list all the unique events for that month.
So one the seperate tab it would show something like this:
May 2/2010 Bob Smith 3 Requires Attention
May 5/2010 Jim Smith 1 Out of Service
Hope you are able to help. Thanks in advance.
Answer:
Match year and month
Array formula in A15:
Copy cell and paste it to the right to D15. Copy A15:D15 and paste it down as far as needed.
List all the unique events for that month
Array formula in A24:
Copy cell and paste it to the right to D24. Copy A24:D24 and paste it down as far as needed.
Download excel example file.
list all the unique events for a specific month.xls
(Excel 97-2003 Workbook *.xls)
Functions in this article:
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range
SMALL(array,k) Returns the k-th smallest row number in this data set.
MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value
MIN(number1,[number2])
Returns the smallest number in a set of values. Ignores logical values and text
ROW(reference) returns the rownumber of a reference
COLUMN(reference)
returns the column number of a reference
TEXT(value, format_text)
Converts a value to text in a specific number format
Related blog posts
- Unique distinct list from a column sorted A to Z using array formula in excel
- Create unique distinct year and months from a long date listing in excel
- Extract a unique distinct list from two columns using excel 2007 array formula
- Create unique distinct list sorted based on text length using array formula in excel
- Remove duplicates within same month or year in excel







Leave a Reply