If the time is not less than 0.001 seconds, then multiply it by 1000, and express it in milliseconds. Otherwise: If the time is not less than 0.000001 seconds, then multiply it by 1000000, and express it in microseconds. Otherwise: multiply it by 1000000000, and express it in nanoseconds and this all has to go in a chart like this one. I was wondering what the code would be to get this
Sub MAcro3()
Function secnum(seconds)
If seconds > 0 Then
secnum = seconds
Else
Milliseconds = seconds / 1000
If Milliseconds > 0.001 Then
Value (Substitute(0.001, 0.001 * 1000))
secnum = Milliseconds
Else
Microseconds = seconds / 1000000
If Microseconds > 0.000001 Then .............
Vendor Number Vendor Name Contact Details E-Mail Address Commodity
3DD001 3D DRAUGHTING DESIGN TECHNOLOGIES CC 021 506 3333 spyker@3ddraughting.com Capital Projects
AAR001 AARD MINING EQUIPMENT 0537122171 sgaothaelwe@aardme.co.za Mining Contractors and Labour Hire
ABB002 ABB SOUTH AFRICA (PTY) LTD 086 022 2123 dol.walter.za@abb.com Capital Projects
Column E is my commmodity reference. There is 15 different commodities. So on Sheet 2 I created 15 buttons, all name according to one of the commodities.
What I am trying to do, is that when some one presses one of the buttons it must return all the data from sheet 1, but only for the selected commodity or button pressed. How do I reference my buttons to bring back only this data.
My husband sent me this program in Excel where you type in your birthdate and not only does it give you your age to the millisecond, but it also gives you a list of traits the person has. For example, I was born on November 20, 1987 and this popped up:
Age in years 19.61 Age in months 235 Age in days 7157 Age in hours 171760 Age in minutes 10305599 Age in seconds 618335921 Age in Milli seconds 61833592095 Age in weeks 50097 You born on Friday
I have done a measurement with the labview programm and I have saved it in a txt file, but I need to open it with excel to finish my work. When I open it with excel the time column shows the time that each measurement was taken, like the time in a digital clock. I need to change that form to appear the time between 2 measurements (Δt) in milliseconds (which of course has to be the same Δt every time). I've been told that I can change that, but I don't know how...
My challenge is discovering the difference in time between two rows of data that is imported with milliseconds in the time slot. In my example below I would like to see how I can subtract the time listed in line 4 from line 3 (11:18:59.566 - 11:18:59.550). When I try now I get either 1.85185E-07 or 00:00.0 or 0.000000 depending how the cell is formatted.
I am using a VBA macro (Using mouse clicks as inputs for neuroscience experiment?).
What the macro does is it inputs a timestamp every time a keyboard combination is used (alt+right arrow in this case).
The part of the macro which inputs the timestamp is like this:
Sub AltRight_Sub() On Error Resume Next Cancel = True Cells(Rows.Count, 2).End(xlUp).Offset(1) = Format(Now, "HH:MM:SS") End Sub
I would like the timestamp to be displayed as HH:MM:SS.00, i.e. show the milliseconds. I tried playing around with the timestamp format (changing it to = Format(Now, "HH:MM:SS.00" or = Format(Now, "HH:MM:SS.0;@")) or = Format(Now, "MM:SS.000") and I tried using = Evaluate("=NOW()") instead of = Format(Now, "HH:MM:SS".
I need it to read/merge into: "30/10/2013 10:56:39:000" and then be able to be able to be converted intp seconds as a UTC Unix epoch example formula =(A1-25569)*86400.
What I am trying to do is have a macro that do a comparison between 2 cells every 100 milliseconds. One of the cell is constant updating from RTD (Real Time Data). And if its false, to nothing. However if true, I would want it to run some codes and exit the macro/procedure. I also need some way of stopping the macro at any time.
And I have to convert it to .csv (as the only applicable format for a database mass upload) , but when I do this , all the 0 values (numbers) from the NEW ZIP POSTAL table disappear.
The issue is that there are six types of "numbers" in the table that I am trying to turn into all numbers. Obviously, I'd like to turn the Ks in 1,000s and the Ms into 1,000,000s:
#.##K #.#K #K #.##M #.#M #M
If there weren't all six, I think I could fix this pretty easily, but as it is I'm pretty stumped (other than a manual fix).
I am currently exporting data into excel. The data i am exporting comes in the form of hh:mm:ss. When i export it into excel...everything appears fine. I am also using the data to generate charts. I have multiplied the values by 1440 in order to show as minutes for the charts.
When i import the data to excel and the hours value is bigger than 24, for some reason excel converts it into totally different figures. The minutes caluation (*1440) still works fine, but i need the actual hh:mm:ss to be correct, not amended by excel. Is there a way to do this. Ex. Data imported: 74:51:03 in hh:mm:ss - excel coverts this to 02:51:03.
I am working within Excel and am hoping to convert from A LOT of columns containing hh:mm:ss to AM at the end, however I am unsure of a fast / efficient way to do this. I am using MS Office Excel 07....
I was wondering if you can convert a program you have made on excel into an EXE. I then wanted to give trial period evaluation copies out, plus secure the program to a specific PC.
I have an export from a database application in which I have thousands of dates. The dates are not in a date format (normal problem) so I wrote a formula to convert them as follows.
Original Date in A1 : 11/13/2008 This is mm/dd/yyyy
Formula : =VALUE(MID(A1,LEN(A1)-6,2)&"/"&LEFT(A1,LEN(A1)-8)&"/"&RIGHT(A1,4))
Result : 13/11/2008
This seems to work at first, until I looked more closely. If I change the date I am converting so that the date in cell A1 is 11/12/2008, ie. the dd value is less than 13, then the formula no longer works. It is fine for all values over 12.
Using an existing database with nonfixed boundaries I am creating a new one with uniform boundaries. The simple spreadsheet I will use in this comment isn't what the database actually looks like but represents what I am trying to achieve.
Here I have the old data, organised into sections that have the same assigned number. (Note: the assigned number may be the same as the previous cell). I wish to change it into this structure:
StartFinish# 020 2040 4060 6080 80100
It will be organised by the start and finish instead of by the assigned number. Instead I would like the number to reflect the lowest assigned number that occupies a part of that area.Is it possible to create a forumla which would achieve this?
How to produce invoices in excel as opposed to Sage because it works better for them, with this in mind I will have to use excel for everything......
My invoice layout is basically like this.
Travel Hours Site Hours Rate Additional Material Total
2.00 2.00 1 £180.00 1.00 1.00 1.5 £135.00
I have different rates for different customers......then I have 3 rates for each of those customer. So If I charge £45p/h to one customer (normal rate) it then becomes 67.50p/h (1.5) and £90.00p/h (2).....depending on the time of call out. You will see above that one call out could incorperate two different rates, depending on arrival and departure time etc.
1) How do I get a value (travel and site hours) converted into £ 2) How do I set a specific value for each rate customer, and rate? Can I have a rate saved so i can then select that rate relevant to that customer when inputting?
I have a spreadsheet that automatically inserts the colon into time entries (2123 converts to 21:23), my problem is that the VBA doesn't recognize single minutes (i.e. when when a time is entered from 12:01am (0001 or 01) until 12:09am (0009 or 09)). When entered I get a "Run-Time error '5': Invalid procedure call or argument"