+ Reply to Thread
Results 1 to 5 of 5

Macro to remove decimal but leave number in brackets in place

  1. #1
    Forum Contributor
    Join Date
    11-08-2017
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    122

    Macro to remove decimal but leave number in brackets in place

    Need a macro that will remove the .0 but to leave the bracket with number inside in place in Column Q2 -Q40(Range)

    The data look like this
    15.0(4)
    10.0(3)
    12.0(2)
    6.0(2)
    9.0(1)
    22.0(1)
    24.0(1)
    21.0(1)
    20.0(1)
    18.0(1)
    17.0(1)
    14.0(1)
    13.0(1)

    I need it to look like this

    15(4)
    10(3)
    12(2)
    6(2)
    9(1)
    22(1)
    24(1)
    21(1)
    20(1)
    18(1)
    17(1)
    14(1)
    13(1)

    Rep given for a working one thanks for your help

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Macro to remove decimal but leave number in brackets in place

    How about
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: Macro to remove decimal but leave number in brackets in place

    Hi, without a macro.

    1. Select the range to remove '.0'
    2. Press the Ctrl + H
    3. In the Find what box type .0
    4. Leave the Replace with box blank
    5. Click the Replace All button.

    Greetings.

  4. #4
    Forum Contributor
    Join Date
    11-08-2017
    Location
    London
    MS-Off Ver
    Office 2007
    Posts
    122

    Re: Macro to remove decimal but leave number in brackets in place

    Quote Originally Posted by Fluff13 View Post
    How about
    Please Login or Register  to view this content.
    Thanks Fluff13 work like a charm +++Rep

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Macro to remove decimal but leave number in brackets in place

    You're welcome & thanks for the feedback

+ 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. [SOLVED] Subtraction of 2 decimal place numbers giving 12 decimal place answer
    By njb212 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2018, 09:35 PM
  2. [SOLVED] Number Format for Decimal Place
    By sumonrezadu in forum Excel General
    Replies: 2
    Last Post: 05-15-2014, 04:14 PM
  3. [SOLVED] Remove error message, leave formulas in place
    By Silchas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2014, 03:13 PM
  4. Replies: 1
    Last Post: 02-09-2013, 10:57 PM
  5. Decimal Place in Number
    By Deantwi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2008, 02:58 PM
  6. setting number to one decimal place with formula
    By caliskier in forum Excel General
    Replies: 1
    Last Post: 01-17-2007, 06:54 PM
  7. Replies: 3
    Last Post: 03-18-2006, 02:25 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