Apr 10 2022 07:22 AM
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?
Apr 10 2022 07:28 AM
Apr 10 2022 07:28 AM
SolutionApr 10 2022 07:30 AM
=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.
Apr 10 2022 07:28 AM
SolutionThat could be
=IF( COUNTIF( $B$1:$B$25, A1 ), "Yes", "No" )