+ Reply to Thread
Results 1 to 8 of 8

Variabel text in MID. VLOOKUP?

Hybrid View

Bman84 Variabel text in MID. VLOOKUP? 06-21-2017, 06:58 AM
benishiryo Re: Variabel text in MID.... 06-21-2017, 08:01 AM
Bman84 Re: Variabel text in MID.... 06-21-2017, 09:29 AM
benishiryo Re: Variabel text in MID.... 06-21-2017, 09:40 AM
Bman84 Re: Variabel text in MID.... 06-21-2017, 10:03 AM
leelnich Re: Variabel text in MID.... 06-21-2017, 10:44 AM
FlameRetired Re: Variabel text in MID.... 06-21-2017, 08:05 PM
Bman84 Re: Variabel text in MID.... 06-22-2017, 06:49 AM
  1. #1
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Variabel text in MID. VLOOKUP?

    Hi all- Does this ARRAY FORMULA work? It requires Name on the left end and (initials) on the right end of the found string = James...(JE)
    Formula: copy to clipboard
    =LEFT(RIGHT(OFFSET($H$80,MIN(IF(LEFT($H$80:$Q$87,LEN(H66))=H66,ROW($H$80:$Q$87)-ROW($H$80))),MIN(IF(LEFT($H$80:$Q$87,LEN(H66))=H66,COLUMN($H$80:$Q$87)-COLUMN($H$80)))),3),2)


    here's the same formula with semi-colons instead of commas:
    Formula: copy to clipboard
    =LEFT(RIGHT(OFFSET($H$80;MIN(IF(LEFT($H$80:$Q$87;LEN(H66))=H66;ROW($H$80:$Q$87)-ROW($H$80)));MIN(IF(LEFT($H$80:$Q$87;LEN(H66))=H66;COLUMN($H$80:$Q$87)-COLUMN($H$80))));3);2)


    *You must press CTRL+SHIFT+ENTER to confirm entry of an ARRAY FORMULA in the Formula Bar.
    When copying the formula to other cells, make sure the copied cell is not part of the Paste Area.


    Please click the Add Reputation star below any helpful posts, and if you have your answer, mark your thread as SOLVED (Thread Tools up top). Thanks!-Lee
    Last edited by leelnich; 06-21-2017 at 12:50 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,733

    Re: Variabel text in MID. VLOOKUP?

    I am not sure where to swap ";" and "," for regional settings. This formula is the American version. The file is attached. Hopefully your settings will correct.

    Formula: copy to clipboard
    =TRIM(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(INDEX($C$3:$E$4,MATCH(1,MMULT(--ISNUMBER(SEARCH(A1,C3:E4)),
    ROW(INDIRECT("1:"&COLUMNS($C$3:$E$4)))^0),0),MATCH(1,MMULT(COLUMN(INDEX(1:1,1):INDEX(1:1,ROWS($C$3:$E$4)))^0,
    --ISNUMBER(SEARCH(A1,C3:E4))),0)),A1,""),"(",""),")",""))
    Attached Files Attached Files
    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-26-2013, 01:12 PM
  2. Variabel data range of formulas and charts
    By mark02 in forum Excel General
    Replies: 1
    Last Post: 12-13-2012, 10:04 PM
  3. how to change criteria Range become variabel in advanceFilter
    By venol in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-18-2011, 11:40 AM
  4. Using a variabel columnIndex in Vlookup function
    By Hein in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2009, 03:34 AM
  5. How to replace a filename by a variabel
    By Dibo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2006, 06:27 PM
  6. creating a VBA variabel from multiple named worksheet ranges
    By brachistochrone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2006, 05:20 AM
  7. getting the sum of variabel ranges
    By Hein in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2006, 02:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1