=IF(COUNTIF for one range and multiple criteria

BrandyLeaAnn

New Member
Joined
Mar 10, 2022
Messages
2
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi all!
I am trying to convert numbers in multiple columns to a value in words. I am using the =IF(COUNTIF(range,criteria),"value if true","value if false") function and able to make it work with only one criteria, but having trouble returning a value when using multiple criteria. This is what I am using so far, but I also want a criteria of "11", "12", "13", & "14" to return "Hispanic or Latino" if true and "" blank if false. I tried the COUNTIFS function, but maybe I didn't add my criteria correctly...
1646933424842.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi,

Not sure what you mean, may be this:

Book3.xlsx
NOPQRST
21211Hispanic or Latino
Sheet1033
Cell Formulas
RangeFormula
T2T2=IF(SUM(COUNTIF(N2:P2,{1,11,12,13,14})),"Hispanic or Latino","")
 
Upvote 0

Forum statistics

Threads
1,224,752
Messages
6,180,743
Members
452,996
Latest member
nelsonsix66

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