Converting To Nano, Micro And Milliseconds

Apr 6, 2007

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 .............

View 6 Replies


ADVERTISEMENT

15 Button Micro Return Selected Data?

Feb 13, 2014

I have my Data on Sheet 1 as displayed below

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.

[IMG]file:///C:/Users/HannesH/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png[/IMG][IMG]file:///C:/Users/HannesH/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png[/IMG]

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.

[URL]

View 9 Replies View Related

Macro To Call Up Micro Strategy Reports Dialog Box

Oct 22, 2013

Would like to be able to have a macro button or code that launches the Microstrategy Reports dialog box.

View 2 Replies View Related

Protect Micro Enabled Workbook Being Copied On External Memory

May 14, 2012

I have this micro enabled workbook and I want to protect it from being copied on other sources.

View 1 Replies View Related

Calculate Age Down To Milliseconds

Jul 1, 2007

where i can get this download for Excel?


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

View 9 Replies View Related

Subtract Milliseconds Or Seconds

Apr 29, 2009

I have a cell that has data formatted in this style:

0:00:08:412

h:mm:ss:ms

I was wondering how I might go about writing a formula that would subtract say 2 seconds, or 400ms from that value.

View 9 Replies View Related

How To Avoid Duplicates In Milliseconds

Feb 2, 2012

the data is as follows:

Data  ABC1Timestampname 21/31/2012 11:07:13abc931/31/2012 11:07:50def 41/31/2012 11:10:03a 51/31/2012 11:17:12b 61/31/2012 11:17:14a 71/31/2012 11:17:15a 81/31/2012 11:17:16a 91/31/2012 12:39:41cv 101/31/2012 13:04:00k 112/1/2012 7:26:53k 122/1/2012 7:26:56dg 132/1/2012 7:41:05Gw 142/1/2012 8:01:19cg 152/1/2012 9:32:14CB 162/1/2012 9:32:15CB 172/1/2012 9:32:15CB 182/1/2012 9:32:17CB 192/1/2012 9:32:26kw 202/1/2012 10:24:54jw Spreadsheet FormulasCellFormulaC2=SUMPRODUCT(--(MONTH(A2:A20)=1)*(YEAR(A2:A20)=2012))

if you see the cell a6 to a8 happened in millisecond same person has punched i want to count it as one only

View 2 Replies View Related

Change A Column To Show Milliseconds

Mar 5, 2014

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...

View 1 Replies View Related

Get The Milliseconds To Another Cell For Making Some Calculations

Oct 22, 2008

I set the time format to hh:mm:ss.000 to show also the milliseconds.
How can I get the milliseconds to another cell for making some calculations?

View 8 Replies View Related

Insert Wait Command In Milliseconds

Oct 13, 2011

Is it possible to insert a wait command in milliseconds- minimum I have seen is a second?

View 1 Replies View Related

Delay/Pause/Wait In Milliseconds

Apr 17, 2008

been checking out 1/2 a second wait instead of a 1 sec wait
and would like to know it you can do this
timer thing

Dim x As Single
x = Timer
While Timer - x < 0.5
Wend

more than once
it works the first time and then it sort of skips it

or is there ANOTHER way of having a delay of less than a second?

View 6 Replies View Related

Excel 2010 :: Subtracting Time In Milliseconds?

Mar 2, 2012

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.

2012 02 17 11:18:59.050|081,999999999999~999999999999
2012 02 17 11:18:59.550|082,MCTO05222CZ0~999999999999
2012 02 17 11:18:59.566|082,1
2012 02 17 11:19:00.144|083,MCTO05246CK0~999999999999
2012 02 17 11:19:00.160|083,3

View 9 Replies View Related

Make Now Function Display Milliseconds In VBA Macro

Jan 29, 2014

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".

View 6 Replies View Related

Merging Separate Date And Time Field With Milliseconds?

Nov 7, 2013

I have 2 fields formatted like this:

1) Date: "30/10/2013"
2) Time: "10:56:39:000"

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.

View 1 Replies View Related

Timer Function; Macro That Do A Comparison Between 2 Cells Every 100 Milliseconds

Aug 2, 2006

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.

View 6 Replies View Related

Converting XLS To CSV

Jul 29, 2014

I have an excel table .xls : 1.jpg

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.

If I save it : 2.jpg

View 9 Replies View Related

Converting 10.27M To 10,270,000...

Jan 12, 2009

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).

View 4 Replies View Related

HH:MM:SS Converting..

Mar 24, 2009

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.

View 2 Replies View Related

Converting XLS To Zip?

Nov 29, 2011

I have put VBA code which will winzip all the excel files to .zip files in a folder. But problem is when i run the code it zips the file as .xls.zip.

For example:-

Sub Zipping()
'
Dim file As Variant
Const SOURCE = "E:Output"

[Code]....

So the output is :- abc.xls gets converted to abc.xls.zip

View 2 Replies View Related

Converting 50% To 1.5

Aug 29, 2007

I have some code where it prompts you to enter a %, and then it calculates if the Lst Wk Sales > Avg Wkly Sales + %.

box2 = InputBox("Enter % increased by Sales")
ActiveCell.FormulaR1C1 = "=IF(RC[-111]>RC[-121]+" & box2 & ",""YES"",""NO"")"

The problem I have is that excel treats the formula as +50% rather +1.5. Can anyone help me around this issue?

View 9 Replies View Related

Converting Hh:mm:ss To AM

Mar 29, 2009

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....

View 9 Replies View Related

Converting To .Exe

Sep 15, 2006

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.

View 6 Replies View Related

Converting Sumif To VBA

Nov 26, 2013

I know this is a dumb question but I can't get a sumif to work in vba. I want the actual formula in the cell, not just the output value.

This is my most recent attempt:

VB: Range("C2").Formula = "=SUMIF(Z7:Z12000, >0,N7:N12000)"

I get Run-time error 1004, application defined or object defined error.

Why doesn't this work?

View 2 Replies View Related

Formula Converting Hh:mm To 00:mm?

Jun 9, 2014

I need a formula that converts time in the format of hh:mm to 00:mm. I only want the minutes.

View 4 Replies View Related

Converting Date Getting #VALUE

Nov 14, 2008

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.

All I get in these cases is #VALUE!

View 4 Replies View Related

Converting A Database?

Dec 12, 2012

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.

StartFinishAssigned #
0151
15252
25403
40552
55602
60804
80953
951002

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?

View 7 Replies View Related

Converting Value To A Currency?

Oct 10, 2013

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?

View 14 Replies View Related

Converting Time With VBA

Jul 8, 2009

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"

View 6 Replies View Related

Converting To 2007

Oct 6, 2009

My office converted to 2007 last night. I had created my own macro toolbar in 2003 with frequently used macros on it. How do I recreate this in 2007?

View 14 Replies View Related

Converting Excel To Pdf

Dec 6, 2009

Is it possible to convert an excel file to pdf format using vba code?

View 11 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved