Consulting

Results 1 to 6 of 6

Thread: Hide Unnecessary Decimal Markers

  1. #1
    VBAX Newbie
    Joined
    Mar 2016
    Posts
    3
    Location

    Hide Unnecessary Decimal Markers

    D3:E36 is Custom Formatted as ? ???.??? and contains simple multiplication formulas, eg: =(n*n)

    I want to hide decimal markers when whole numbers (without decimal places) are returned.

    Please see the yellow cells in the attached sample.

    Can someone please offer Macros that I can copy & paste?

    I am using Excel 2010.

    mgs
    Attached Files Attached Files

  2. #2
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    That's more complicated than it sounds. Its one of the well know quirks of Excel.

    There really isn't a way to do that with native Excel.

    How open are you (or your boss's IT security crew) to VBA?

  3. #3
    VBAX Newbie
    Joined
    Mar 2016
    Posts
    3
    Location
    Quote Originally Posted by mikerickson View Post
    That's more complicated than it sounds. Its one of the well know quirks of Excel.

    There really isn't a way to do that with native Excel.

    How open are you (or your boss's IT security crew) to VBA?
    I am retired, and a novice at spreadsheeting (home use).

    I know nothing about VBA (other than copy/paste other people’s code).

    Is it dangerous?

  4. #4
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Some company IT departments don't allow employees to enable the macros in Excel.
    Its not dangerous, but some coders are.

  5. #5
    Quote Originally Posted by mikerickson View Post
    Some company IT departments don't allow employees to enable the macros in Excel.
    Its not dangerous, but some coders are.
    Well said....

  6. #6
    VBAX Newbie
    Joined
    Mar 2016
    Posts
    3
    Location
    Quote Originally Posted by mikerickson View Post
    Some company IT departments don't allow employees to enable the macros in Excel.
    Its not dangerous, but some coders are.
    "Problem solved!"
    Please see the attached Word document.
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •