# Formula Converting Time To General Number?

Mar 13, 2013

Looking for a formula to convert time (00:00:00 AM) to a general 4 digit number (0000). Example 08:30:00 AM ---> 0830. Tried using format cells but no luck.

I was able to convert a standard number to time using the following formula: =TIME(INT(H2/100),MOD(H2,100),0)

## Symbols For General Number And General Letter

Aug 7, 2008

I'm trying to make an excel formula that generalizes product names based on their format. So the general format would be XYZ08/T13. I know a ? is equal to a general letter, but is their a symbo that specifically means letter or number. I'm running into problems using the ? because the formula ends up identifying additional items that are not products as products.

## VLookup Formula Is Not Working With General Number Values?

Nov 14, 2012

I have a vlookup formula: =VLOOKUP(TRIM(C101),Sheet2!\$A\$1:\$B\$500,(2), FALSE)

It is not working with General number values. Why is this? Is there something I should add?

The formula works if I swap columns to one with text or if I include text in the column.

## Converting General String Month To Date Format?

Jan 18, 2013

I have a cell which says November , 2012 in General format

In the next cell i want a date of the following month . Eg : 1-Dec-2012.

I tried =DATE(RIGHT(G4,4),LEFT(FIND(",",SUBSTITUTE(G4,",",",",1))),1)

## Converting At Time To A Number

Dec 9, 2012

I have a time as 0:20 in one cell. I want to covert that to the number 20 in another cell. Is this possible to to and can I get an example of how?

## Converting Number To Time

Dec 10, 2008

I am trying to compile data from several different managers within my company. They all have similar workbooks, and have been entering time in a number format. Currently they have values that look like this:

Excel - Book1___Running: 12.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutA1=ABCD11.351.18��22.012.23��32.333.05��44.124.22��Sheet1�[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name boxPLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

However, the data should appear as this:

Excel - Book1___Running: 12.0 : OS = Windows XP (F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutD1=DEFG101:3501:18��202:0102:23��302:3303:05��404:1204:22��Sheet1�[HtmlMaker 2.42] To see the formula in the cells just click on the cells hyperlink or click the Name boxPLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.

So, in any instance the period or decimal point should be a colon and the format of the cells should be in [m]:ss.

I want to be able to select a range within the workbook and run a macro that will convert the numbers into the "[m]:ss format.

## Converting A Whole Number Into An Amount Of Time

Sep 5, 2009

field A1 & B1 are variable user input. The goal is to subtract B1 from A1, take the result and divide it by 176 (a fixed number) and display the result as minutes:sec.

For example:

A1 B1
14,000 (minus) 2,200 (= 11,800 /176 =) 67
I want to result (67) to display in field C1 as 01:07 (min:sec)

I tried (A1-B1)/176 and formatted C1 to be min:sec but the result displays as 5:27 I have no idea what that number represents.

## Converting 4 Digit Number Into Time Format

Jan 15, 2014

I have two Columns of 4 digit numbers (24 hour clock format). I need these numbers to be in Time Format. Formatting the Columns or even individual cells seems to do nothing.

1238 as 12:38 etc.

These numbers are acquired using VLOOKUP

I have attached a copy of my file, The numbers in question are on sheet "iCalender" 8th sheet accross.
Columns "start Time" and "End Time"

Time Format is Compulsory so that I can upload to a .ics Web Converter. Of which is currently failing for this reason.

5th January 2014 - Copy.xlsm

## Formula For Converting Number To Text

Mar 14, 2014

I want a formula for converting a number to text

For example: 2550 ( two thousand five hundred fifty). I found one formula (BAHTTEXT) but it convert into Thai Language.

## Convert Serial Date Time To General Format

Jul 28, 2007

I use software that exports date/time stamps in the format of: MM/DD/YYYY hh:mm:ss.s
I like to keep the data in this general format so that we can keep it consistent and it can be useful to others using other software.
I recently had to do some date/time stamp manipulations where I added 61 days to a dataset because the data was erroneously set to a diferent calendar. (Still don't know how that happened but it isn't relevent to this issue) When I set up a formula to add 61 days, it appears that it automatically converted it to the excel serial date/time format before adding the 61 days. Now I have a column of data that is mostly general format but has this portion in serial format. How can I get the serial format changed back to general so that the entire column is in the same format?

## Converting Formula Result To Number Dynamically

Oct 21, 2011

I am using a spreadsheet which imports information from an access database then calculates prices based on that.

At the moment in my column "0" I am referencing the number values in column CT from my access database (which gives me a standard retail price)

Code:
=IF(AF5="","",IF(OR('Line list'!CT2="",'Line list'!CT2=0,'Line list'!CP2=0),"0",'Line list'!CT2))

And then I use the following formula to work out the correct prices wholesale prices for different countries based on that.

Code:
=IF(AL5>1,AL5,IF(AK5

## Turning General Numbers Into Time And Minutes And Multiplying For Month

Mar 3, 2014

I run a report from a scheduling software that gives me the total hours and minutes for a weekday for my bus routes. For instance, 253 hours and 23 minutes for one day. Now though, I need to calculate how many hours and minutes for the entire month. The report will only come out with 253h23. I need to somehow take that, turn it into time and then multiply it by 20 (January weekdays). But I need real hours and minutes and I'm having trouble getting them.

## Type A Number In A Blank Cell With The General Format

Aug 10, 2009

My excel recently the General number format so that when the general number fomat is used and I type a number in a blank cell with the general format, the number is always divided by 10.

E.g., I enter "102", the number is automatically improperly converted to 1.02.
However, if I enter "=102", the number is properly entered as 102.

How can I reset the General format to the original setting without this divide by 100 problem?

## Date Format Error - General Number Field

Feb 18, 2013

I have a spreadsheet with a column full of dates

I used the formatting wizard to make all dates the format of dd/mm/yyyy but, now, when I put a date in the column it throws up a number '41313' instead of a date, even if I manually input the date in the same format as above.

Also, I have tried to turn cells back into general number fields, but this doesn't appear to be changing it back to a date format..

There are HUNDREDS of dates I might have lost if I can't get them to start showing as dates again!

## Compare General Number To Date - Display Based On Criteria

Apr 29, 2007

I would like to create a formula that compares a number in one cell to the dates I have displayed in two different cells. If true, then I want it to display the Currency value from another cell.

______A________B________C________D_____
|1| Due Date | Amount | 1/01/2007 | 1/15/2007
|2|___4________\$98_______________________

A2 is the DAY it's due
B2 is the AMT that is due

I can create an IF...THEN statement where if A2 is >= C1 BUT less than D1 then the value is B2, BUT it only works if I change A2 to an actual date which means i have to change it every month...which would not help with forecasting future transactions. So in the example above, the value would be in C2 and not D2.

## Excel 2011 :: Making Time Sheet - Converting Numbers To Time

Jul 11, 2014

A client buys 500 minutes of my time. In one week I spend 340 minutes on the account. I'd like a column to show Time purchased (say 500 Minutes) Time spent and a final section showing time left (but showing negative values in red)

I hope I've explained this ok but here is an illustration of what I'm trying to achieve in Excel 2011.

[URL] ...........

## Converting Normal Time To Epoch Time Format Using Excel

May 18, 2003

I'm working on converting some databases. One has entries with normal human readable time format, the other uses the unix epoch time format.

Is there a function or vba code that I can use in excel to convert the normal time format to epoch time?

I've got a thousand or so entries, so it would be nice to find a way to do this on a large scale.

## Converting Normal Time To Epoch Time Format

May 18, 2003

I'm working on converting some databases. One has entries with normal human readable time format, the other uses the unix epoch time format.

Is there a function or vba code that I can use in excel to convert the normal time format to epoch time?

I've got a thousand or so entries, so it would be nice to find a way to do this on a large scale.

## Converting Time Values From One Time Zone To Another?

Sep 3, 2013

* Need a normal date calculation according to selected time zone. * Formula required in [D7], facing problem in Negative TimeValue.

## Converting Cumulative Time To Workweek Time

Feb 1, 2012

I have a chart that contains time per task and then adds the tasks for a grant time total.

Example:

0:05 wash hands
0:10 brush teeth
0:20 shave
0:35 - total morning prep time

In my chart the total time is currently 63:25:00 or 2d 15h 25m

I want to break this down into a number that can be compared to a work week. In other words, if a typical work day is 8 hours, can I break this down to show work days and remaining hours and minutes? I'd like it to break down as: ?days ?hours ? minutes where days is an 8 hour day, not a 24 hour day

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

## Converting Time H:mm To Dec

Jun 17, 2006

I'm having trouble converting Time to Decimal

ABC
8:00 1:00 AM8:00 AM
8:00 1:00 AM8:00 AM
1:00 7:00 AM7:00 AM

Using CellRef * 24 only works for Columsn B and C

resulting ex:

#VALUE! 1.08.0
#VALUE! 1.08.0
#VALUE! 1.07.0

For some reason, it only recognizes cols b and c as Time.
The "AM" only shows when you click the cell, and it is displayed in the formula bar. When clicking a cell in Col A, there is a trailing space, ie: "8:00 "

Tried a couple things but couldn't get it to associate col A with time, besides manually removing the trailing space from each row. Using Trim() does not work.

## Converting Numbers To Time

May 28, 2012

I have 0,1,2,3,4,5...etc in Column A. How I could convert this into time format? Preferably with vba code?

Sheet1  AB

1001/01/2012 00:00:002101/01/2012 00:00:013201/01/2012 00:00:02
4301/01/2012 00:00:035401/01/2012 00:00:046501/01/2012 00:00:05

## Converting Text To Time ....

Aug 21, 2008

I have a column (R) that is formatted as text. Each cell represents a time in military format.

How do I convert the values in the column to be in 00:00 (hours:minutes) format instead of text?

For instance, 1200 is the value in R2. I want it to show as 12:00.

I tried the following:

1. Create a new column (S)
2. Format the new column (S) as 00:00 format
3. Copy cell R2 (whose value is 1200) and paste into S2.

Result: S2 value is the same (still 1200). Formatting in the S2 cell changed from 00:00 format BACK to text format upon me pasting.

So I tried and changed it BACK to 00:00 format, and I get 0:00 as the new value in cell S2. Also, the function bar shows "4/14/1903 12:00:00 AM" for cell S2. I need a formula for this apparently,

## Converting Time To Seconds.

Jun 21, 2009

I have the below macro. It is used to translate time to seconds (i.e. 0:20:04 minutes to 1204 seconds)
This works well, but i just want to know 3 things.
First, can the new data (seconds value) be added to new worksheet (worksheet 4) of the workbook the original data is taken from, instead of a whole new workbook?
Second, can this be done without having to save the original workbook first?
Third, (Im sorry i know this is VERY simple) but this macro is part of a larger macro, and i just want to know the code to hide the screen updating as the macro is running.

Sub Refresh()
Columns("A:A").EntireColumn.Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=ActiveCell, DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 4), TrailingMinusNumbers:=True
End Sub.........

## Prevent From Converting Non-number To Scientific Number

Oct 11, 2009

I am importing a list of values from a text file. Some of the values have the letter "E" embedded in the string. For example one of the imported values is "29875E100". Excel is automatically converting this into scentific notation. Is there a way to avoid this?

## Converting Number With Space Into A Normal Number

Jan 2, 2010

I have to use data copied as text from a webpage. Some numbers stay with spaces so are recognized as text I think i.e. 3500 will be "3 500".
I think there was a formula to convert that into number or any other way ? Couldn't find it on the forum so far :/

## Converting Number Text Combo To Number?

Nov 19, 2013

Here's the data set I am working with.

I get a dump that is in the form xxxx gbps or xxxx mbps (gigabits and megabits). I'd like to either use a formula or VBA code to convert this to mbps in another column.

## Formula To Count Number Of Patients Per Time Interval Over 24 Hours+

Jan 23, 2014

I have been trying to work out a formula for capturing the number of patients in the hospital at half hour time intervals. There are a lot of formulas for capturing this information within a 24 hour period however not a lot of information when the Length of Stay or episode time is +24 hours.

As you can see in my example spreadsheet below, some of the patients stay for 244 hours (row 9).

The outcome that I am looking for is that a 1 is placed in all of the time slots when the patient is there. For example if they arrive on Jan 1st at 2.15 and leave on Jan 3rd at 10.30 all of the time slots in between would have a 1 placed in them.

I have been playing around a lot and think it is probably only possible if you set it up as I have in the example i.e. by having the date running down and the time running across.

How this could work? I have tried SUMIFs and SUMPRODUCT formulas which generally work for Jan 1st but then go wrong for any date after that.

## Formula To Count Number Of Times A Occurs Between Time Periods

Nov 30, 2013

I am attempting to create a formula that will count the number of times, lets say letter A, occurs in column E. However, the tricky part that I have been confused on is that I only want to count how many times A occurs between each hour of the day. I need to count number of times "A" occurs between each hour of the day for the entire month.

My Worksheet looks as such: Column A contains the dates for the month of November, Column B contains times that random instances occur, Column C is not important, Column E contains a Letter A-N that pertains to what occurred at a time in column B. SO, Column B and column E coordinate with each other.

Here is an example. Column A - Cell A1 - 11/01/2013 , A2 - 11/02/2013, A3 - 11/03/2013.
Column B - Cell B1 - 12:01 AM , Cell B2 - 14:03 , Cell B3 - 15:23
Column C - Cell E1 - A , Cell E2 - A, Cell E3 - B

So I would like Column F to display that between 12:00 - 12:59 Am there was X number of times the letter A occurred throughout the entire month.