propilot81

New Member
Joined
Apr 12, 2013
Messages
4
I have a data set where I am trying to create a formula for each work order that does not have a specific task ("Task 5" Below Table) within the work order based on specific customers that must have this task with their work. There will be customers that do not apply and will not need this task performed. I am trying to create the formula in column D.
As seen in the example below, customer A1111 must have Task 5 in their work order. In work order 111111, Task 5 is present and work order is OK, however, in work order 333333 Task 5 is not present for customer A1111 and needs to be flagged "Need Task 5." Customer B1111 is a customer that does not apply.


Column AColumn BColumn CColumn D
TaskWork OrderCustomer #Exceptions
Task 5

<tbody>
</tbody>
111111A1111Ok
Task 1

<tbody>
</tbody>
111111A1111Ok
Task 2111111A1111Ok
Task 1222222B1111Not Applicable
Task 2222222B1111Not Applicable
Task 1333333C1111Need Task 5
Task 2333333C1111Need Task 5

<tbody>
</tbody>
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
do you mean
however, in work order 333333 Task 5 is not present for customer A1111
should that read Customer C1111 ?
How would excel know that B1111 does not apply

you could use a countIFS()

in column D
 
Upvote 0
=COUNTIFS(C:C,C2,B:B,B2,A:A,"task 5")
and copy down
That can be combined with an IF()

=IF(COUNTIFS(C:C,C2,B:B,B2,A:A,"task 5"),"OK","Need Task 5")
BUT , i dont know how to identify Not Applicable
 
Upvote 0
Wayne,

My apologies, customer should read A1111 for work order 333333. This customer needs "Task 5" on any work order created.
 
Upvote 0
so not C1111
It will still work

but how does excel know "Not Applicable"
 
Upvote 0
so not C1111
It will still work

but how does excel know "Not Applicable"


That's one challenge I am trying to figure out. The majority of the customer's will be "Not Applicable," so maybe an if statement would help. There are only a handful of customers that need to have "Task 5" with each new work order generated under their customer number.
 
Upvote 0
That's one challenge I am trying to figure out. The majority of the customer's will be "Not Applicable," so maybe an if statement would help. There are only a handful of customers that need to have "Task 5" with each new work order generated under their customer number.

Wayne,

I made a couple of changes to the formula and set up the customers with a "Task 5" requirement in a separate table in column "I". This formula is working. Thanks for all the help!

=IF(ISERROR(MATCH(C2,I:I,0)),"Not Applicable",IF(COUNTIFS(C:C,IF(MATCH(C2,I:I,0)>=1,C2),B:B,B2,A:A,"task 5"),"OK","Need Task 5"))
 
Upvote 0

Forum statistics

Threads
1,213,551
Messages
6,114,267
Members
448,558
Latest member
aivin

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