realmseeker wrote:gerard24 wrote:Try with an array formula (validate with Ctrl+Shift+Enter instead of Enter) :
Code: Select all
=IF(MAX(ISNUMBER(FIND(criteria_range;$Input.$B2)));" PKDEP="&Input.L2;"")
where 'criteria_range' is the cell range containing your list of strings to be found.
It works

Thanks

only it doesn't seem to work if I use a cell range from a different sheet. Oh well
Okay so I worked with it a bit and it doesn't work sadly.
I am uploading the spread sheet due to the odd behavior of the code Gerrard posted. Pretty much as I drag the "double" and "triple" strings down the page it will blank the columns as it goes.
-Ignore the other sheets only the first two I am working with atm
-Input is where you enter things
-Data processes it for 22MM
-22MM is used to be saved as a CSV for loading into a CAM program
-If either the word "Double" or "Triple" are used in "INPUT.B column" then the related cell on "DATA.F column" should be blank, otherwise display " PKDEP="&INPUT.L(cell#)
-Other terms will be added to this list later
-tried using crtl shift enter sometimes it added { type brackets, sometimes not. it didn't seem to make much difference
Thanks for the help,
Jordan