+ Reply to Thread
Results 1 to 3 of 3

Is there a way to show/hide decimals on certain condition

Hybrid View

  1. #1
    Registered User
    Join Date
    05-25-2020
    Location
    Denmark
    MS-Off Ver
    Professional Plus 2016
    Posts
    58

    Is there a way to show/hide decimals on certain condition

    Hi,

    If Millions is selected I would like to show 1 decimal.
    If Thousands is selected I would like to show zero decimal.

    Is there a way of of achieving this without making formula in other cells?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,432

    Re: Is there a way to show/hide decimals on certain condition

    I think your best option is to use conditional formatting based on a formula like =$C$3="Thousands" that sets the number format of the cell as desired: https://www.excel-easy.com/data-****...ormatting.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Is there a way to show/hide decimals on certain condition

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Replies: 0
    Last Post: 10-09-2021, 06:18 PM
  2. vba show / hide button condition value
    By nunocabete in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2016, 02:00 AM
  3. Replies: 2
    Last Post: 02-13-2015, 07:36 AM
  4. [SOLVED] Show/hide button by condition
    By mscofield in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2014, 03:06 AM
  5. Show/Hide a sepcific column based on a condition in a cell
    By uakhan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 05:50 AM
  6. Hide or show Rows with IF condition
    By geekaysys in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 10:05 AM
  7. hide/show range of cells by condition
    By eugz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-28-2009, 11:10 AM

Tags for this Thread

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