Solved

Return Specific Value using VLOOKUP ?

Posted on 2014-03-07
2
281 Views
Last Modified: 2014-03-07
I got one list with some values that might be duplicated, however, column associated with it is different, like: ( possible values are only 4 DRY,RFG,FRZ,CHOC  )

1 DRY

1 RFG

2 RFG

3 FRZ


Every time I have duplicates, as the first 2 rows, I would like to apply and specific value, in this specific example the value would be "RFG" ...how can I do it ?


This would be the rules :

1. Unique values keep their 2nd column value
2. Duplicates that contain RFG should be consolidated as RFG
3. Duplicates that contain FRZ should be consolidated as FRZ
4. Duplicates that contain CHOC should be consolidated as RFG
Example.xlsx
0
Comment
Question by:LubinofS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 500 total points
ID: 39913230
Hi LubinofS,

Enter the following into C2:

=IF(COUNTIF($A$2:$A$8085,A2)=1,B2,IF(COUNTIFS($A$2:$A$8085,A2,$B$2:$B$8085,"RFG")>0,"RFG",IF(COUNTIFS($A$2:$A$8085,A2,$B$2:$B$8085,"FRZ")>0,"FRZ",IF(COUNTIFS($A$2:$A$8085,A2,$B$2:$B$8085,"CHO")>0,"RFG",""))))

Fill down through your data.

Matt
0
 

Author Closing Comment

by:LubinofS
ID: 39913261
Thanks!
0

Featured Post

Don't miss ATEN at NAB Show April 24-27!

Visit ATEN at NAB Show to learn how our "Seamlessly Entertaining" solutions deliver fast, precise video streaming without delays for the broadcasting and media environment. ATEN will showcase its 16x16 Modular Matrix Switch (VM1600) and KVM Over IP Solution (KE6900 series).

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

733 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