Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Inserting time in spreadsheet

  1. #1
    Member
    Join Date
    Nov 2012
    Posts
    33
    Rep Power
    0

    Inserting time in spreadsheet

    I have a spreadsheet that I keep track of my blood sugar levels (I'm a diabetic), and it's set up like this:

    Code:
    Date                   Blood Level    Time              Blood Level    Time                          Blood Level    Time                          
    Sun-Dec-09		242	      7:30 AM		206	       1:21 PM
    Each time I take my blood sugar level, I must record the level and the time. The level fluctuates, but the time has to be entered manually. I have tried =now() as the time, but every time I open the spreadsheet, anything in the =now() changes to the current time. I need some way to automatically enter the ACTUAL time and keep it from changing.

    Does this make sense? And, can anyone help me?

    Thanks
    Last edited by papabill; 12-09-2012 at 11:39 PM.

  2. #2
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    Assuming your first Blood Level (242) is in cell B2, in cell C2 (col. Time) copy this formula.

    =IF(ISBLANK(B2),"",IF(C2="",NOW(),C2))

    When you fill in B2 and C2 is empty the time will fill in and will not change unless you empty B2 again.
    Last edited by rollis13; 12-10-2012 at 04:35 AM.

  3. #3
    Member
    Join Date
    Nov 2012
    Posts
    33
    Rep Power
    0
    Quote Originally Posted by rollis13 View Post
    Assuming your first Blood Level (242) is in cell B2, in cell C2 (col. Time) copy this formula.
    =IF(ISBLANK(B2),"",IF(C2="",NOW(),C2))
    When you fill in B2 and C2 is empty the time will fill in and will not change unless you empty B2 again.
    I guess I should have gone into more detail.

    There are a possibility of 12 "tests" a day, two columns, one for level, the other for time (each one for a 2 hour span), for every day in the month (this month has 31 days) The spreadsheet covers from B4..Y34. The "level" slots are B,D,F,H,J,L,N,P,R,T,V,and X, and the "time" slots are C,E,G,I,K,M,O,Q,S,U,W, and Y.

    Each level goes in one column, and the time goes in the adjacent column (to the right). I only test every 4 hours or so, so of course I don't enter data in every cell.

    I'm probably making this infinately harder, but it would be great if I could get a workable solution.

    Thanks in advance.

  4. #4
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    From the cell C2 just copy-down as needed the formula in column C and then copy the entire column C to all the other Time columns.
    Last edited by rollis13; 10-17-2013 at 02:37 AM.

  5. #5
    Member
    Join Date
    Nov 2012
    Posts
    33
    Rep Power
    0
    Thank you so much!

  6. #6
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    Glad being of some help .

  7. #7
    Junior Member
    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0
    Quote Originally Posted by papabill View Post
    I need some way to automatically enter the ACTUAL time and keep it from changing.

    Does this make sense? And, can anyone help me?

    Thanks
    Excel has some keyboard shortcuts to do this:
    Insert Date: Ctrl + ;
    Insert Time: Ctrl + Shift + ;

    Alternatively, here are two other slightly more tedious, (but more flexible) ways to turn dynamic equations into fixed values:
    1) After you've imputed your equations into want "Copy" then "Paste as Values" over the same cell(s). Can be for a single cell or a range of cells.
    2) While imputing an equation highlight the part you no longer want to be volatile and press "F9" (e.g. highlight the "=NOW()" in your formula bar and press "F9", then "Enter" to keep the changes.)

  8. #8
    Member
    Join Date
    Nov 2012
    Posts
    33
    Rep Power
    0
    Thanks, but the solution that rollis13 gave me works beautifully. But I do appreciate the extra info. Who knows, I might be able to use it somewhere else.

  9. #9
    Member
    Join Date
    Nov 2012
    Posts
    33
    Rep Power
    0
    Well, ain't it my luck. The VERY first day of a new year, my blood level is perfect (103 at getting out of bed), and my new sheet will NOT work, and I keep getting a "circular reference" warning.

    I hope the REST of the year isn't going to be this bad.

    Thanks

  10. #10
    Member rollis13's Avatar
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0
    Maybe if you copy the entire sheet to the new sheet and then clear all the manual inputted data it will be ok.
    Last edited by rollis13; 01-01-2013 at 09:48 PM.

Similar Threads

  1. Calculate Time Difference Between Time In HH:MM
    By Stalker in forum Excel Help
    Replies: 8
    Last Post: 03-28-2013, 03:27 PM
  2. Budget Spreadsheet Template
    By rich_cirillo in forum Excel Help
    Replies: 1
    Last Post: 02-12-2013, 10:32 PM
  3. Displayin Date/Time in "original" time zone
    By Rasm in forum Excel Help
    Replies: 4
    Last Post: 04-21-2012, 02:02 AM
  4. Spreading a time range (shift time, etc) in columns.
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 1
    Last Post: 08-23-2011, 11:45 AM
  5. FreezePane In A Userform SpreadSheet Control 11.0
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 05-15-2011, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •