Change Cell Value According To Date Time

Mar 22, 2009

I have an excel worksheet to display all debtor amount and create date.

When the create date compare with system date which is over 90 days, the debtor amount will be deducted and bad debt amount increased.

How should I use VBA to work out this? The debtor and bad debt are in 2 worksheets.

View 9 Replies


ADVERTISEMENT

VBA To Change Cell Entry Into Time And Date

Feb 17, 2012

I am looking for a formula or VBA that will be in each in cells D5:D300 and will look at the value entered into the cell in column C and change the 4 digits into the date and time in the same format as NOW() returns.

Example

2045 becomes 17/02/2012 20:45

But I would also want it to see if the 4 digits that represent the time are after 14:00 and before 00:00 then the date would be the date in cell A1-1

example

Cell A1 18/02/12

2045 becomes 17/02/2012 20:45

View 2 Replies View Related

Static Date & Time Corresponding To Cell Change

Aug 15, 2008

REQUEST 1

What I need is lets say I have 3 columns Name, Date & Time

Name field has a drop down menu having a list of names

Now what I need is - lets say from the dropdown menu someone selects a name - THEN at the same instance the Time & Date fields gets populated with the Date & Time of that update.

and that Date & Time shouldn’t change if someone selects the same or different name in the row below

Kindly assist in lay man terms as I am a novice to Excel


REQUEST 2

In this format what I need is like above , the start date & start time should update real time ONLY when a name is selected

and when the End date is selected the End time , Date Elapsed & Time Elapsed should Populate automatically.

However there should be NO effect if data is entered or changed in the Request Id or Issue Cells - basically the triggers should only be Name field & End date Field

Can you attach an example sheet as well please

Have enclosed an sample attachment

View 9 Replies View Related

Excel 2010 :: Insert Date And Time In Column Upon Data Change For First Time Only

May 3, 2013

I am looking for a macros VBA where a user insert or update a data the date and time should be insert in column I and save the workbook.

Note: If the column I already have the date and time inserted before then it should give message record already have date and time.

I am using office 2010.

View 9 Replies View Related

Date/time Macro: Inserts The Current Date And Time In The Selected Cell Regardless Of Where That Cell Is

Oct 20, 2009

What is the code i need to use to assign a macro to a command button which inserts the current date and time in the selected cell regardless of where that cell is?

View 5 Replies View Related

Time And Date Change

May 19, 2009

In a particular month, I have some transactions with a consumed date. If the time falls at 12.00 AM in the end of the month, then the transaction goes into the next month. Below is an example:

3/25/2009 12.00.00 AM

4/1/2009 12.00.00 AM

I want all the transactions that fall on 4/1/2009 due to 12.00.00 AM to convert to 3/31/2009.

View 4 Replies View Related

Change Date And Time Format

Jun 24, 2013

Need to Change date and time Format.

23 June 2013 14:02:10 BST
" 23 June 2013 00:47:58 BS"
23 June 2013 13:22:21 BST
23 June 2013 13:22:21 BST

Find the attached dump : jlr.xlsx

Required Output

06/23/2013 14:02

View 2 Replies View Related

Automatic Time And Date Change?

Feb 14, 2014

i am trying to make one cell automatically change to current date and time when the cell next to it has changed value. ive search other posts but cannot figure this out. so if cell A1 changes value cell B1 should automatically fill with current date and time cell A1 changed value.

View 9 Replies View Related

Change Date Time Zone

Feb 15, 2009

I receive from my broker in the States a financial report that shows transaction dates in American EST. As I'm in Australia this is somewhat annoying. Is there a way, perhaps adding an extra column, that converts this time to Australian Eastern Standard Time?

View 4 Replies View Related

Date & Time Of Last Worksheet Change

Dec 28, 2009

I have a workbook with 120 LOI worksheets that all tie to one master data sheet, and I need to know the date and time of the last change on each worksheet and not the date and time of the last save. The date and time could either be located in a worksheet cell or in the individual worksheet header

View 4 Replies View Related

Automatically Change Cell (With Time) Color After Time Period Has Passed

May 23, 2008

I have a protected worksheet. Users wish to be able to track changes in the input cells. The suggested approach for this is to temporarily disable sheet protection and allow them to change the font color, then protect afterwards. What I would like to do is:

i) check whether they are in an input cell
ii) if so, then prompt the user with the 'Font Color' dialog box
iii) apply the font color selected to the input cell

I'm struggling to find the dialog box I need. I can launch the one to change the interior color, no problem (Application.Dialogs(xlDialogPatterns).Show). But that's no use to me, I just want a color palette that specifically relates to the Font Color

View 4 Replies View Related

Automatically Date & Time Stamp Row On Change

Apr 10, 2008

I work in a sales team, and am currently planning the new year of sales spreadsheets (tracking prospects and orders) These spreadsheets are linked in both directions to the Sales Director's summary spreadsheet (so that she can set the targets, and also provide a summary to the MD). She has asked me whether it is possible to put a formula in that gives the date each line (1 line = 1 prospect) was updated (so that she can see whether information in the line is current / a week old / a month old etc)

Effectively, what I need is in column A a formula which references columns B-Q and if any of those change, puts in the date of change. Is this possible, or am I going to have to ask the sales guys to do it manually? I have tried to use the =Now() function, but, because the spreadsheets are linked, and auto-update on opening, every time the spreadsheet is opened, each line goes to today's date.

The previous threads that I looked at suggested either: volatile time stamp in shared workbook

or

That is bad design, Enter =NOW() to a single name cell named cell and use date =MyD-T in ALL cells needing the Date & Time. Where MyD-T is the named cell. I would advise STRONGLY against using Manual Calculation as it's NOT good spreadsheet design and a mistake waiting to happen.

View 4 Replies View Related

Excel 2013 :: Extract Date And Time Info From A Text Cell That Contains Text And Date And Time

Jul 19, 2014

I am using Excel 2013. Anyway, the first issue is that I need to pull a date and a time period from text. So, for example, if I see something like Sunday Prime Time 7/6/14 8:37PM, I would want to pull ONLY the "7/6/14 8:37PM" out of it. Each text box could potentially be different, so it might not always be in the same format as "Sunday Prime Time 7/6/14 8:37PM" it might only show just the date and/or the time without all the extra text i.e. 7/6/14 8:37PM. Some of the cells will have text, others might only have just the time or even just the date and the time. The only thing that I am worrying about in each cell is extracting just the date and time. If this is too much to ask of excel, I would be ok with extracting ONLY the time - 8:37PM and not the date, but I would much rather be able to get both the time and date.

THEN, onto part two of my question. After I would pull the dates and times, I need to compare them with each other. So, when I have the same date with two separate times on that date, I need to write a formula to show if those times on that date are less than 30 minutes apart. So, if I have 6 times on 7/6/14, I need to know if any of them are less than 30 minutes apart.

I would need to have the formula say something like "Problem" if the times on 7/6/14 would be 5:30PM, 5:48PM, 7:00PM, 8:00PM, 8:15PM, and 9:00Pm for example. I would like to see the word "Problem" since 5:30PM and 5:48Pm is only 18 minutes apart, and "Problem" after 8:15PM since that is only 15 minutes past the 8:00PM which is obviously under 30 minutes. The times that are more than 30 minutes apart such as 7:00PM and 9:00PM for example are more than 30 minutes apart from any of the other times that were extracted.

View 7 Replies View Related

Auto Fill Non-changing Date&time When Cells Change

Apr 17, 2007

Let's say I have column C blank, but every time it's filled in with something I want column A to be today's date and B to be current time. Unfortunately, the functions NOW() and TODAY() don't give me what I want. They get recalculated every time that I update the spreadsheet.
Another thing that I can do is just press ctrl+shift+; to generate a non changing date/time, but I want it to happen automatically (being super lazy).

View 9 Replies View Related

Split Date & Time Cell & Format Time As Hundreth Of Second

Sep 6, 2006

I have one column with as many as 50,000 or more rows. The data format for each row/ cell is unique as shown below ( date and time). I wanted to split the data as shown in "Formatted Data" below. Have Tried Text To Column formatting but didn't work right.

Raw Data: Formatted Data (2 cells):
2005/11/02 23:55:15.758 ==> 2005/11/02 23:55:15.758
2005/11/02 23:58:16.698 ==> 2005/11/02 23:58:16.698
2005/11/03 00:07:13.830
2005/11/03 00:10:14.971

View 6 Replies View Related

Format Date & Time Cell To Hide Time If 0:00

Dec 28, 2006

I have a Excel Dates & Times column where the time is not always used. In these cases the time is 12:00AM. Is there a way to Custom Formats the cell so that the time is only visible if it is not 12:00AM?

View 6 Replies View Related

Copy Row If DATE & Time In Cell Is Between Time Span

Mar 9, 2008

I have a problem regarding sorting data having date and also time within a single cell.

Example data (I have written it as code to preserve formatting)

A B C D E F

12/5/2008 02:072/5/2008 06:0128804833363
22/5/2008 18:012/5/2008 18:0599271297

Column B is start date and time whereas Column C is end date and time.
My aim is to cut and paste the whole row automatically to Sheet2 if the time is within 2AM to 8AM else leave as it is.Also I don't know anything about VBA Script.

View 9 Replies View Related

Inserting Time (or Date And Time) In Cell On Row When Cell In That Row Changed

Aug 21, 2013

I have a spreadsheet where an engineer is expected to record sample temperatures of water outlets, along with the time he took the sample. Each outlet has a row on the spreadsheet with a column for the Temperature and column for the time. I would like to automatically input the current time(or time and date) on each line as the temperature is entered.

View 4 Replies View Related

Add A Date Time Stamp In A Cell After Data Is Entered In A Different Cell And Date

Apr 18, 2014

I am working on an Inventory Spreadsheet. I have need it to date time stamp that willpopulate a different cell /field when text are entered in a different cell/field and will not change all the previous dates entered on the spreadsheetevery time I re-open the spreadsheet. I formula I am using is =IF(E3<>"",IF(D15="",NOW(),D15),"")and it changes each time I open thesheet to do the inventory so I do not know the date of the last inventory. Iwant to capture the actual date that the inventory was completed in thesecond/different cell?

View 9 Replies View Related

How To Subtract Time From Date And Time Cell

Mar 2, 2014

I need to subtract the time alone as per below example:

Cell A : 2/4/2014 8:58:13 AM

I need in Cell B as : 2/4/2014 8:46:13 AM (Minus 15 minutes)

How to get this?

View 2 Replies View Related

Remove The Time From A Cell With Date And Time In It?

Apr 22, 2009

I have data exported from a defect management tool (that reports all the defects that have been recorded in the defect management system). This data has unique columns for name of originator, defect ID, date originated, priority, etc. The date originated column has the date and time. I want to create a report that tells me how many High, Medium and Low priority defects were created on each date - and I am using a pivot table to do this.

However, because the date column is actually the date and time the defect was reported/recorded, the time element of this is making all the dates unique eg, I have three defects recorded on 29/01/2009, a High priority defect (reported at 29/01/2009 12:23) and two Medium priority defects (reported at 29/01/2009 13:02 and 29/01/2009 13:32). My pivot table is showing each date as a unique date - with a count of 1 against each, whereas I want to see 1 date entry (for 29/01/2009) with a count of 1 against High and 2 against Medium.

I have tried custom formatting the date column to dd/mm/yyyy - which appears to work in the data (but doesn't in the pivot table, because the time stamp is still there, just not visible). I have tried copy and paste special [Values] (on the custom formatted date column) -but the time stamp is still there. I have tried formatting the date column to "General", but this changes the dates to the number format - eg 29/01/2009 12:23 becomes 39842.5166203704.

I have tried inserting a new column and using the =Left function for the first 10 characters of the cell (ie the 29/01/2009), but that gives the first 10 characters of the number form of the date, ie 39842.5166. Basically, without going into every date cell (and I have thousands) and manually deleting all the times, how do I quickly change the date column into just having the date in it (ie how do I strip off the time element)?

View 3 Replies View Related

Pull Date & Times Into Seperate Cells From Date & Time Cell

Apr 2, 2008

DONNAS [Single cell, 1st row] 09/08/2003 15:34 [Single cell ( date and time combined) 2nd row]. Do you know of any way that I can move the name, date and time from the above cells to three separate columns on the same row?

View 4 Replies View Related

Change The Value Of More Than Once Cell At A Time

May 10, 2007

If I try to change the value of more than once cell at a time, it cause excel to crash. By crash I mean, excel freezes and I have to manually end the program with ctrl + alt + delete.

Here is an example of the
If [a1] = "True" then

[b5] = "Text"
[c5] = "TextTwo"
[d5] = "TextThree"

End If

If I only have the code write to B5 and no other cell, it works fine, but if I try to fill in all three cells it crashes.

View 9 Replies View Related

Date/Time Formula: Pick Up A Date With Time Entry On A Worksheet And Place It Into A TextBox On A UserForm

Jun 17, 2006

I am attempting to pick up a date with time entry on a worksheet and place it into a TextBox on a UserForm. Format on the sheet is mm/dd/yyyy h:mm AM/PM. The UserForm is placing the value as mm/dd/yyyy 12:00 AM. here is the

Private Sub UserForm_Initialize()
If Not Range("dDate").Value = "" Then
TextBox2.Value = Range("dDate").Value
TextBox2.Text = Format(DateValue(TextBox2.Text), "mm/dd/yy h:mm AM/PM")
Else
TextBox2.Value = ""
TextBox2.SetFocus
End If
End Sub


"dDate" is the named range where the date is sitting. The format is also set on the TextBox2 exit event. Can anyone see why only the date portion is being transfered with the default 12:00 AM for no time component of the value?

View 3 Replies View Related

Search & Replace Date In Date And Time Cell

Aug 16, 2008

I have several hundred rows of date/times which I need to modify just the date (for example 08/23/2007 11:00 to 08/15/2008 11:00). Each row may have a different time so it is just the date I'm targeting for change.

If I manually use the replace dialog, replacing 08/23/2007 with 08/15/2008 works just fine. However, if in code I attempt to use the Cells.Replace function, it does not locate any data to change.

I have found that if I search for the string 8/23/2007, the dates are located and changed. Only when I attempt to find the fully formatted date 08/23/2007 does the function fail.

View 6 Replies View Related

Time Delay To Change Cell Reference

Jun 16, 2009

I need a code which will take a lump of data, B2:AW366 and cycle through the data in a single cell (A1)

So to clarify Cell A1 should cycle through:

B2
C2
D2
E2
...
...
...
AU2
AV2
AW2
B3
C3
D3
E3
.....
.....
Continue until cell AW366 reached.

View 2 Replies View Related

Convert Imported Date / Time Data To Date / Time Format?

Jan 2, 2013

I have loaded a .csv file in which the first column contains date/times, e.g. 01/12/2012 00:00. How do I now tell Excel (2010) that this is in fact a date/time format? If I select one or more of the cells, click on the Number dialog box launcher and try to pick a suitable format tghe cells resolutely refuse to budge from being text (i.e. left-justified, still allows me to edit the 'seconds' component to a number > 60). Also which data type should I be using? The only one that appears to have a full date/time format listed is Custom (not Date or Time).

View 4 Replies View Related

Macro / Formula / VBA To Change Time Format And Data In A Cell?

Mar 7, 2014

I have a time format in one excel sheet, I need a macro or a formula to change it into a specific format, this is to be able to import it to another software.

I have attached a file here you can see an example, this I manually, I want Row D and E into the format in A, I s it possible to make it in a macro or formula, manually it takes a long time.

File Type: csv TimeFormat.csvā€ˇ

View 11 Replies View Related

Change Color Of A Cell For Some Time Based On Its Value That Is Not Manually Entered

Oct 25, 2012

VBA macro to change the color of a cell automatically for a specific period of time -say 5 minutes, based on the value the subject cell holds at that time. The cell value is not manually entered but comes from a sub.

There will be hundreds of such cells so that the macro must be able to be repeated for other cells utilizing their individual cell values as well.

View 9 Replies View Related

Excel 2007 :: Current Time Causing Cell To Change Colour

Jun 4, 2014

I am creating a spreadsheet in Microsoft Excel 2007 which holds information about the airline Emirates which I have created using information from the internet. I am currently creating a sheet which has all their flights in and holds information about the departure time and arrival time of the flight and the type of aircraft ect. I am wondering if there is anyway in being able to have the cell which has the flight number in to change colour (Green or Red) if the flight is in the air or not by using the departure and arrival times already set on the sheet. I am wondering if you possibly need to have a live time on the sheet so that it can work with that .....

View 1 Replies View Related







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