+ Reply to Thread
Results 1 to 5 of 5

Simple MID function not working

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    ireland
    MS-Off Ver
    Excel 2003
    Posts
    23

    Simple MID function not working

    400372-4101955-S09 <------this is my cell where I want to extract info. I want to take out 4101955
    This is my function which I think is right?!?! =mid(E38,3,4)
    But it doesnt work, im just left with =mid(E38,3,4) in my cell

    Has to be something I am doing wrong?!?!Suggestions please?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,454

    Re: Simple MID function not working

    Format the destination cell as general. Select the cell press F2 then press Enter

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,970

    Re: Simple MID function not working

    Try this:

    =MID(E38,FIND("-",E38)+1,7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,824

    Re: Simple MID function not working

    Maybe that cell is formatted as Text - if so, change the format to General.

    However, your formula will take 4 characters out of E38, starting with the 3rd character, so I think you probably want:

    =mid(E38,8,7)

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    ireland
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Simple MID function not working

    genius, thank you!!

+ 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