![]() |
#1
|
|||
|
|||
![]()
Hi all,
Sorry if the title doesn't make much sense, I'm not sure what I want to do would be called. If a Mod knows of a better title, please feel free to change it ![]() Using Excel 2007, I've downloaded a Baseball schedule in CSV format to import into my Outlook 2007 calendar. However, being in the UK my timezone is GMT and therefore +5 over the ET that is in the schedule. There are two columns, C is marked START_TIME_ET, B is START_TIME. Column B is designed apparently for your own timezone - and as such I tried to reference cell C2 as below: Code:
=C2+5 However the formula did nothing. So I checked the cell format and it was: Code:
Custom - h:mm AM/PM If anyone could help, I'd appreciate it - I'm not overly clued up on Excel ![]() Many thanks, Karl ![]() |
#2
|
||||
|
||||
![]()
Hi Karl,
In Excel, a day (or 24 hours) is 1. Therefore an hour is 1/24, a minute is 1/24/60, etc.. In your formula: Code:
=C2+5 So if you wanted to add five hours you would use Code:
=C2+(5/24) Code:
=C2+(E1/24) |
#3
|
|||
|
|||
![]()
Thanks Colin, that makes good sense and worked well
![]() Two further things have cropped up, one from your reply, another from the time adjustment. 1) You mention for example using a single cell to reference to - considering the DST/BST etc time changes that makes sense. It worked for the first cell in the column, however if I used the little black cross symbol that pops up when you hover bottom-right of a cell to then replicate the formula down the next 195 cells in the column, (for example) (E1/24) then became (E2/24), (E3/24) and so on. Is there a cell format to change to stop that and to make each cell reference only E1 and not each consecutive E cell? 2) There is a column in the sheet with the Game dates in - labelled "START_DATE". Some of the games start at for example 7:05PM ET. Add 5 hours for my timezone and that becomes 12:05AM UTC. That is obviously into the next day, and so I was wondering is there a way to adjust the date (in a new column, as similar to the time adjustment) to change the date if the Start Time goes over 12AM? Thanks again, Karl |
#4
|
||||
|
||||
![]()
Hi Karl,
You can put a $ sign in front of column and/or row references to lock them when you copy/paste/fill. E$1 would lock the 1 (for when you fill down a column) $E1 would lock the E (for when you fill across a row) $E$1 locks both. E1 locks neither. Accounting for the date roll should just be a case of adding the date, time and time adjustment together. If you have any trouble then feel free to attach the workbook to the thread. Last edited by Colin Legg; 02-28-2011 at 02:40 AM. |
#5
|
|||
|
|||
![]()
Hi Colin,
Very sorry for the delayed reply, University has taken over the last few months! As such, in the end I gave up with the CSV file when I realised the dates were going into my Calendar wrong due to the US date display. However I must stress that your replies have not been in vein! The information, especially for locking cell references has helped me further develop some other spreadsheets including ones used for my business so I am extremely grateful for that. Sorry once again and thank you for your time, Karl P.S. - Rep left ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Identify "Propose New Time" meeting responses in VBA, and how to response with them | frilian | Outlook | 0 | 09-02-2010 07:48 AM |
"Microsoft Excel Application" missing in the "Component Services" on win08 | sword.fish | Excel | 0 | 02-26-2010 02:09 PM |
Excel error: "Too many different cell formats" | enviroko | Excel | 0 | 01-09-2008 07:27 AM |
Reminder "snooze time" problem | Steven Wild | Outlook | 0 | 03-08-2006 03:59 PM |