vlookup query

shanekenny

New Member
Joined
Nov 13, 2014
Messages
8
Hi

Hope someone can help with this query I am struggling with!

I have two sets of data with no unique identifier to match them and clash them. So I am concatenating a number of fields (lets say between 2 & 4) to create a unique identifier in the master set of data and also the second set. See example of identifier below.

I then want to lookup the matching value in the second set of data, bring it back to the master.

I think I need a Vlookup with a nested IF as the concatenated identifier field is far in excess of 255 characters and I am getting a lot of "#VALUE" returns on the lookup.

Additionally I need to take "#NA" values and assign them a value of "NOT FOUND". Values that are successfully found would be assigned the value of "GREEN".

Hope someone can help!

MasterSecondary data
servername1violationAservername1violationA
servername2violationBservername2violationB
servername3violationCservername3violationC
servername4violationDservername4violationD
servernameZviolationX

<tbody>
</tbody><colgroup><col><col></colgroup>
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

peterhinton

Active Member
Joined
Mar 8, 2016
Messages
336
not quite sure what you require from a lookup/If function,

you can however use =IFERROR(yourformulahere,"NOT FOUND") to replace any errors with NOT FOUND
 
Upvote 0

shanekenny

New Member
Joined
Nov 13, 2014
Messages
8
not quite sure what you require from a lookup/If function,

you can however use =IFERROR(yourformulahere,"NOT FOUND") to replace any errors with NOT FOUND

thanks Pete

that's fine, but my formula is returning the value I am looking for when it does find it, I want to replace that value with "GREEN"

"NOT FOUND" then applies to everything else

=IFERROR(VLOOKUP([@[UID B]], Monthly!A:B, 1), "NOT FOUND")
 
Upvote 0

Forum statistics

Threads
1,196,027
Messages
6,012,948
Members
441,740
Latest member
abaz21

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top