Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Search list of strings(cells) for particular string

Posted on 2014-03-05
9
Medium Priority
?
231 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 53

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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 53

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 53

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 53

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

610 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