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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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