Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Lookup a name if cell value first letter is in a range

A B C D E F G H
1 Rep Student ID Last Name First Name Rep
2 L00012342 Acker John Danielle A-F
3 L00012343 Harrisuillos Mary William G-L
4 L00012344 Quhenrun Ed John M-R
5 L00012345 Voe Sue Katherine S-Z

This is what my data looks like (Student Table in Columns A,B,C,& D and a
Lookup Table in Columns F & G).

PROBLEM: If a 'Last Name' begins with a letter in a range (Column G), then
I want to assign the corresponding 'Rep' (Column F) to Column A. Is this a
possibility?

Thanks for any help you may be able to give
--
FirstVette52
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Lookup a name if cell value first letter is in a range

I would suggest that you use column H to store the first letter of the
range, i.e. A, G, M and S in your example, in H2:H5.

Then in A2 you can use this formula:

=INDEX(F$2:F$5,MATCH(LEFT(C2),H$2:H$5))

and copy it down as required.

Hope this helps.

Pete

On Jan 21, 3:20*pm, FirstVette52 <(My User name is Firstvette 52, too)
firstvet52@(my ISP E-mail provider is) netzero.com wrote:
* * * *A * * * * * * * *B * * * * * * *C * * * * * * * D * * * * * * * E * * * * * * F * *G * * H
1 * Rep Student ID * * * *Last Name *First Name Rep * *
2 * * * L00012342 * * * * *Acker * * * * * * *John * * * * * * *Danielle * * * *A-F
3 * * * L00012343 * * * * *Harrisuillos * Mary * * * * *William G-L
4 * * * L00012344 * * * * *Quhenrun * * Ed * * * * * * *John * *M-R
5 * * * L00012345 * * * * *Voe * * * * * * *Sue * * * * Katherine * * * S-Z

This is what my data looks like (Student Table in Columns A,B,C,& D and a
Lookup Table in Columns F & G).

PROBLEM: * If a 'Last Name' begins with a letter in a range (Column G), then
I want to assign the corresponding 'Rep' (Column F) to Column A. Is this a
possibility?

Thanks for any help you may be able to give
--
FirstVette52


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
Using text from cell in a range lookup abergman Excel Discussion (Misc queries) 2 January 5th 09 09:03 PM
Lookup criteria - digits and letter cindyk Excel Discussion (Misc queries) 1 November 12th 08 06:54 PM
Lookup between sheets, finding a match, and returning a letter CSmith Excel Worksheet Functions 3 April 11th 08 07:08 PM
I want to assign a value to the letter R in a cell range Poke Excel Worksheet Functions 5 May 15th 07 11:09 PM
count a number range and a letter in a cell santaviga Excel Worksheet Functions 3 April 28th 06 11:11 AM


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

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"