VLookup Problem

  • Thread starter Thread starter ajpowers
  • Start date Start date
A

ajpowers

How do I get information from a data table to enter automatically?
I have a thousand rows of different items sorted by customer with thei
contract prices, now I need the standard retail price next to eac
unique price.

I've tried a VLOOKUP formula, but I'm obviously doing something wrong
 
ajpowers said:
*How do I get information from a data table to enter automatically?
I have a thousand rows of different items sorted by customer wit
their contract prices, now I need the standard retail price next t
each unique price.

I've tried a VLOOKUP formula, but I'm obviously doing somethin
wrong. *

Hi,

You could try something like this:

Sheet2
--------

Service RetailPrice
ServiceA $2,500
ServiceB $2,600

Sheet1
--------

Company Service ContractPrice RetailPrice
ABC ServiceA $2,000 2500
DEF ServiceB $2,200 2600
XYZ ServiceA $2,450 2500

Then, put the following formula in D2 in Sheet1 and copy down:

=VLOOKUP(B2,Sheet2!$A$2:$B$3,2,0)

Hope this helps
 
New problem, the formula returns a "N/A#" error when the item number ha
alpha characters in it
 
ajpowers said:
*New problem, the formula returns a "N/A#" error when the item numbe
has alpha characters in it. *

Can you post an example of the data you're using
 
The formatting isn't transferring correctly and it's hard to read. Ca
I attach a file here
 
ajpowers said:
*The formatting isn't transferring correctly and it's hard to read.
Can I attach a file here? *

Sorry John, but I don't particularly like opening files from people
don't know. I'm sure you're a nice guy.

If you're getting a #N/A error, then obviously it hasn't found a match
Make sure that the values for those cells are the same, and that the
don't contain spaces before or after the characters, or a space betwee
the numbers and alpha characters.

Try using a formula to see if one cell matches the other, like,

=B2=A2

If you get false, then that would mean they are not the same and woul
explain the error.

Let us know if that helps
 
I understand, my name is Amy though. I've verified that the ite
numbers are there, and that there are no erroneous spaces. So do yo
think it could be that since alpha characters are in the front, and/o
the back that the formula is viewing the data range as out of order
 
ajpowers said:
*I understand, my name is Amy though.*

I'm very sorry! I'm not sure why I thought you were John.
*So do you think it could be that since alpha characters are in th
front, and/or the back that the formula is viewing the data range a
out of order? *

It shouldn't make any difference. As long as the value of one is equa
to the value of the other.

Did you use a formula to see if in fact they were equal
 
If the lookup value is not *exactly* the same as the data in the lookup
column, you will get an #N/A error!

I don't quite follow just *what* has the "alpha" characters.
Is it the lookup value, or the lookup column in the data list?

If the lookup column in the data list looks something like this,
AB12345AB,
And, your lookup value in B2 is,
12345,
You might adjust your formula to something like this:

=VLOOKUP("*"&B2&"*",Sheet2!$A$2:$B$3,2,0)
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================



I understand, my name is Amy though. I've verified that the item
numbers are there, and that there are no erroneous spaces. So do you
think it could be that since alpha characters are in the front, and/or
the back that the formula is viewing the data range as out of order?
 

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

Using "Vlookup" across 2 Spreadsheets 2
vlookup for max value or any value>0 1
VLOOKUP output 3
Excel Vlookup Help 0
Vlookup help 2
Table with VLOOKUP? 5
Copying VLOOKUP 6
PLEASE HELP - VLOOKUP COPY 3

Back
Top