#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mllestecchino
 
Posts: n/a
Default VLOOKUP Question

I'm having trouble getting the VLOOKUP function to work.

=VLOOKUP(LEFT(C2,2),'Expense Categories'!B2:C11,2)

Basically, I have a four digit string in column C. I want to match the first
two digits against the two digit numbers I have in Table B2:C11 on another
sheet, then have it return the text string in the second column of that table.

Right now, I keep getting "#N/A" no matter what I do. I've tried changing
the cell formats from text to number to general and still N/A. What am I
doing wrong here?

Thanks!
mllestecchino
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default VLOOKUP Question

Try

=VLOOKUP(value(LEFT(C2,2)),'Expense Categories'!B2:C11,2)

--
Kind regards,

Niek Otten

"mllestecchino" wrote in message
...
I'm having trouble getting the VLOOKUP function to work.

=VLOOKUP(LEFT(C2,2),'Expense Categories'!B2:C11,2)

Basically, I have a four digit string in column C. I want to match the first
two digits against the two digit numbers I have in Table B2:C11 on another
sheet, then have it return the text string in the second column of that table.

Right now, I keep getting "#N/A" no matter what I do. I've tried changing
the cell formats from text to number to general and still N/A. What am I
doing wrong here?

Thanks!
mllestecchino



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mllestecchino
 
Posts: n/a
Default VLOOKUP Question

Thanks so much, worked like a charm!

-mllestecchino

"Kevin Vaughn" wrote:

I don't know what your data looks like, but I did a little experimenting, and
this formula worked for me:

=VLOOKUP(VALUE(LEFT(C2,2)),'Expense Categories'!$B$2:$C$11,2)


--
Kevin Vaughn


"mllestecchino" wrote:

I'm having trouble getting the VLOOKUP function to work.

=VLOOKUP(LEFT(C2,2),'Expense Categories'!B2:C11,2)

Basically, I have a four digit string in column C. I want to match the first
two digits against the two digit numbers I have in Table B2:C11 on another
sheet, then have it return the text string in the second column of that table.

Right now, I keep getting "#N/A" no matter what I do. I've tried changing
the cell formats from text to number to general and still N/A. What am I
doing wrong here?

Thanks!
mllestecchino

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default VLOOKUP Question

I don't know what your data looks like, but I did a little experimenting, and
this formula worked for me:

=VLOOKUP(VALUE(LEFT(C2,2)),'Expense Categories'!$B$2:$C$11,2)


--
Kevin Vaughn


"mllestecchino" wrote:

I'm having trouble getting the VLOOKUP function to work.

=VLOOKUP(LEFT(C2,2),'Expense Categories'!B2:C11,2)

Basically, I have a four digit string in column C. I want to match the first
two digits against the two digit numbers I have in Table B2:C11 on another
sheet, then have it return the text string in the second column of that table.

Right now, I keep getting "#N/A" no matter what I do. I've tried changing
the cell formats from text to number to general and still N/A. What am I
doing wrong here?

Thanks!
mllestecchino

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default VLOOKUP Question

You are welcome!
--
Kevin Vaughn


"mllestecchino" wrote:

Thanks so much, worked like a charm!

-mllestecchino

"Kevin Vaughn" wrote:

I don't know what your data looks like, but I did a little experimenting, and
this formula worked for me:

=VLOOKUP(VALUE(LEFT(C2,2)),'Expense Categories'!$B$2:$C$11,2)


--
Kevin Vaughn


"mllestecchino" wrote:

I'm having trouble getting the VLOOKUP function to work.

=VLOOKUP(LEFT(C2,2),'Expense Categories'!B2:C11,2)

Basically, I have a four digit string in column C. I want to match the first
two digits against the two digit numbers I have in Table B2:C11 on another
sheet, then have it return the text string in the second column of that table.

Right now, I keep getting "#N/A" no matter what I do. I've tried changing
the cell formats from text to number to general and still N/A. What am I
doing wrong here?

Thanks!
mllestecchino

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 question Greegan Excel Worksheet Functions 3 December 20th 05 04:00 AM
VLOOKUP() Question... i hope Adam Kroger Excel Discussion (Misc queries) 2 November 29th 05 10:22 PM
Vlookup question please Bob Newman Excel Worksheet Functions 3 March 17th 05 02:17 PM
vlookup question please Bob Newman Excel Worksheet Functions 1 March 17th 05 06:25 AM
Vlookup against multiple columns/worksheets question JCarter Excel Discussion (Misc queries) 8 March 9th 05 04:59 PM


All times are GMT +1. The time now is 04:11 PM.

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

About Us

"It's about Microsoft Excel"