Check A Datetime Is In GMT Or BST
Sep 22, 2009
i have a column
"Received On" contains the datetime of a mail received , it is in BST, sometimes it should be in GMT depends on the date or year, i'm not sure.
So what my query is, in another column, i have to check if the datetime in "Received On' is in BST, convert this datetime to GMT, otherwise if this time is in GMT, i don't need to add anything just copy that datetime alone.
eg: ie in ColumnA is the Datetime value
if ColumnA=BST then
ColumnB=ColumnA+1/24 (ie convert BST to GMT)
else if ColumnA=GMT then
ColumnB=ColumnA (ie not need to change, becz already columnA is in GMT)
View 9 Replies
ADVERTISEMENT
Apr 3, 2009
We have server in Troy(USA).So we are in the situation to convert EST DateTime to IST DateTime in EXCEL.
If you have any formula or Idea share with me.
Eg; EST : 04/03/09 09:31:53 (I/P)
IST : 04/03/09 07:01:53 (O/P)
View 9 Replies
View Related
Mar 31, 2014
I'm trying to do a select function in Google Spreadsheet.
=QUERY('Page1'!A:C;"select A,B,C where A >= datetime "&(F2) ; 1)
F2 contains a DateTime value : 28/03/2014 00:00:00.
I'm receiving this error:
Error: Unable to parse the query string parameter to QUERY Function 2: PARSE_ERROREncountered "A> = datetime 41726" at line 1, column 20.
Why spreadsheet returns an Integer value? How do I convert this int value to a DateTime?
View 2 Replies
View Related
Dec 18, 2009
I want to write a macro to add business hours to a datetime value, excluding weekends, non-working hours and holidays.
e.g., I have a value (datetime) of "18/12/2009 11:30:00 AM", I want to add 10 hours to this, so as to get the result as "19/12/2009 12:30:00 PM".
View 8 Replies
View Related
Jul 4, 2014
Is there a formula to remove seconds part from datetime stamp? 6/26/2014 6:14:25 AM, should be converted to 6/26/2014 6:14 AM I used ROUND((DATEVALUE(H2)+TIMEVALUE(H2))*1440,0)/1440 but it is providing #value! error
View 2 Replies
View Related
Jun 9, 2008
I have a macro which creates a new file and saves an extract of data to it. I would like to add a datetimestamp to the end of the filename while saving.
Is there anyway to do this using my existing macro with some changes?
My relevant part of the macro looks like this.
Workbooks.Add
ActiveWorkbook.SaveAs Filename:= _
"W:PJ_Report.xls", FileFormat:=xlNormal, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
This saves the file as PJ_Report.xls
I would like this to be
PJ_Report_20080609110403.xls
or even
PJ_Report_20080609 will do.
View 9 Replies
View Related
Nov 25, 2013
I am trying to date and time stamp a certain cell. This cell is going to be compared to another cell in another sheet (also date and time) so that I can track deadlines being met.
I am using the following code to stamp the cell:
VB:
Range("F26").NumberFormat = "[$-409]m/d/yy h:mm AM/PM;@".Value = Now()
Even with the number format, the cell is not stamped as a number. As a result I get #value errors when I take the difference between the stamped cell and the cell with the preset deadlines.
View 2 Replies
View Related
Jan 6, 2010
I am working on MS-Query in Excel.
Selecting few datetime columns by using ms query but it returns that columns data in wrong format.
And CONVERT function is also not working in ms-query.
Below is the MS-Query:
SELECT `Consolidated$`.Payroll_ID, `Consolidated$`.Full_Name, `Consolidated$`.`Current Designation`, `Consolidated$`.`Date of Joining`, `Consolidated$`.Department,
View 9 Replies
View Related
Sep 25, 2013
I have been using this statement
if(and(c1>=a1:a144,c1<=b1:b144),"yes","no"))
And it just works for the first 2 values c1, c2 and doesn't fit for the others.
The case is i have more than one event at the same video and i need to confirm that no event was taken unless it is between start and end.
Here are some samples:
Start dtime End Dtime Event Dtime
16/09/2013 22:13:34 16/09/2013 22:14:18 16/09/2013 22:13:38
16/09/2013 22:15:57 16/09/2013 22:24:30 16/09/2013 22:16:02
16/09/2013 22:24:30 16/09/2013 22:33:49 16/09/2013 22:17:32
16/09/2013 22:33:53 16/09/2013 22:35:05 16/09/2013 22:19:02
16/09/2013 22:35:05 16/09/2013 22:39:57 16/09/2013 22:20:02
So as you can see there are more than one event between one start and end dtimes.
View 4 Replies
View Related
Sep 25, 2013
I have been using this statement.
if(and(c1>=a1:a144,c1
View 3 Replies
View Related
Jun 18, 2014
Been working on this issue for the last couple of days with no luck. I have a column of data that is a data and time stamp, for any date or time like below. This is an ever growing list as users continue to populate the data.
13/04/2014 20:00
28/04/2014 17:30
09/04/2014 13:30
09/04/2014 14:00
03/05/2014 7:30
03/04/2014 11:10
On a separate sheet I have a list of times by 15 minute increments starting at midnight until 11:59PM like below.
12:00:00 AM
12:15:00 AM
12:30:00 AM
12:45:00 AM
I'm trying to count how often a time stamp occurred between two 15 minute increments. ventually I'll be plotting this data on a graph to show where most occurrences happen.
View 1 Replies
View Related
Nov 27, 2009
My company uses 4 types of barcodes 8, 12, 13, & 14 number barcodes for our products my problem is that I can't figure out how to force the barcode to format properly no matter how somebody enters it if they don't use spaces or put them in the wrong spots, I can't use custom formats because there is 4 different layouts
8 digit should be "#### ####"
12 digit should be "###### ######"
13 digit should be "# ###### ######"
14 digit should be "# ## ##### ######"
these barcodes are in columns L, M, & N also right now 'm using a formula in another cell to verify the barcodes by calculating the check digit and comparing it to the check digit typed the formula i'm using is
View 9 Replies
View Related
Aug 10, 2012
I have data in Row 53 that spans 7 columns, but stays in the same row. I want to design a loop to select every 7th cell in that row and check if it is empty. If not, add onto a "counter" then display the final number of occupied cells (the value of the counter) at the end. This is what I have so far, but I get all sorts of errors.
Code:
Sub Tester()
Dim WB As Workbook
Dim WS As Worksheets
Dim modCounter As Long
Dim Cell As Range
Set WB = Workbook("Transverse Series.xlsm")
Set WS = WB.Sheets(BM18)
[Code] ......
View 1 Replies
View Related
Nov 3, 2008
I am using this code
View 5 Replies
View Related
Jul 4, 2014
I want to have 1 check box affect 3 others in the following way: check box 1 if checked, allow check/uncheck of check boxes 2, 3, 4 if unchecked, uncheck boxes 2, 3, 4 and do not allow checking check box 1 is linked to D1 which starts with a value of false. cell E1 is if condition to have value 1 when D1 has value of true.
I have attempted to attach an example worksheet.
Test check control.xlsx
View 1 Replies
View Related
Sep 9, 2007
I am creating a userform with 10 checkboxes. The first 9 checkboxes are user options. I want the 10th check box to be a "Select All" option i.e. if the 10th checkbox is checked all the other 9 options are deemed to have been selected.
The way I want the display to work is that if the 10th checkbox is ticked all other checkboxes are cleared. Also if the 10th checkbox is ticked and any of the other check boxes is selected then the 10th checkbox should be selected.
I have tried coding this up but the checkboxes don't seem to operate as desired. I placed some code on the click event for the last option button to set the vlaue for all other buttons to false. This works but the 10th check box doesn't get ticked itself. When I try to code up the other bit I get similar issues.
View 9 Replies
View Related
Aug 20, 2009
When I press a command button I want to:
Uncheck a checkbox made with Control Toolbox
Check a particular Option Button within a group box made with the Forms Toolbar.
EDIT: Clarification, I want both things to happen when I click one button.
View 3 Replies
View Related
Jul 28, 2006
I have numerous hyperlinks in cells on a worksheet, next to these I have checkboxes. I am looking for a macro that will check if the boxes are checked and if not ignore them and if so run a certain macro.
View 6 Replies
View Related
Oct 31, 2011
Users can start an automatic copying process (active row from active sheet to sheet 2) by simply putting a date in a cell in column K. The activecell.row is copied over.
As part of the copying process, the value in cell D on the active row (the serial number) is copied to sheet 2.
Before this happens, I would like a checking procedure added to the code which will stop the same row being copied more than once, thus avoiding duplicates.
I have tried InStr and also worksheet.CountIf but can't figure this out.
Code snippet below.
If InStr(1, Sheets("Sheet!2").Range("A:A" & lngLastRow), TempRef) Then
Where the value in TempRef (the serial number) is searched for in Sheet 2 col A.
View 2 Replies
View Related
Mar 5, 2008
I have a sheet with 2329 rows. Row 1 & 2 should be the same number, then rows 3 & 4 should be the same, then 5 & 6, etc (see example below). This should result in an even number of rows, so either 2328 or 2330. So somewhere in this sheet, I either have a number repeated twice instead of just once, or a number that's not repeated at all. Is there an easy way to highlight where the error is without having to manually scan all 2329 cells?
23059
23059
23069
23069
23099
23099
23109
23109
23128
23128
View 9 Replies
View Related
Oct 21, 2009
I am trying to create a basic spreadsheet in MSExcel used to collect standard info (Name, address blah blah blah). The people who will complete this will need to classify the people they are listing into groups (Group A, Group B etc. 5 groups total) and each group will be listed on a separate tab of the workbook (maybe this isn't the best way?).
As they enter the people they will need to decide if the person they are adding is to receive the welcome kit. Each company is limited to 50 welcome kits. My thought is to use a check box for them to indicate yes or no on the welcome kit.
Is there a way to display the number of welcome kits that are remaining on whatever tab they happen to be on?
Is there a way to give a clear indicator next to each name that 'yes' has been selected (colored box, text?).
View 9 Replies
View Related
Mar 4, 2007
Is there a VBA function using which i can check for the existence if a particular value on an Excel ?
View 4 Replies
View Related
Jun 15, 2013
I am using an array from another application for option buttons. I have attempted to adapt this code for checkboxes but with no success.
VB:
Option Explicit
Private Sub cmdadd_click()
Dim wrs As Worksheet, i As Long, x As Long
[Code]......
View 5 Replies
View Related
Apr 21, 2014
I have a number of rows that contains data (normally numeric):
0 | 0 | 0 | 0 | ... |True
1 | 0 | 0 | 0 | ... |False
0 | 1 | 0 | 1 | ... |False
What's the formula that gives the True/False answers? I could go IF(AND(A1=0,B1=0,etc...),TRUE,FALSE) that gets the results, but can it be done in a smarter method or can it done via array method?
View 4 Replies
View Related
Nov 20, 2009
Is there a formula that I can use to check that all the depths are in a range of 1 to 5. If one depth is say 6 then this must be flagged up
View 4 Replies
View Related
Nov 30, 2009
I need two formulas that can do the folowing:
• check whether a cell contains text, if so, then trim all spaces and get result. If it doesn't contain text then set the result as blank.
• check whether THE CELL T13 contains text, if it does then check the adjected cell (U13) if it contains text, if so, then concatenate the two cells with a space between them and remove any other spaces. If the T13 doesn't contain text, the set the result as blank. Also, I have another question: how could I use the counta formula without counting spaces?
View 2 Replies
View Related
Oct 19, 2007
what is the vba code to check this conditon.
my excel file .sheet name "abc" . if cell "a3" have any value . and cell x3 values >=cell x10 ,then it show the input box to call new password "1234"
msgbox showned " true password you can work it now"
if user put wrong password .the workbook is cloesd with the msgbox "wrong password" then the application closed exit.
-cell x3 is datetime values "now" to compare with the cell x10 is the datetime "01012009 8:00" to check the outof date of the application
View 11 Replies
View Related
Jun 18, 2008
I am working on a sheet in Excel 2007 and am having trouble with Excel toggling with a checkbox. What I want is for a cell to have "A" in it if the box is checked and a "B" if it isn't. The code I have is:
Sub CheckBox6_Click()
If CheckBox6 = True Then
Range("B20") = "A"
Else
Range("B20") = "B"
End If
End Sub
View 9 Replies
View Related
Aug 17, 2008
Is there a way to test if let's say range a1:a10 contains a value of cell b1.
I would be thankful to get the VBA code to do that
View 9 Replies
View Related
Sep 22, 2008
I have a problem with my Excel Sheet, i am trying to write a macro that it checks the ids under the id column
Example:
ID | Ast Code | Ast 1 | Ast 2 | Ast 3
----------------------------------------
Id1 | Ast 1 | 1 | empty | empty
Id1 | Ast 2 |empty | 1 | empty
Id2 | Ast 3 |empty |empty | 1
Id3 | Ast 3 |empty |empty | 1
Id3 | Ast 1 | 1 |empty |empty
Than it must check for the duplicates ids what Ast Code they have, than at the result it must write from the previous one or from the after one take the Ast Code and write it near it..
For Example:
ID | Ast Code | Ast 1 | Ast 2 | Ast 3
----------------------------------------
Id1 | Ast 1 | 1 | 1 | empty
Id1 | Ast 2 | 1 | 1 | empty
Id2 | Ast 3 |empty | empty | 1
Id3 | Ast 3 | 1 |empty | 1
Id3 | Ast 1 | 1 |empty | 1
View 11 Replies
View Related