?
Solved

Return Specific Value using VLOOKUP ?

Posted on 2014-03-07
2
Medium Priority
?
287 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
2 Comments
 
LVL 35

Accepted Solution

by:
mvidas earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

862 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