Vlookup help

G

Guest

I need a Vlookup formula that will ignore everything to the left of the year
"2007" and only lookup the values "Transport charge" or "Commodity Charge".
My current formula is not pulling the right data. Please Help!


October 2007 Transport charge ' I need to look up the word "transport
charge" and
Sept 2007 Commodity Charge ' "commodity charge" below

Current Formula
=VLOOKUP(RIGHT($C27,LEN($C27)-FIND("2007",$C27)-4),'By
Counterparty'!$J$1:$K$3,2))
 
G

Guest

Info is a bit limited, but try the following

=VLOOKUP(RIGHT(C27,16)'By Counterparty'!$J$1:$K$3,2)

It so happens that both "Transport charge" and "Commodity charge" is 16
characters long.
 
G

Guest

Hey Cassie-

I didn't realize that both of my examples were 16 characters long. Oops! I
need a VLOOKUP formula that will lookup the values after the year no matter
how long the length of characters are. For example:

September 2007 Transport
October 2007 PAL Balancing Fee
December 2006 Demand Charge

Thanks!!
 
I

idrake

Hi David,

You do not need to vlookup use this formula: =RIGHT(A1,LEN(A1)-
(FIND("2007",A1,1)+4)). A1 is equal to "December 2006 Demand Charge"
without quotes. That should give you the right charge that you need.

Salut!
Isiah
 
G

Guest

OK, having looked at your formula again, the only problem I see is that you
need ",0" between your closing parenthesis. Syntax is
VLOOKUP(what,range,offset,FALSE(or 0)). You left out the FALSE part, and
there fore you are not getting an exact match
 
G

Guest

Hello all-

Thanks for your help, but after taking a look at my spreadsheet, I realize
that too many of my lookup reference values are similar, that is why vlookup
is not able to pull the correct vlookup values from the array. for example,
the lookup up values below are too similar because all of the ending values
end with "Commodity"

October 2007 NUI_ETG Commodity
October 2007 SEM Commdity
October 2007 _VNG_SEQ Commodity

I think what i need to do is to recreate lookup values that will not
conflict with one another. Thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Vlookup only the last 6 characters 2
Excel Vlookup Help 0
VLookUP formula help! 5
Adjusting formula for month in vlookup? 3
isna vlookup 2
Reverse VLOOKUP 1
VLOOKUP not working 1
Vlookup or Other vs Sort? 1

Top