KuraiChikara
Board Regular
- Joined
- Nov 16, 2016
- Messages
- 111
- Office Version
- 2013
- Platform
- Windows
Hello,
I'm trying to get an IF function to include a range of cells and I cant seem to get it to work.
First without a range:
In cell A1 I have "Sup 1"
In cells B1-B5 I have Sup 3, Sup 4, Sup 5: Sup 6 and Sup 1
In Cell C1 where the formula is, I have the below formula then drag it down:
=IF(A$1=B1,"TRUE","FALSE")
This will work, Cell C5 will return a TRUE statement because Sup 1 is in B5.
What I'm looking to do is to essentially return the True statement while looking in the range but I cant figure it out. Doing the same formula but including the range of B1-B5:
=IF(A1=B1:B5,"TRUE","FALSE")
In my setup, B5 contains Sup 1 which is in the LOGICAL TEST but it returns False and I dont know why.
I'm trying to get an IF function to include a range of cells and I cant seem to get it to work.
First without a range:
In cell A1 I have "Sup 1"
In cells B1-B5 I have Sup 3, Sup 4, Sup 5: Sup 6 and Sup 1
In Cell C1 where the formula is, I have the below formula then drag it down:
=IF(A$1=B1,"TRUE","FALSE")
This will work, Cell C5 will return a TRUE statement because Sup 1 is in B5.
What I'm looking to do is to essentially return the True statement while looking in the range but I cant figure it out. Doing the same formula but including the range of B1-B5:
=IF(A1=B1:B5,"TRUE","FALSE")
In my setup, B5 contains Sup 1 which is in the LOGICAL TEST but it returns False and I dont know why.