Find all that have only one type of value

Patty3-4

New Member
Joined
Feb 5, 2013
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Good morning, I'm trying to write a countifs formula that will identify all IDNUM2 (I.D. numbers) that have a specific value, if another column has a specific value.

In the attached spreadsheet there are several IDNUM2's (columnB). I want to identify those that have ONLY watermelons (FRUIT columnC) in wood (TYPE columnD). In the example there is only 2 that meet the criteria. IDNUM2's could have numerous rows.

So far I get a circular reference warning. Any help would be greatly appreciated.
IDNUM1IDNUM2FRUITTYPE
592​
1KWATERMELONCARDBOARD
234​
5SGUAVAWOOD
234​
5SPEACHESCARDBOARD
234​
5SAPPLESCARDBOARD
345​
6APEACHESCARDBOARD
587​
3BWATERMELONWOOD
587​
3BWATERMELONWOOD
245​
9FHONEYDEWWOOD
245​
9FJACKFRUITCARDBOARD
789​
7CWATERMELONWOOD
789​
7CWATERMELONCARDBOARD
801​
9EBLUEBERRIESCARDBOARD
801​
9EWATERMELONWOOD
402​
5AWATERMELONWOOD
604​
4PWATERMELONWOOD
604​
4PJACKFRUITCARDBOARD
 
My mistake Fluff! I must've typed it wrong. I copied yours exact then added the IF statement as etaf suggested - it found them!! Thank you!! Could i leave the range open ended to an entire column instead of stating it will only by 100 rows?
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
That formula is for conditional formatting to highlight the rows that match your criteria.
If that is not what you want, then what do you want?

Also what version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
yes, i'll update my version now (Excel 2016), it's been a while since i've been on. Thank you very much for your help, both of you. This will help immensely!
 
Upvote 0
Could i leave the range open ended to an entire column
You could, but I would advise against as it will slow your workbook down. You would be better off using a realistic range that is larger than you data, but not by too much
 
Upvote 0
You could, but I would advise against as it will slow your workbook down. You would be better off using a realistic range that is larger than you data, but not by too much
sounds good, i'll do that. Thank you! so exciting!!! we get this question a lot - not about fruit lol - but how many are present with only "this" - oh! fantastic!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Oh , i think i see now that Fluff has posted and your explanation, i see
Fluff has a solution , for conditional formatting , which could be added to an IF to have a column with a 1 in
thank you for your help and for suggesting wrapping it in an IF statement ?
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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