Check if duplicate projects with dates exist

dubyarly

New Member
Joined
Nov 12, 2015
Messages
44
Hi, I have a spreadsheet which tracks various projects and tasks within the project. I currently have a formula to provide a count of projects so that multiple tasks with the same project number are not counted twice. However, I need to modify this to check that the dates also match, else it should be given its own project score.

The below works as long as the spreadsheet is sorted by project number, but can throw off the count if sorted by different columns:

Code:
=IF(AND([@[NEXEvent.Site Outage: Project ID]]=F1,[@[NEXEvent.Outage Start Date]]=A1,[@[NEXEvent.Outage End Date]]=B1),0,1)

The next attempt accurately counts the duplicate projects, but I'm not sure how to add the start and end date checks to the same line the duplicate projects are found on:

Code:
=IF(COUNTIF(Table1[[#Headers],[NEXEvent.Site Outage: Project ID]]:[@[NEXEvent.Site Outage: Project ID]], [@[NEXEvent.Site Outage: Project ID]])>1,0,1)

I'd rather keep this to column formulas, can it be done without VBA?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Can you post some dummy data to use as some working material? Please use the xl2bb add in (Link below) or post as a table, please.
Also, give a scenario with an expected result.

Thanks in advance.
 
Upvote 0
Parameters for this assignment have been changed, we won't actually be worried about the dates and I can do this with a simple countif formula. Not sure if this thread should be marked as solved, but it's no longer needed. Thanks for your response @awoohaw
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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