+ Reply to Thread
Results 1 to 3 of 3

Changing number category based on the content of the cell

  1. #1
    Registered User
    Join Date
    05-20-2022
    Location
    London, England
    MS-Off Ver
    Microsoft 365
    Posts
    15

    Changing number category based on the content of the cell

    Is there a way to automatically change the number format based on the content of a cell? I have a column which is date of birth (Long date number category), but missing numbers are 99999, however, it automatically changes this to a date - 13/10/2173. How do I change this so when I type 99999 it is automatically text category?
    Last edited by kpanton; 05-27-2022 at 05:48 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Changing number category based on the content of the cell

    You could use Conditional Formatting. Select your date range HOME>>Conditional Formatting >>New Rule>> Use formula >> =A1=99999 and format Number as TEXT
    Last edited by FlameRetired; 05-27-2022 at 01:17 PM.
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Changing number category based on the content of the cell

    Thank you for marking your thread Solved and the added rep.

+ 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. Changing a number that appears in cell depending on content
    By craigc0187 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-12-2021, 07:05 AM
  2. [SOLVED] vba changing a column width based on cell content
    By Chanty in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-13-2021, 04:21 AM
  3. Replies: 0
    Last Post: 04-09-2014, 04:21 PM
  4. changing the color of a cell based on content
    By trisham in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-26-2013, 04:26 PM
  5. Dynamically Changing Rows Based On Cell Content
    By djbcktt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-04-2013, 07:32 PM
  6. Changing the text on button based on cell content
    By a94andwi in forum Excel General
    Replies: 1
    Last Post: 06-11-2009, 12:58 PM
  7. Changing cell content based on button
    By vioravis in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2008, 04:16 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