Assistance With Countif formula

TellM1955

New Member
Joined
Apr 8, 2021
Messages
28
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
I have the following formular with looks for any parts of the words food, lunch, packed and I want it to provide the message shown. It works fine if I only use one of the criteria but not with multiple. Can someone point me in the right direction or advise me on the formula?

There is a second part to this request, in that if it finds one of more of the criteria and there is a value in its corresponding cell in column F to hide the message?

=IF(COUNTIFS($C$32:$C$35,"*Food*",$C$32:$C$35,"*Lunch*",$C$32:$C$35,"*Packed*"),"Have Staff Been Included This","")
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
How about
Excel Formula:
=IF(SUM(COUNTIFS($C$32:$C$35,{"*Food*","*Lunch*","*Packed*"},F32:F35,"")),"Have Staff Been Included This","")
 
Upvote 1
Solution

Forum statistics

Threads
1,221,528
Messages
6,160,343
Members
451,638
Latest member
MyFlower

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