×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need to list names in column A associated to multiple matches in col B

Need to list names in column A associated to multiple matches in col B

Need to list names in column A associated to multiple matches in col B

(OP)
I have an Excel 2000 spreadsheet where column a contains names of sites (unique), column b contains percentages of completion. I want to list in a single cell the names of the sites that match certain criteria. Example:
a1-a5 contain Toledo, New York, Los Angeles, Atlanta, and Tulsa. b1-b5 contain .95, .78, .95, .54, .95. If I wanted to list in c1 all sites that = .95, which should be Toledo, Los Angeles, and Tulsa, how would I do it (site names separated by comma and a space)? I can get a single occurrence using OFFSET/MATCH, VLOOKUP, or the IF functions, but unsuccessful in getting it to list all matches in a single cell.

RE: Need to list names in column A associated to multiple matches in col B

Looks to me like a coding job. Try going to the Lounge at www.wopr.com. Lots of coders there.

RE: Need to list names in column A associated to multiple matches in col B

Here's something that will work (although maybe not the cleanest way):

In some unused portion of your spreadsheet, let's say column AA:

In AA1 enter the formula =If(B1=.95,", "&A1,"")
This will return the city name prepended with a comma and a space if the .95 criteria is met. Otherwise it will return a null entry. Fill this formula down through AA5.

In some cell, say AA7, enter =AA1&AA2&AA3&AA4&AA5
This will create a concatenated string of the values in AA1 through AA5.

Now back in cell C1, enter =Right(AA7,Len(AA7)-2)
This will return the list of cities meeting the criteria with the leading comma and space stripped off.

Tom Thaden
thadents@usano.ksc.nasa.gov

RE: Need to list names in column A associated to multiple matches in col B

FYI, this is exactly the kind of work that databases were created to do easily. You can import your table into Access and easily write a query or report to do this tpe of thing.

RE: Need to list names in column A associated to multiple matches in col B

(OP)
Thanks Trunk, your suggestion worked fine. Elizabeth, I am aware that databases do this however they do not give the visability that spreadsheets provide, I am a db programmer and would normally use Access, thanks for your input as well.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close