Forum Discussion
PHBExcelQs
Apr 10, 2022Copper Contributor
Excel
I want to match a value in a cell to a value within a column using an if then statement. Example -
If cell A1 = a value within the column B1 through B25, then the value for C1 = "Yes"
What would my formula look like to accomplish this?
5 Replies
- OliverScheurichGold Contributor
=IF(COUNT(SEARCH(A1,$B$1:$B$25))>0,"yes","no")
Maybe with this formula. Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021.
- SergeiBaklanDiamond Contributor
- PHBExcelQsCopper Contributor
Your formula worked. Thank you.
- SergeiBaklanDiamond Contributor
PHBExcelQs , you are welcome
- bosinanderIron Contributor