×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*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.

# Finding multiple values in a range

## Finding multiple values in a range

(OP)
I need to find 1 of 4 values in a range and report which one was found in the next column. Example...

RV____TW____3C____IS____9S_____NQ____N2____65____JA____PQ____DC____IW____QA

(underlines purely to distinguish columns)

I need to search through that row and find one of the following values: 1A, 2B, 3C, 4D. In this example, 3C is in the row; so I would want the next column to display 3C

There will never be more than 1 of those values in a row.

Can help would be appreciated.

Thanks!
Replies continue below

### RE: Finding multiple values in a range

Hi,

Assuming that your row of values is in A1:M1...

N1: =index(A1:M1,1,
if(isna(match("1A",A1:M1,0)),0,match("1A",A1:M1,0))+
if(isna(match("2B",A1:M1,0)),0,match("2B",A1:M1,0))+
if(isna(match("3C",A1:M1,0)),0,match("3C",A1:M1,0))+
if(isna(match("4D",A1:M1,0)),0,match("4D",A1:M1,0)))

Skip,

Just traded in my OLD subtlety...
for a NUance!

### RE: Finding multiple values in a range

Do this;
"(underlines purely to distinguish columns)" actually mean;

The underscores distinguish and empty column??

or does it mean

The underscores distinguish an empty CELL in the row of data??

Which is what your example data seems to indicate.

And does the range have a 'name' or is it just a row number.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

### RE: Finding multiple values in a range

(OP)
Thank you SkipVought!

I just needed to change the commas to semicolons and all worked perfectly.

#### 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.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!