+ Reply to Thread
Results 1 to 15 of 15

Parenthesis help needed

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Parenthesis help needed

    Good Day,

    I want to use a formula to insert parenthesis into a cell that contains numbers. I have searched on Google but I cant find a solution.

    For Example,

    I have a number: 0435874226

    I want to insert parenthesis in the following places

    (043) 5874226.

    Can anyone assist me with a solution to my problem?
    Last edited by Helgard25; 03-05-2015 at 10:19 AM.

  2. #2
    Registered User
    Join Date
    01-28-2014
    Location
    Brno
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Parenthesis help needed

    Hi,

    Try

    '(043) 5874226

    Is this what you wanted?

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,498

    Re: Parenthesis help needed

    With A1 is number, try in next cell B1:

    ="("&LEFT(A1,3)&") "&MID(A1,4,255)
    Quang PT

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: Parenthesis help needed

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Parenthesis help needed

    Thank you guys, will give it a try!!

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Parenthesis help needed

    Or this

    ="("&REPLACE(A1,4,,") ")

    Row\Col
    A
    B
    1
    0435874226 (043) 5874226
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Parenthesis help needed

    It works Perfectly!! Thank you

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: Parenthesis help needed

    @Alkey: that is very neat


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  9. #9
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,498

    Re: Parenthesis help needed

    Good job, Alkey

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Parenthesis help needed

    @TMS
    @bebo021999

    Thank you both of you

  11. #11
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Parenthesis help needed

    Quote Originally Posted by TMS View Post
    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    TMS if I wanted to insert a "-" for example

    (043) 587-4226

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Parenthesis help needed

    Try this one

    =REPLACE("("&REPLACE(A1,4,,") "),10,,"-")

    Row\Col
    A
    B
    1
    0435874226 (043) 587-4226

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,935

    Re: Parenthesis help needed

    Tried to +Rep you but it seems I need to "spread the love" or something like that

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Parenthesis help needed

    Quote Originally Posted by TMS View Post
    Tried to +Rep you but it seems I need to "spread the love" or something like that
    ...Can't win them all

  15. #15
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,498

    Re: Parenthesis help needed

    @TMS, give reps to all his posts today

+ 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. Using parenthesis with vba methods
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2013, 04:08 AM
  2. Parenthesis Help with SQL in VBA
    By jo15765 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2012, 03:32 AM
  3. Missing parenthesis
    By docrobo in forum Excel General
    Replies: 3
    Last Post: 10-23-2011, 05:18 PM
  4. Parenthesis
    By John Abbot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-10-2007, 09:49 AM
  5. [SOLVED] Parenthesis
    By GitFinger in forum Excel General
    Replies: 2
    Last Post: 03-31-2006, 10:30 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