Solved

Search list of strings(cells) for particular string

Posted on 2014-03-05
9
211 Views
Last Modified: 2014-03-05
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.
0
Comment
Question by:yahooooo
  • 4
  • 4
9 Comments
 
LVL 8

Expert Comment

by:itjockey
ID: 39905837
You Could Use This Kind Of Statement

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


Thanks
0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 39905844
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
0
 
LVL 3

Author Comment

by:yahooooo
ID: 39905849
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
0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 39905938
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
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 3

Author Comment

by:yahooooo
ID: 39905942
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

0
 
LVL 48

Expert Comment

by:Rgonzo1971
ID: 39905954
Hi,

Could you send a dummy example?

Regards
0
 
LVL 3

Author Comment

by:yahooooo
ID: 39905965
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
0
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 39906034
Hi,

see formula in Sheet2!G2

=IF(MAX((Sheet1!A:A=Sheet2!B2)*(IFERROR(SEARCH("scaffold";Sheet1!H:H);0)));"Found";"NotFound")

Open in new window

Regards
Book1v1.xlsx
0
 
LVL 3

Author Comment

by:yahooooo
ID: 39906043
good thinking with that Max ;) i should have realized that earlier! thanks
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now