Duplicate Trapping

Justinian

Well-known Member
Joined
Aug 9, 2009
Messages
1,557
Office Version
  1. 365
Platform
  1. Windows
I have to list job numbers on a spreadsheet showing daily projects currently in progress. On another tab, I count in progress jobs and complete jobs. My problem is that job numbers may appear twice or more on a worksheet. For example, these job are in progress for today:

- 405a
- 406a
- 407a
- 408a

I use COUNTA to count all the jobs and total them on a dashboard so I have 4 jobs in progress today. If a job is still in progress tomorrow, it will appear again in the same worksheet, on another row, with "IP" in the cell next to it. Once the job is complete, there will be a date that appears in the "Date Completed" column. Let us assume that tomorrow, all jobs except 405a are complete. The worksheet now looks like this:

https://app.box.com/s/dfxsgar2yda9hjx83sqs007f8ed1nok8

Since only 1 unit is in progress and 3 are complete, I want the count on my dashboard to be 3 complete and 1 in progress. If I use COUNTA, it will count 8 units so that will not work. If I do COUNTIF on the "IP" jobs, that will not work because it will count 5 total "IP" jobs. I need formula to ignore the previous in progress statuses on that job. How do I write a formula that, in this scenario, gives me a total of 3 completed jobs and 1 in progress?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,223,908
Messages
6,175,306
Members
452,633
Latest member
DougMo

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