Solved

Return Specific Value using VLOOKUP ?

Posted on 2014-03-07
2
276 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 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

As freelancing is becoming more and more common in the tech industry, certain obstacles are proving to be a challenge to those who are used to more traditional, structured employment. This article is meant to help identify such obstacles and offer a…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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…

760 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now