sheepdemon
New Member
- Joined
- Nov 30, 2022
- Messages
- 17
- Office Version
- 365
- Platform
- Windows
So, I'm using a SEARCH function to check for text in a cell.
=(IF(ISNUMBER(SEARCH("<value>",'Sheet1'!B15)),TRUE, FALSE))
This works fine, and I get TRUE if the <value> exists and FALSE if if does not, as you'd expect.
However what I'm trying to do is have the "True" value be "Several lines of text". That doesn't work as the max formula length is 256 characters, so I tried making a new sheet with 9 rows of data in which I am attempting to pass using :
=(IF(ISNUMBER(SEARCH("<value>",'Sheet1'!B15)),Sheet3:A1:A9, FALSE))
This still returns False if the value does not exist, but gives a #Value! error if the statement is true.
What changes should I make to this code in order to have this work? Initial Googling suggests possible an array is required but I'm not 100% sure I'm looking at good advice.
=(IF(ISNUMBER(SEARCH("<value>",'Sheet1'!B15)),TRUE, FALSE))
This works fine, and I get TRUE if the <value> exists and FALSE if if does not, as you'd expect.
However what I'm trying to do is have the "True" value be "Several lines of text". That doesn't work as the max formula length is 256 characters, so I tried making a new sheet with 9 rows of data in which I am attempting to pass using :
=(IF(ISNUMBER(SEARCH("<value>",'Sheet1'!B15)),Sheet3:A1:A9, FALSE))
This still returns False if the value does not exist, but gives a #Value! error if the statement is true.
What changes should I make to this code in order to have this work? Initial Googling suggests possible an array is required but I'm not 100% sure I'm looking at good advice.