Unique contract number

okvals48

New Member
Joined
Sep 27, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hi,

I would need in column F (Initial) only to see yes for the contracts that appear first time in current year in this case it is 2022. Contracts can originate in prior year or even year before, and they can be still active in current period
So basically I only search for unique contract number that have originated in current year, because of that it is possible that I get mark YES for contracts that were unique in last year, and that is something I would like to avoid.

Book1.xlsx
CDEFG
12022
2
3
4ContractYearAmountInitialCHECK
58582/092022200NONO
68582/102022201NONO
78582/112022202NONO
88582/122022203NONO
98582/132022204NONO
108582/142022205NONO
118582/152022206NONO
128582/162022207NONO
138582/172022208NONO
148582/182022209NONO
158582/192022210NONO
168582/202022211NONO
178582/212022212NONO
188582/222022213NONO
198582/232022214NONO
208582/242022215NONO
218582/252022216NONO
228582/262022217YESYES
238582/272022218YESYES
248582/282022219YESYES
258582/292022220YESYES
268582/302022221YESYES
278582/312022222YESYES
288582/322022223YESYES
298582/332022224YESYES
308582/342022225YESYES
318582/352022226YESYES
328582/092021100NONO
338582/102021101NONO
348582/112021102NONO
358582/122021103NONO
368582/132021104NONO
378582/142021105NONO
388582/152021106NONO
398582/162021107NONO
408582/172021108NONO
418582/182021109NONO
428582/192021110NONO
438582/202021111NONO
448582/212021112NONO
458582/222021113NONO
468582/232021114NONO
478582/242021115NONO
488582/252021116NONO
498582/082021117YESNO
Sheet1
Cell Formulas
RangeFormula
F5:F49F5=+IF(COUNTIF($C$5:$C$49,$C5:C5)=1,"YES",IF(D5>$D$1,"YES","NO"))
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
How about
Excel Formula:
=IF(AND(COUNTIF($C$5:$C$49,$C5)=1,D5=D$1),"YES","NO")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,603
Members
449,089
Latest member
Motoracer88

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