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.
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
RE: Need to list names in column A associated to multiple matches in col B
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
RE: Need to list names in column A associated to multiple matches in col B