Finding Unique Values Based on Dates

zalik22

Board Regular
Joined
Dec 14, 2010
Messages
111
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have some data, column A is text terms, and column F is 52 week ending dates. Is there a way to show only the unique values in column G? For example, if G1 is 1/8/24, G2 and below would only show the column A terms that are in 1/8/24 week ending but not in 1/1/24 week ending (i.e. new terms)?

Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
would
=UNIQUE(FILTER(A2:A6,F2:F6=G1))
work for you

Book5
ABCDEFG
11/1/24
2a1/1/24a
3b2/1/23b
4c3/1/23
5a1/1/24
6b1/1/24
Sheet1
Cell Formulas
RangeFormula
G2:G3G2=UNIQUE(FILTER(A2:A6,F2:F6=G1))
Dynamic array formulas.
 
Upvote 0
Hi,

Sorry, I think it would have to compare 1/8/24 to 1/1/24 and see the "new" unique values. So if 1/1/24 and 1/8/24 had values of "a", "a" would not be included in column G, since it was there in 1/1/24. If "b" was not in week ending 1/1/24 but in week ending 1/8/24, then "b" would be in column G. Thanks!
 
Upvote 0
how about
=UNIQUE(FILTER(A2:A6,(F2:F6>=G1)*(F2:F6<=G1+7)))

Book5
ABCDEFG
11/1/24
2a1/1/24a
3a1/8/23
4c3/1/23
5a1/5/24
6a1/1/24
Sheet1
Cell Formulas
RangeFormula
G2G2=UNIQUE(FILTER(A2:A6,(F2:F6>=G1)*(F2:F6<=G1+7)))
 
Upvote 0
how about
=UNIQUE(FILTER(A2:A6,(F2:F6>=G1)*(F2:F6<=G1+7)))

Book5
ABCDEFG
11/1/24
2a1/1/24a
3a1/8/23
4c3/1/23
5a1/5/24
6a1/1/24
Sheet1
Cell Formulas
RangeFormula
G2G2=UNIQUE(FILTER(A2:A6,(F2:F6>=G1)*(F2:F6<=G1+7)))

Thanks, this appears to give me unique values but not "new" ones. For example below, formula should only return "system" because it is in 1/8/24 but not 1/1/24.
wordingdate
test1/1/24
test1/8/24
system1/8/24
fail1/1/24
 
Upvote 0
working for me

Book5
ABCDEFG
1wordingdate1/1/24
2test1/1/24test
3test1/8/24system
4system1/8/24fail
5fail1/1/24
Sheet2
Cell Formulas
RangeFormula
G2:G4G2=UNIQUE(FILTER(A2:A6,(F2:F6>=G1)*(F2:F6<=G1+7)))
Dynamic array formulas.
 
Upvote 0
Hi, I only want "system" to show up. I am getting test, system, and fail. "system" is in 1/8/24 but not in 1/1/24.
 
Upvote 0
i dont understand then what you are after - WHY only system, since the other items are in the list for 1/1/24 to 8/1/24
 
Upvote 0
My take on this
Excel Formula:
=FILTER(A2:A100,(F2:F100=G1)*(COUNTIFS(F:F,"<"&G1,A:A,A2:A100)=0))
 
Upvote 0
i dont understand then what you are after - WHY only system, since the other items are in the list for 1/1/24 to 8/1/24
Sorry for the confusion. I am looking for ONLY new values compared to the previous week. So for 1/8/24, there are 2 terms, "test" and "system". "test" is in the previous week of 1/1/24, so I don't want that to display in column G. I am looking for the formula to output "system" because it is in 1/8/24 but not in 1/1/24.
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top