+ Reply to Thread
Results 1 to 5 of 5

Mid Function not working

  1. #1
    Registered User
    Join Date
    03-03-2008
    Posts
    20

    Mid Function not working

    I'm using the following MID function: =MID(I9,SEARCH(" :",I9,1)+2,SEARCH(" :",I9,SEARCH(":",I9,1)+1)-SEARCH(": ",I9,1))

    Cell I9 contains: "JES Access Manager 7 2005Q4 : Deployment Example 1: AM Load Balancer, Distributed Authentication, a

    I just want to extract the following: Deployment Example 1

    I'm getting the #Value! Error.

    What's wrong with this formula?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =MID(I9,SEARCH(":",I9,1)+2,SEARCH("^^",SUBSTITUTE(I9,":","^^",2),1)-SEARCH(":",I9,1)-2)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    try this


    Change "C12" to cell address where data is placed

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-03-2008
    Posts
    20

    MidPoint Formula Reply

    Quote Originally Posted by NBVC
    Try:

    =MID(I9,SEARCH(":",I9,1)+2,SEARCH("^^",SUBSTITUTE(I9,":","^^",2),1)-SEARCH(":",I9,1)-2)
    Some of these do not have two colons, but only one colon. These instances return a #Value!. How would manipulate the above formula to not show #Value! but just a blank cell?

    Thx!!!!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =IF(LEN(I9)-LEN(SUBSTITUTE(I9,":",""))=2,MID(I9,SEARCH(":",I9,1)+2,SEARCH("^^",SUBSTITUTE(I9,":","^^",2),1)-SEARCH(":",I9,1)-2),"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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