Add extra COUNITF to formula

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,404
Office Version
  1. 2016
Platform
  1. Windows
I've got this formula that I need to expand if someone can help;

=IF(C2="","",(IF(AND(C2<>"",F2<>"Available"),"",IF(COUNTIF(Duties!$B$2:$B$20,C2)=1,"YES","NO"))))

I need it to check O2:O42 and if C2 is found I need it to show "Abstracted" - this should override the "YES" or "NO" part if possible.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
=IF(C2="","",(IF(AND(C2<>"",F2<>"Available"),"",IF(COUNTIF(Duties!$B$2:$B$20,C2)=1,"YES","NO"))))
you can change to =IF(OR(C2="",AND(C2<>"",F2<>"available")),"",IF(COUNTIF(O2:O42,C2)=1,"abstracted",IF(COUNTIF(Duties!$B$2:$B$20,C2)=1,"YES","NO")))

But if C2 exists More than once in column B or O then it will fail - so can C2 appear more than once ?
just use >0 instead of =1
 
Last edited:
Upvote 0
Hi, and thanks....

C2 can't appear more than once so your suggestion is good thanks!
 
Upvote 0

Forum statistics

Threads
1,215,323
Messages
6,124,244
Members
449,149
Latest member
mwdbActuary

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