+ Reply to Thread
Results 1 to 7 of 7

Cell Value Derision (easy answer)

  1. #1
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Cell Value Derision (easy answer)

    Very easy to be honest, but my mind is slow at the moment.

    Cell A4 has

    27/06/2012 09:49


    Cell I4 has

    27/06/2012

    I want cell H4 to show just 09:49. It derives its value from a web query so how can H4 be somthing like A4-I4?

    Thanks
    Last edited by spursrule68; 06-27-2012 at 04:56 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cell Value Derision (easy answer)

    As you say, use =A4-I4 and format H4 as "hh:mm"
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Re: Cell Value Derision (easy answer)

    cheers richard. the formatting thing is what i needed to do.

    Out of interest is there a way of keeping past data values on the chart? The x axis is time so say past data for the last 2 hours?

    like I said, this is a web query so the data does not stay int he spreadsheet.

    Thanks

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cell Value Derision (easy answer)

    Hi,

    You could change the background refresh to refresh every 120 minutes rather than the default background refresh.

  5. #5
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Re: Cell Value Derision (easy answer)

    Problem is that I want data to be put in every 5 seconds (i have a macro for this), but to keep past data from the last two hours

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Cell Value Derision (easy answer)

    In that case you'll need to create a macro that will copy and paste the data somewhere else every two hours.

    Check out the 'On Time' syntax in VBA

  7. #7
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Re: Cell Value Derision (easy answer)

    cheers richard. Will give it a quick look but may be too complex for my liking

+ 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