+ Reply to Thread
Results 1 to 4 of 4

Change formatting based on displayed value

  1. #1
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Change formatting based on displayed value

    I’ve got a list of hyperlinked timestamps in “mm:ss” format and that’s the problem; I only thought it was in the “mm:ss” format. The actual format is “Time,” so when I type in “15:03” intending “15 minutes and 3 seconds,” Excel sees it as “3:03:00 AM.” I’ve tried changing the formatting in the column to actual “mm:ss,” but when I do, Excel converts all of the timestamps based on the functional values, not the characters on display.

    Is there any way to convert the formatting of my timestamps to the intended “mm:ss” formatting (or even Text if necessary) based on the displayed characters while maintaining the hyperlinks associated with each? I even tried doing a kludgy concatenation, but even that disregarded the displayed values. As always, thanks in advance for any help!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Change formatting based on displayed value

    First of all, select a blank cell (e.g. H3) and enter the value 60 in that cell. Select H3 again and click on < copy > (or Ctrl-C).

    Then move your cursor and select all the cells from A3 down that you want to change, then right-click and select Paste Special.

    In the dialogue box that pops up, click on Values and also on Divide, then click OK.

    With the cells in A3 down still selected, change the formatting in those cells to a Custom format of mm:ss.

    And that's it. You can delete the 60 from cell H3.

    Hope this helps.

    Pete

    EDIT: In future, enter the times with a leading zero for hour, e.g. as 0:5:20 for 5min and 20sec.
    Last edited by Pete_UK; 09-05-2018 at 08:10 PM.

  3. #3
    Forum Contributor Mvaldesi's Avatar
    Join Date
    01-21-2011
    Location
    Plano, TX
    MS-Off Ver
    MS365 (PC) v.2108
    Posts
    259

    Re: Change formatting based on displayed value

    Thank you, Pete_UK; this worked perfectly!! And thanks for the tip on leading zeros for hours; date/time formats are a notoriously sore spot for me; this helps a bunch! Cheers!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Change formatting based on displayed value

    Glad it worked for you - thanks for the rep.

    Pete

+ 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: 2
    Last Post: 09-02-2018, 01:09 PM
  2. Change how name is displayed in a cell
    By acct-guy in forum Excel General
    Replies: 5
    Last Post: 08-31-2016, 12:59 PM
  3. Change date based on formatting
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2015, 01:16 AM
  4. Change Formatting based on Formula
    By Legend Rubber in forum Excel General
    Replies: 6
    Last Post: 04-08-2015, 11:48 AM
  5. [SOLVED] How to change which chart is displayed based on a cell value
    By Mubzie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2014, 11:58 AM
  6. Conditional Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  7. [SOLVED] Change cell formatting based on value?
    By LurfysMa in forum Excel General
    Replies: 4
    Last Post: 09-05-2005, 09:05 AM

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