?
Solved

Search list of strings(cells) for particular string

Posted on 2014-03-05
9
Medium Priority
?
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 8

Expert Comment

by:Naresh Patel
ID: 39905837
You Could Use This Kind Of Statement

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


Thanks
0
 
LVL 52

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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 52

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
 
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 52

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 52

Accepted Solution

by:
Rgonzo1971 earned 2000 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

762 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