A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup with part of cell text



 
 
Thread Tools Display Modes
  #1  
Old April 8th, 2009, 01:26 PM posted to microsoft.public.excel.worksheet.functions
Madiya
external usenet poster
 
Posts: 12
Default Vlookup with part of cell text

I need to use vlookup but the problem is that my cell contains a
bigger text string.
For e.g. cell text is CL BW 205
I want to use vlookup with BW which will return corresponding value
from the same row, 3rd col.

Is there any way to do this with a formula.

Regards,
Madiya
  #2  
Old April 8th, 2009, 02:20 PM posted to microsoft.public.excel.worksheet.functions
Stefi
external usenet poster
 
Posts: 1,841
Default Vlookup with part of cell text

Use =VLOOKUP(MID(A2,4,2), ... ) if the required substring is always 4th and
5th characters of cell text!

Regards,
Stefi

„Madiya” ezt *rta:

I need to use vlookup but the problem is that my cell contains a
bigger text string.
For e.g. cell text is CL BW 205
I want to use vlookup with BW which will return corresponding value
from the same row, 3rd col.

Is there any way to do this with a formula.

Regards,
Madiya

  #3  
Old April 8th, 2009, 05:08 PM posted to microsoft.public.excel.worksheet.functions
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
Default Vlookup with part of cell text

try:

=MIN(IF(ISNUMBER(FIND("BW",$A$1:$A$10,1)),ROW($A$1 :$A$10),""))


array-enter this formula i.e. with CTRL+SHIFT+ENTER instead of using
just ENTER
if you enter this formula correctly curly brackets {} will show
(adjust A1:A10 to suit)


pls click YES if this post helped you



On 8 Kwi, 14:26, Madiya wrote:
I need to use vlookup but the problem is that my cell contains a
bigger text string.
For e.g. cell text is CL BW 205
I want to use vlookup with BW which will return corresponding value
from the same row, 3rd col.

Is there any way to do this with a formula.

Regards,
Madiya


  #4  
Old April 8th, 2009, 05:25 PM posted to microsoft.public.excel.worksheet.functions
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
Default Vlookup with part of cell text

sorry, forgot the most important

the following array-entered formula:
=OFFSET($A$1,MIN(IF(ISNUMBER(FIND("BW",$A$1:$A$10, 1)),ROW($A$1:$A
$10),""))-1,2)

should bring required result




On 8 Kwi, 18:08, Jarek Kujawa wrote:
try:

=MIN(IF(ISNUMBER(FIND("BW",$A$1:$A$10,1)),ROW($A$1 :$A$10),""))

array-enter this formula i.e. with CTRL+SHIFT+ENTER instead of using
just ENTER
if you enter this formula correctly curly brackets {} will show
(adjust A1:A10 to suit)

pls click YES if this post helped you

On 8 Kwi, 14:26, Madiya wrote:



I need to use vlookup but the problem is that my cell contains a
bigger text string.
For e.g. cell text is CL BW 205
I want to use vlookup with BW which will return corresponding value
from the same row, 3rd col.


Is there any way to do this with a formula.


Regards,
Madiya- Ukryj cytowany tekst -


- Poka cytowany tekst -


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 OfficeFrustration.
The comments are property of their posters.