Link to home
Start Free TrialLog in
Avatar of yahooooo
yahoooooFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Search list of strings(cells) for particular string

I used array formulas to calculate sum and max for all rows which contains e.g. same month.

=MAX(IF('[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$A:$A=AA3108,'[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$P:$P,0))

Open in new window


I wonder if it's possible to search through strings (cells) from the same month looking for the ones that contain "scaffold". All I need is an indicator that this key word exists in one of the cell for selected month.
Avatar of Naresh Patel
Naresh Patel
Flag of India image

You Could Use This Kind Of Statement

=IF(ISERROR(MATCH(look up string,Range,FALSE)),"Not Found","Found")


Thanks
Avatar of Rgonzo1971
Rgonzo1971

Hi,

And if scaffold is only a part of the cell use

=IF(ISERROR(MATCH("*scaffold*",A1:A30,FALSE)),"NotFound","Found")

Open in new window

Regards
Avatar of yahooooo

ASKER

that would probably work for the whole sheet but i want it to look only at rows which contains selected value like month or year.
Look at my MAX code above. It would use the same range to look for that string
so that bit of my code -'[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$A:$A=AA3108 - has  to be reused
Hi,
pls try someting like this

=IF(MAX(('[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$A:$A=AA3108)*(IFERROR(FIND("scaffold",'[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$P:$P),0))),"Found","NotFound")

Open in new window


as array formula

Regards
I tried that before and now again. (without MAX as well)
I'd use search as it's not case sensitive, but that doesnt work :/

=IF((('[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$A:$A=AA3108)*(IFERROR(SEARCH("SCAFFOLD",'[Tasklist Scotford 1702.xlsb]tasklist c300rev1702'!$P:$P),0))),"Found","NotFound")

Open in new window

Hi,

Could you send a dummy example?

Regards
sheet1 contains a list of all cnt&group. I left one as an example. What Im doing is summing up norm. dur. and getting max number to another sheet for every cnt&group. That assumption should exclude all which at least one operation contains scaffolding, hence my question.

For now I sorted it as I created a list of all cnt&group which contains scaffolding and vlookup them with my current data but it would be good to automate it as i'd reuse it many times with different datasets
Book1.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
good thinking with that Max ;) i should have realized that earlier! thanks