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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
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,215,516
Messages
6,125,280
Members
449,220
Latest member
Excel Master

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