+ Reply to Thread
Results 1 to 4 of 4

Put into a single Range two variables mm and ss

  1. #1
    Registered User
    Join Date
    02-09-2018
    Location
    Scottsdale
    MS-Off Ver
    Office 365
    Posts
    4

    Question Put into a single Range two variables mm and ss

    I have two variables (mm and ss) (singles) that i want to place into a single Range on a sheet. They are minutes and seconds and I would like the results to be mm:ss. Any help would be appreciated.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Put into a single Range two variables mm and ss

    Here's one way:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-09-2018
    Location
    Scottsdale
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Put into a single Range two variables mm and ss

    This works fine except when the seconds are less than 10 the number. For example, given mm = 1 and ss = 9 it shows up as 1:9. Is there a way for it to be 1:09??

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Put into a single Range two variables mm and ss

    Maybe:

    Please Login or Register  to view this content.
    And thanks for the rep!
    Last edited by xladept; 03-07-2018 at 06:22 PM.

+ 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. [SOLVED] Need to calculate variables for single time only
    By shiva_raj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2017, 02:13 AM
  2. Replies: 1
    Last Post: 11-09-2014, 06:04 PM
  3. [SOLVED] Transpose and Merge Variables into a Single Column
    By greatjobtoday in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-12-2012, 05:44 PM
  4. Multiple Variables in a single column
    By ExcelHelp813 in forum Excel General
    Replies: 1
    Last Post: 05-23-2012, 02:40 PM
  5. Formula to calculate single cell based on many variables
    By malawimick in forum Excel General
    Replies: 7
    Last Post: 12-15-2011, 02:13 AM
  6. Data + variables (single cell)
    By JeffVB in forum Excel General
    Replies: 2
    Last Post: 09-16-2011, 12:26 AM
  7. Cell.Formula failing with single & double variables
    By EseKuent in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2009, 02:36 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