ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to lookup based in the first 3 characters of a cell (https://www.excelbanter.com/excel-discussion-misc-queries/270570-how-lookup-based-first-3-characters-cell.html)

Mas[_4_]

How to lookup based in the first 3 characters of a cell
 
Hi all,

I would like to know how I can perform a lookup formula to lookup a
column based on the first three characters of a cell.

i.e. Column A - AA1-0001, AB2-0002, etc

I would like to perform a lookup on the first three character ie.e AA1
or AB2 etc.

Thanks in advanced.

Claus Busch

How to lookup based in the first 3 characters of a cell
 
Hi,

Am Sun, 14 Aug 2011 09:48:27 +1000 schrieb Mas:

i.e. Column A - AA1-0001, AB2-0002, etc

I would like to perform a lookup on the first three character ie.e AA1
or AB2 etc.


try:
=INDEX(A:A,MATCH("AA1*",A:A,0))
or
=VLOOKUP("AA1*",A:A,1,0)


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Dave Peterson[_2_]

How to lookup based in the first 3 characters of a cell
 
I'd use something like:

=vlookup(left(a1,3), .....



On 08/13/2011 18:48, Mas wrote:
Hi all,

I would like to know how I can perform a lookup formula to lookup a column based
on the first three characters of a cell.

i.e. Column A - AA1-0001, AB2-0002, etc

I would like to perform a lookup on the first three character ie.e AA1 or AB2 etc.

Thanks in advanced.


--
Dave Peterson


All times are GMT +1. The time now is 03:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com