+ Reply to Thread
Results 1 to 4 of 4

left,right,mid with conditions?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-07-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    100

    left,right,mid with conditions?

    I have a cell that contains 8/303 (50.0) in cell B1.

    I want to take the data before the / in cell C1

    I want the data to the right of the / but before the brackets in D1

    I want all data within the brackets in E1

    It has to be conditional cause the numbers can be single, double or triple digits.

    regards,

    burdo

  2. #2
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: left,right,mid with conditions?

    Cell C1=LEFT(B1,FIND("/",B1)-1)
    D1= MID(B1,FIND("/",B1)+1,(FIND("(",B1)-FIND("/",B1)-1))
    E1=MID(B1,FIND("(",B1)+1,(FIND(")",B1)-FIND("(",B1)-1))

    Regards,
    Suhas

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,730

    Re: left,right,mid with conditions?

    In B1 =LEFT(A1,FIND("/",A1)-1)
    In C1 =MID(A1,FIND("/",A1)+1,FIND("(",A1)-FIND("/",A1)-1)
    In D1 =RIGHT(A1,LEN(A1)-FIND("(",A1)+1)

    Assumes data is in A1
    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 Contributor
    Join Date
    09-07-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    100

    Re: left,right,mid with conditions?

    these responses were top class and both work, thanks for your help.

    regards,

    burdo

+ 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. if statement using left and right conditions
    By Set_Shot_Dave in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-22-2021, 04:18 PM
  2. Collapse columns from left to right (not right to left)
    By SiriS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2013, 04:00 PM
  3. [SOLVED] LEFT(A1,3) or LEFT(RC[-1],3) which one is more speedy ?
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 02:23 AM
  4. Automated =Left, =Left(Right), =Right & Concatenate
    By mikeconomy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-29-2011, 08:07 AM
  5. Replies: 1
    Last Post: 07-04-2005, 09:05 AM

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