Find a value and return a corresponding number

  • Thread starter Thread starter Irene
  • Start date Start date
I

Irene

Hi!

This is my problem:
I am working on a list A1:B1000.
Colum A contain nr values and colum B contain string values.
I don't want duplicate values in the B colum of the list so I hav
formatted the list with Validation to notice me when I type in a strin
value that already excist.

But I wonder if it is possible not only to give me this notice but t
return the corresponding value in colum A?

Example: In the end of the list at cell B1034 I type the word Norway.
This word already excist in cell B55, so i am noticed and the value i
cell A55 is returned to me.

regards, Iren
 
First turn off the validation to allow Norway to be entered a second time.

Then in C1 enter:

=IF(COUNTIF(B:B,"="&B1)=1,"",INDIRECT("A"&MATCH(B1,B:B,0)))

and copy down. The formula will be blank for all entries in column B
appearing only once. Otherwise it will display the equivalent value from
column A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top