Solved

Need to deliver a count of certain names by looking for a string within a string and then counting the names associated with the smaller string

Posted on 2013-01-16
2
230 Views
Last Modified: 2013-01-16
I have a file I have been working on. The formula in B3:E3 was successful in looking up 1 of the 4 objects in A3 and then returning a value associated with the object in a different tab.

Here, I have a new type of problem where I need a formula in B3 on my Formulas tab to look at column A on my Areas tab and count all of the cells that have "LA" or "Las Vegas" for the object names in A3 on the Formulas tab.  The answer should be 2.

Thank you!
Test-File.xlsx
0
Comment
Question by:Dominator1025
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
Comment Utility
Hello Dom,

This formula should give you the count for "LA" or "Las Vegas" [edited]

=SUMPRODUCT(ISNUMBER(SEARCH(","&Areas!$A$2:$A$2000&",",","&$A2&","))*(Areas!$B$2:$B$2000={"LA","Las Vegas"}))

That gets the results you suggested but only matches the whole 5 character object

You can change the {"LA","Las Vegas"} part to include any number of locations, if it's a single location you don't need the brackets { and }

regards, barry
0
 

Author Closing Comment

by:Dominator1025
Comment Utility
Awesome, thanks again!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
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.

771 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

11 Experts available now in Live!

Get 1:1 Help Now