#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,814
Default vlookup

I am looking for a way to develop a program that will do the following.

Lookup a number from a table and then display the proper responses.

example...I am looking for number 30013-871

In the table there are two entries:
30013-871 = M
30013-871p = P

I want the program to recognize if there is the number that I am looking for
plus a "P" on it, and display "P". If it's only the number without the P, I
want it to display "M".

Can anyone help with this??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default vlookup

Hi Steve

Try this formula..

ColA = Table of numbers
B1 = Query number
C1 = formula

=IF(ISNA(MATCH(B1 &
"P",$A$1:$A$10,0))=TRUE,IF(ISNA(MATCH(B1,$A$1:$A$1 0,0))=TRUE,"","m"),"p")

If this helps click Yes
--------------
Jacob Skaria

"Steve" wrote:

I am looking for a way to develop a program that will do the following.

Lookup a number from a table and then display the proper responses.

example...I am looking for number 30013-871

In the table there are two entries:
30013-871 = M
30013-871p = P

I want the program to recognize if there is the number that I am looking for
plus a "P" on it, and display "P". If it's only the number without the P, I
want it to display "M".

Can anyone help with this??

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default vlookup in

This is very good; very comprehensive:
http://www.cpearson.com/excel/TablesAndLookups.aspx

This should be a little easier to digest:
http://www.contextures.com/xlFunctio...ml#IndexMatch4


HTH,
Ryan---
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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup problem - unable to get the vlookup property Fred Excel Programming 2 August 22nd 08 05:23 PM
using a vlookup to enter text into rows beneath the vlookup cell Roger on Excel Excel Programming 1 November 29th 07 12:09 PM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM


All times are GMT +1. The time now is 01:33 PM.

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"