Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Gus
 
Posts: n/a
Default vlookup first 4 characters only in a column

Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the first 4
characters in the utmost left column of the table and return the associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the left
of the column.

Thks
Gus

  #2   Report Post  
RagDyeR
 
Posts: n/a
Default

Try this:

=VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE)

--

HTH,

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



"Gus" wrote in message
...
Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the first 4
characters in the utmost left column of the table and return the associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the left
of the column.

Thks
Gus


  #3   Report Post  
Domenic
 
Posts: n/a
Default

Try the following...

=VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1
contains your lookup value.

Hope this helps!

In article ,
Gus wrote:

Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the first 4
characters in the utmost left column of the table and return the associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the left
of the column.

Thks
Gus

  #4   Report Post  
RagDyeR
 
Posts: n/a
Default

If Column A contains numbers, try:

=VLOOKUP(--LEFT(A1,4),EmailList!A:C,3,FALSE)
--

HTH,

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


"RagDyeR" wrote in message
...
Try this:

=VLOOKUP(LEFT(A1,4),EmailList!A:C,3,FALSE)

--

HTH,

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



"Gus" wrote in message
...
Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the first 4
characters in the utmost left column of the table and return the associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the left
of the column.

Thks
Gus



  #5   Report Post  
Gus
 
Posts: n/a
Default

Hi Domenic

The formula below returned the #N/A value but a manual calculation should
have returned the value 2?

Rgds
Gus

"Domenic" wrote:

Try the following...

=VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1
contains your lookup value.

Hope this helps!

In article ,
Gus wrote:

Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the first 4
characters in the utmost left column of the table and return the associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the left
of the column.

Thks
Gus




  #6   Report Post  
Myrna Larson
 
Posts: n/a
Default

Try it this way:

=VLOOKUP(LEFT(A1,4)&"*",EmailList!A1:C100,3,0)

This is a "regular" formula, entered with just ENTER, not an array formula.


On Sat, 19 Feb 2005 09:11:03 -0800, Gus wrote:

Hi Domenic

The formula below returned the #N/A value but a manual calculation should
have returned the value 2?

Rgds
Gus

"Domenic" wrote:

Try the following...

=VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1
contains your lookup value.

Hope this helps!

In article ,
Gus wrote:

Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the

first 4
characters in the utmost left column of the table and return the

associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the

left
of the column.

Thks
Gus



  #7   Report Post  
Gus
 
Posts: n/a
Default

Thank you to all who replied and helped on this matter!

"Myrna Larson" wrote:

Try it this way:

=VLOOKUP(LEFT(A1,4)&"*",EmailList!A1:C100,3,0)

This is a "regular" formula, entered with just ENTER, not an array formula.


On Sat, 19 Feb 2005 09:11:03 -0800, Gus wrote:

Hi Domenic

The formula below returned the #N/A value but a manual calculation should
have returned the value 2?

Rgds
Gus

"Domenic" wrote:

Try the following...

=VLOOKUP(A1,LEFT(EmailList!A1:C100,4),3,0)

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER, and where A1
contains your lookup value.

Hope this helps!

In article ,
Gus wrote:

Hi

Any help with the following would be greatly appreciated -
I'm trying to do a vlookup whereby it only searches/has to match the

first 4
characters in the utmost left column of the table and return the

associated
cell. My non working formula is:

=VLOOKUP(A:A(left4),EmailList!A:C,3,FALSE)
whereby the A:A(left4) is meant to be the first 4 characters from the

left
of the column.

Thks
Gus



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
Add the same character(s) to multiple cells in a column (or row) . flashcatj Excel Discussion (Misc queries) 6 April 22nd 23 06:09 AM
How can I automatically update column index number in VLookup whe. Gene Excel Worksheet Functions 2 July 10th 12 11:23 AM
Remove 1st 3 characters in each field of Excel column Chuck Excel Worksheet Functions 4 February 1st 05 09:43 PM
VLOOKUP, OFFSET, MATCH PROBLEM, HELP? Steve Excel Worksheet Functions 0 January 30th 05 09:11 PM
vlookup change column index position - without changing formulae loopyloobyloo Excel Worksheet Functions 1 November 26th 04 01:35 PM


All times are GMT +1. The time now is 10:13 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"