Only return a 1 if multiple criterias are met. If not return 0

Status
Not open for further replies.

Squirl28

New Member
Joined
Sep 22, 2016
Messages
27
Hi,
I’m stumped and need help. I have a file with thousands of entries and I’m trying to add 3 columns that count the first instance of a word in that specific range. It will check for “notable”, “minor”, “test”.

Column B will have ticket numbers (many of them are duplicates ticket numbers but for different clients), column F will have notable, minor and test. which many of them are duplicates. I only want to count the first instance of each word based on the ticket (notable, minor and test). The below works great for doing just that. However, the problem is that in some cases one client may count it as minor where another counts it as notable. In that scenario I only want notable to be counted, as that takes priority and don’t want to count both. If they don’t both show up for that ticket number they should be counted independently like below.

=IF($F2=”Notable”,IF(Countifs($B2:B2,B2,$F$2:F2,”Notable”)=1,1,0),0)

=IF($F2=”Minor”,IF(Countifs($B2:B2,B2,$F$2:F2,”Minor”)=1,1,0),0)

=IF($F2=”Test”,IF(Countifs($B2:B2,B2,$F$2:F2,”Test”)=1,1,0),0)

4th column is a sum of those theee columns to get me a total.

https://www.dropbox.com/s/373d3s8lhbyiedl/Copy of Notable vs minor.gsheet?dl=0
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I couldn't get your sheet to open. However, answers given here may or may not be compatible with Google Sheets, as this is an Excel forum.
 
Last edited:
Upvote 0
Yes, I realized after I posted the new thread that I could go back into the thread and get help from someone that was familiar with request. I’m open to anyone helping, just thought it would be easier.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,213,556
Messages
6,114,284
Members
448,562
Latest member
Flashbond

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