Solved

Return Specific Value using VLOOKUP ?

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
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 …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

856 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