+ Reply to Thread
Results 1 to 3 of 3

How do I dynamically change the Number Format of a cell

  1. #1
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Colorado, US
    MS-Off Ver
    MS Prof. 2010 and 2013 + 365
    Posts
    113

    How do I dynamically change the Number Format of a cell

    One of my cells is used for reporting data. Depending on the choice made by the user (in other cells), this cell will show results that can either be percentages or numbers.
    The problem I have is that the Number Format of the cell does not change to match the data it is getting.
    The data the cell is receiving is formatted in their respective correct number format.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: How do I dynamically change the Number Format of a cell

    You might be able to use conditional fomatting based on the choice made by the user.

    What choice are they making and how are they making?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-30-2012
    Location
    Colorado, US
    MS-Off Ver
    MS Prof. 2010 and 2013 + 365
    Posts
    113

    Re: How do I dynamically change the Number Format of a cell

    In several pull-down menus (validated cells) the user can select a name, a department and a date.
    The report populates itself with the the type of activities for the department selected, and shows quantities for each activity (number of calls made, web visitors, closed sales, etc. etc) for each day, week, month and year (these numbers have been entered by employees using a UserForm).
    At the bottom of the report are several rows doing calculations on the data above it (the quantity of activities). The same row will change dependent on the department selected. For one department it may say "Web Convert Rate" and shows a percentage result in all the date columns. For another department selected the row (and the same cell) will change and may say "Total Billable Hours" and returns a number in the date columns. The problem is that the format of the numbers does not change.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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