Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using MID within a formula


Hi all,

I'm trying to create a VLOOKUP formula that incorporates the MID
worksheet function and am having a few problems. I'll try to explain
what's going on...

In one spreadsheet I have a list of projects that are identified by a
ID number called a TU Number. It looks like this: TU103250148. In
another I have a list of projects that are identified by an ID number
called a PIMS number. The PIMS number is basically the first five
numerical characters of the TU Number; it looks like this: 10325

I can use the MID function to extract the PIMS number from the TU
number: =MID(A2, 3, 5)

However, what I can't do is get the VLOOKUP function to run the MID
function before it looks at my list of TU numbers. I don't know if this
is even possible. Can anyone suggest how (and if) this can be done?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=574103

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 179
Default Using MID within a formula

Without using MID function you can extract. try this one:

=VLOOKUP("??"&E1&"*",A1:B2,2,0)
A1:B200 - list of projects
E1: lookup value (TU Number)


"SamuelT" wrote:


Hi all,

I'm trying to create a VLOOKUP formula that incorporates the MID
worksheet function and am having a few problems. I'll try to explain
what's going on...

In one spreadsheet I have a list of projects that are identified by a
ID number called a TU Number. It looks like this: TU103250148. In
another I have a list of projects that are identified by an ID number
called a PIMS number. The PIMS number is basically the first five
numerical characters of the TU Number; it looks like this: 10325

I can use the MID function to extract the PIMS number from the TU
number: =MID(A2, 3, 5)

However, what I can't do is get the VLOOKUP function to run the MID
function before it looks at my list of TU numbers. I don't know if this
is even possible. Can anyone suggest how (and if) this can be done?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=574103


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Using MID within a formula

=INDEX(N1:N100,MATCH(PIMS,--MID(M1:M100,3,5),0))

where column M is the project ID, N is the column you want to extract.



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"SamuelT" wrote in
message ...

Hi all,

I'm trying to create a VLOOKUP formula that incorporates the MID
worksheet function and am having a few problems. I'll try to explain
what's going on...

In one spreadsheet I have a list of projects that are identified by a
ID number called a TU Number. It looks like this: TU103250148. In
another I have a list of projects that are identified by an ID number
called a PIMS number. The PIMS number is basically the first five
numerical characters of the TU Number; it looks like this: 10325

I can use the MID function to extract the PIMS number from the TU
number: =MID(A2, 3, 5)

However, what I can't do is get the VLOOKUP function to run the MID
function before it looks at my list of TU numbers. I don't know if this
is even possible. Can anyone suggest how (and if) this can be done?

TIA,

SamuelT


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile:

http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=574103



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Using MID within a formula


Many thanks Muhammed and Bob - both options solve the problem!


--
SamuelT
------------------------------------------------------------------------
SamuelT's Profile: http://www.excelforum.com/member.php...o&userid=27501
View this thread: http://www.excelforum.com/showthread...hreadid=574103

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 10:11 AM.

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"