+ Reply to Thread
Results 1 to 10 of 10

Copy exact display of another cell

  1. #1
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Copy exact display of another cell

    I have a cell that displays the difference between two times in hours. The "absolute" value of the cell is something like 40194, but when displayed in hours it is 13 (just what I want). I want another cell to be a copy of the 13, but display 13 exactly, rather than the 40194. How do I do this?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Copy exact display of another cell

    All you have to do is refer to that cell ( for example =A1) and then use the format painter to copy the format of cell A1 to the second cell..
    Cheers!
    Deep Dave

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copy exact display of another cell

    Dates and times in Excel are all just numbers, starting with 1 Jan 1900 as '1' and with times as fractions of a day (6am = 0.25, 12noon = 0.5, etc). If you just refer to that cell (using =A1 or similar), the 'internal' value in Excel will still be a number like 42310.541667 and Excel will calculate using that number.
    If you want to calculate using '13' then try this instead:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will turn the value of the 'hh' from your source cell into the hours in text format - but Excel is clever enough to treat 'text' numbers as numbers, so you can still calculate with them.
    Hope that makes sense!
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Copy exact display of another cell

    Thanks Aardigspook, that worked. I do have a new question. I wanted to in effect create a count up timer by subtracting a fixed time ( CNTL + SHIFT + ; ) from the current time ( =NOW() ), but it's not taking into account the date of the original time and is refreshing to 0 hours when 24 hours comes up. Does this make sense? How can I get it to tell me 24, 25, 26 hours, etc...?

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copy exact display of another cell

    To get hours to count beyond 24, you need to use [h] in the cell format instead of just h.

    Let's say you have 2 Nov 15 15:12 in A1 and 3 Nov 15 20:00 in A2.
    If you use the formula =A2-A1 you'll get the answer 1.2, as the second date/time is 1.2 days later than the first. If you format this as hours, using just h, you'll get the answer 4. If you use [h] you'll get 28. If you use [h]:mm you'll get 28:48.

    So, probably all you need to do is a simple subtraction, with the cell formatted using the custom format [h].

    Hope that helps.

  6. #6
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Copy exact display of another cell

    Yes Aardigspook! That helped a lot! It is now reading 73 instead of 1. One more question though, the cell that I was originally asking about, the one I wanted to display 73 as text, is still displaying it as 1. Not sure why...?

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Copy exact display of another cell

    Another way to to copy and then Paste, Keep Source Formatting.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copy exact display of another cell

    The same formatting applies to the formula I gave you in post 3, so try using =TEXT(A1,"[hh]") instead of =TEXT(A1,"hh").

  9. #9
    Registered User
    Join Date
    07-13-2015
    Location
    United States
    MS-Off Ver
    2003
    Posts
    62

    Re: Copy exact display of another cell

    Ah! That's it! Thank you so much for all your help! BTW how/where does one become an excel expert like yourself?

  10. #10
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Copy exact display of another cell

    You're welcome.

    I'm self-taught (like I think most members here are) - using a combination of:
    - Excel built-in help files (they're actually very useful),
    - online help (for example this page on custom formatting),
    - online tutorials (like Microsoft's online trg and downloadable training, as well as non-MS ones) and
    - forums like this one.
    Most folk have particular areas of expertise - I'm good with formatting, fairly good with formulas but only a learner with VBA.

+ 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] How do I display exact fractions instead of decimals?
    By Hawk in forum Excel General
    Replies: 6
    Last Post: 05-18-2015, 01:52 PM
  2. Find and display (go to) exact values (Macro)
    By Soilwork in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2014, 03:43 PM
  3. Displaying cell value if 2 other cells display the exact results
    By Streaky in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-10-2014, 07:59 AM
  4. Replies: 7
    Last Post: 05-03-2013, 07:19 AM
  5. Exact copy of cell reference
    By torixoz in forum Excel General
    Replies: 1
    Last Post: 06-22-2008, 04:28 AM
  6. [SOLVED] Creating an exact time display
    By Pref in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-28-2006, 09:15 AM
  7. [SOLVED] Copy exact value from one cell to new formula in another cell
    By asg2307 in forum Excel General
    Replies: 2
    Last Post: 02-06-2006, 05:40 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