Lookup column A, return column C value where non-blank

V8Hilux

New Member
Joined
Jun 5, 2018
Messages
3
So this is only some test data to prove the concept.



Essentially I have a data set that will contain duplicated values in one column which I need to do a look up on with either blank cells or a unique identifier in another column. If the desire look up value is present in the first column, I want to return the adjacent non-blank value from another column. i.e. ignore the rows where the value is present but no unique identifier exists.



Here is the test data set and lookup table:

A
B
C
D
E
F
G
1
Animal
Sold
ID Tag
Animal
Treated
Kept
2
Cat
ü
Alligator
ü
3
Frog
ü
Bat
4
Dog
01
Cat
ü
5
Eagle
ü
Dog
ü
6
Eagle
ü
Eagle
ü
7
Alligator
02
Frog
ü
8
Frog
ü
9
Dog
ü
10
Cat
03

<tbody>
</tbody>


There is a formula in Column F of =IF(ISNA(VLOOKUP(U3,$A:$A,1,FALSE))=TRUE,"","[?]") (where [?] is a windings tick)

So, going from the top, I want to look up E2 (alligator) in column A (animal). If it is there, I want to check column C (id tag) for a corresponding value, and if one is found return it or a windings tick.

In the example of "cat" it should ignore the values in row 2, as C2 is blank and instead return the results for row 10 where C10 is "03".

Some footnotes:

  • "Treated" returns a tick if I have ever treated that type of animal - formula used listed above
  • "kept" to return a tick only if I have kept/given an ID Tag to the animal type
  • There will only ever be 1 kept animal of each type. i.e. if I chose to add another eagle and keep that one the current tagged one will be sold

I hope that makes sense? I have tried various things based off of searches on here and other sites, I've tried including INDEX, MATCH, ISNUMBER, ISNA etc with a standard Vlookup but I cannot seam to get it to ignore the blanks and focus on data only. Any help would be greatly appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Not sure what happened when it got posted but those values in B & F are supposed to be Wingdings ticks
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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
Back
Top