Formula to find if a number exists in a range of cells?

LaurenJez

New Member
Joined
Apr 19, 2023
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
Hello. I am using the below formula to find if a number (1 to 9) exists in a cell. The formula works, but what I really want is a formula that checks if a number (1 to 9) exists in a range of cells. Can anyone help with this?

Current formula that works: =IF(COUNT(FIND({1,2,3,4,5,6,7,8,9},O2))>0, "Yes", "No")

What I want but is not working: =IF(COUNT(FIND({1,2,3,4,5,6,7,8,9},O2:AB2))>0, "Yes", "No")

1682538111212.png
 
@ LaurenJez: Your original range formula from Post #1 needs a slight modification to work (and being confirmed using Ctrl Shift Enter, not just Enter)
Excel Formula:
=IF(COUNT(FIND({1;2;3;4;5;6;7;8;9},O2:AB2))>0,"Yes","No")

Thank you, that worked! Do you happen to know if the formula can be further tweaked to find the digits 1 through 9 (as prescribed in the formula) but exclude factoring in a certain value; the value being "32EN"?
 
Upvote 0

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
See if the following updated formula works for you:
Excel Formula:
=IF(COUNT(FIND({1;2;3;4;5;6;7;8;9},SUBSTITUTE(O2:AB2,"32EN","")))>0,"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,852
Members
449,471
Latest member
lachbee

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