#1   Report Post  
Sara Gilbert
 
Posts: n/a
Default vlookup

I am trying to create a lookup where I am entering a 10 account number digit
but my database only has 8 number digits. I want my lookup to ignore the
last two digit I enter and give me the corresponding 8 digit number
  #2   Report Post  
aristotle
 
Posts: n/a
Default

Hi,

Lookup value is in e.g. A1:

=VLOOKUP(LEFT(A1,8),Lookup_Table,1,0)

Where Lookup_Table is the table or array you want to return the
corresponding number from.

Regards,
A

"Sara Gilbert" wrote:

I am trying to create a lookup where I am entering a 10 account number digit
but my database only has 8 number digits. I want my lookup to ignore the
last two digit I enter and give me the corresponding 8 digit number

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

=vlookup(int(a1/100),yourtable,2,false)
If those values are numbers.

=vlookup(left(a1,8),yourtable,2,false)
if the values are text.


Sara Gilbert wrote:

I am trying to create a lookup where I am entering a 10 account number digit
but my database only has 8 number digits. I want my lookup to ignore the
last two digit I enter and give me the corresponding 8 digit number


--

Dave Peterson
  #4   Report Post  
Sara Gilbert
 
Posts: n/a
Default

unfortunately gives me: #N/A


=VLOOKUP(LEFT(B13,8),Data,2)

Data is my database info on another sheet

"aristotle" wrote:

Hi,

Lookup value is in e.g. A1:

=VLOOKUP(LEFT(A1,8),Lookup_Table,1,0)

Where Lookup_Table is the table or array you want to return the
corresponding number from.

Regards,
A

"Sara Gilbert" wrote:

I am trying to create a lookup where I am entering a 10 account number digit
but my database only has 8 number digits. I want my lookup to ignore the
last two digit I enter and give me the corresponding 8 digit number

  #5   Report Post  
Sara Gilbert
 
Posts: n/a
Default

Worked with the first formule.

Thanks a lot!

"Dave Peterson" wrote:

=vlookup(int(a1/100),yourtable,2,false)
If those values are numbers.

=vlookup(left(a1,8),yourtable,2,false)
if the values are text.


Sara Gilbert wrote:

I am trying to create a lookup where I am entering a 10 account number digit
but my database only has 8 number digits. I want my lookup to ignore the
last two digit I enter and give me the corresponding 8 digit number


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Convert VLOOKUP to absolute cell reference Rich Excel Discussion (Misc queries) 2 August 6th 05 03:49 AM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"