DokHoliday
New Member
- Joined
- Apr 7, 2015
- Messages
- 6
Hello everyone, first time posting here. I'm trying to retrieve information from a table like the one below as such:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C(function)[/TD]
[TD]C(outcome)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]Harry[/TD]
[TD]=IF(A1="a","YES","NO")[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ab[/TD]
[TD]Ron[/TD]
[TD]=IF(A2="a","YES","NO")[/TD]
[TD]NO[/TD]
[/TR]
</tbody>[/TABLE]
Basically if a cell in column A contains "a" I want excel to output "YES" in Column C. This works for Harry but since Ron has entered "ab" it can't, using my formula, decipher that "ab" does contain an "a".
I found this formula in another thread: =IF(ISNUMBER(FIND("a",A2)),"YES","NO") and it works! Only I don't understand how it's working, for example the ISNUMBER and FIND function. What about using ISTEXT? What's the difference between FIND and SEARCH?
Help.
Thanks in advance.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C(function)[/TD]
[TD]C(outcome)[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]Harry[/TD]
[TD]=IF(A1="a","YES","NO")[/TD]
[TD]YES[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]ab[/TD]
[TD]Ron[/TD]
[TD]=IF(A2="a","YES","NO")[/TD]
[TD]NO[/TD]
[/TR]
</tbody>[/TABLE]
Basically if a cell in column A contains "a" I want excel to output "YES" in Column C. This works for Harry but since Ron has entered "ab" it can't, using my formula, decipher that "ab" does contain an "a".
I found this formula in another thread: =IF(ISNUMBER(FIND("a",A2)),"YES","NO") and it works! Only I don't understand how it's working, for example the ISNUMBER and FIND function. What about using ISTEXT? What's the difference between FIND and SEARCH?
Help.
Thanks in advance.