Hey, i'm trying to use VLOOKUP but the field i am searching is a complex formula and it wont recognize any of the values. Is there some trick to it??
Column I is what i am working with..
Hey, i'm trying to use VLOOKUP but the field i am searching is a complex formula and it wont recognize any of the values. Is there some trick to it??
Column I is what i am working with..
VLOOKUP(G2,C:D,2,FALSE)
G2 is not found in column C
Did you mean:
VLOOKUP(G2,a:D,4,FALSE)
?
CC
If you feel really indebted please consider a donation to charity. My preferred charity is ActionAid but there are plenty of worthy alternatives.
Help me to help you. I'm not here for a game of Cluedo. Which?No, because some of the numbers in G2 ARE found in column C
its because of col g are not in same format as col c amongst other things! g is custom formatted 000000 to make them look 6 characters long like the text values on col c so that's one reason
Last edited by martindwilson; 07-21-2010 at 11:36 AM.
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
Your version:
=IF(G2="","",IF(COUNTIF(A:A,G2),VLOOKUP(G2,C:D,2,FALSE),"Obsolete"))
You haven't fully defined the logical test in the if statement, and your column D is empty? so your vlookup range will not return anything
Is this what you are hoping for?
=IF(G2="","",IF(COUNTIF(A:A,G2)>0,VLOOKUP(G2,A:B,2,FALSE),"Obsolete"))
G16 for example.
G16 is 050141RD, H16 is C.
C302 is 050141RD, D302 is C
All of these numbers match up so i column I should be blank for this particular example, but i am still getting a #N/A with my formula
Could this be problem? I've changed them both to Text format with no luck. I've also tried custom format 000000 and it too had no effect. I've tried copying all of column C and doing a special paste of just values and again, no change. I have to be doing something wrong because i know there is data that matches up in both columns..
Your formula in Column C leaves a trailing space - '050141RD C' remove the C = '050141RD 'G16 for example.
G16 is 050141RD, H16 is C.
C302 is 050141RD, D302 is C
Simple fix =trim(your current formula)
But it is pretty unwieldy, I'm confident there'd be a better way of writing that formula, again, not Sherlock Holmes, if you want to explain what that formula is for we could probably simplify it for you.
HTH
PS mdw, I love you, but formatting will never affect a lookup (except for misleading people about what is being looked up)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks