Enter Date If Cells Not Empty

Jan 29, 2010

I'm having a hard time putting this into words, so I'll try to make it simple.

I have a list with cells b1 thru f1 empty.

If one or more of those cells becomes populated, I want today's date to show up in cell g1.

Yes, the user could enter the date manually, but apparently that's too difficult for some people.

View 9 Replies


ADVERTISEMENT

A Column Of Cells Where Manually Enter In A Date

Jan 4, 2010

I have a sheet where I have a column of cells where I manually enter in a date. the format is d-mmm-yy. Before the end of the year rolled around I was able to enter in say only 12-31 and it would automatically change that to 12-dec-09, now when I do that it spits out 12-dec-10. It's not a big deal to type in the extra -09 to get it right but was wondering if there was a quick/easy fix to get it to know that I don't want a date in the future?

All dates I type in will be in the recent past...never more than 3 months or so old and never later than today's date.

View 9 Replies View Related

VBA Code To Find Date In Column A And Enter Data In Cells On Same Row

Dec 26, 2013

I have a spreadsheet where a date is entered in column A with data in B-F. I am trying to write code to look in column A for a specific date and enter additional data into columns G-L on the same row. It needs to be able to skip the rows that are blank. So I have the dates of 12/1, 12/2 and 12/3 in column A rows 1,2 and 3 and I want to enter data for 12/2 on row 2 skipping the blank cells in row 1 for 12/1. Here is the code I have below.

VB:

Private Sub CBSecure_Click()
Dim my_name As String
Dim r As Variant
Dim l As Long
sFind = DockDoorCal.Value
If Trim(sFind) = "" Then Exit Sub

[Code]....

View 4 Replies View Related

Enter With UserForm To 1st Empty Row

Aug 16, 2008

I have an excel sheet with a couple of rows/columns of data in it (i've attached the sheet to my post (zipped in two parts)). Since I'm not familiar with VB. I want to simplify data entering procedure and I need a simple Userform for that purpose. That userform should enable me to enter data in the first row which has an empty cell in Column C. I have found a relatively decent userform on the internet and incorporated it into my sheet, but it's not working particularly well (it allows me to enter data only in one row, not in two or three). If I hadn't been clear enough, try to enter data in my sheet and you'll see what's the problem

Private Sub cmdAdd_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("PartsData")
iRow = ws.Cells(Rows.Count, 3) _
.End(xlUp).Offset(1, 0).Row
If Trim(Me.txtPart.Value) = "" Then
Me.txtPart.SetFocus
MsgBox "Please enter a part number"
Exit Sub
End If
ws.Cells(iRow, 1).Value = Me.txtPart.Value
ws.Cells(iRow, 3).Value = Me.txtLoc.Value
ws.Cells(iRow, 4).Value = Me.txtdate.Value
ws.Cells(iRow, 5).Value = Me.txtQty.Value
Me.txtPart.Value = ""
Me.txtLoc.Value = ""
Me.txtdate.Value = ""
Me.txtQty.Value = ""
Me.txtPart.SetFocus

PS you'll notice that I have a Command button/Macro that inserts new rows in the middle of the already entered data. It perfectly suits my needs since it also copies the formula from the Column L to the new rows. That code needs no repairs.

View 5 Replies View Related

If A Cell Is Empty Then Enter Data From Another?

Jul 26, 2006

I have an excel sheet with a few columns, Column (1) has data entered for ever row (with a name.) Column (2) has a few random cells with data (names) about 30% and the rest are left blank. What I need, is to have a formula in a new column (3) that will put in the the data (names) of column (2) and then if there isnt data in column (2) then it will put the Data (names) from column (1). (ps, If i cant get this figured out, we have to buy a custom interface and it will cost around $7000,)

View 2 Replies View Related

Filling Empty Cell Value Based On If Else Condition And Delete Row More Than 2 Cells Empty

May 23, 2014

Here find the excel file

My requirement

1) 4 values contains in each row based on the values from those cells the max value will display.

2) if more than 2 cells have empty,NR or NA text means the entire row has to delete.

3) if 2 or more that means 3 cells having values the empty cell,NR or NA cell will place value with the condition of macro that is 75% of other values which is maximum among them.

View 1 Replies View Related

Find Empty Cell In Column And Apply Required Character To Empty Visible Cells?

May 8, 2014

I am looking to find all visible cells in column E that are blank, and then add ''B'' to those empty cells.

I am using code similar to the below:

[Code] .....

View 5 Replies View Related

Returning The Contents Of A Non-empty Cell In A Range Of Empty Cells

Jan 8, 2008

I have a long range of cells (U3:AX3), all of which are empty save one. Is there a way to search through the range of cells, and return the contents of the one cell that contains text?

I would do this with a series of nested IF statements if there weren't more than 30 of them!

View 9 Replies View Related

Prefill Text Box In Userform With Today Date But Allow User To Enter Unique Date

May 29, 2014

I have a workbook that I'm using to tracking staffing patterns within a mental health agency. When the workbook opens the user is asked to pick a date range and an office location. I've placed code into the userform that pre-fills the "start date" with today's date and the "end date" 7 days from today's date. I would like the user to be able to enter a unique date range should they wish but I have yet to figure out the coding to accomplish my goal.

[Code] .....

Attached File : Staffing Report 1.90.xlsm‎

View 7 Replies View Related

Popup Or Userform Enter Date And Delete Rows Containing That Date

Nov 26, 2013

I wondering if it's possible to create a code to have a popup where the user can enter a date in mm/dd/yyyy format and then all rows containing that date will be deleted.

View 9 Replies View Related

Make Formula Cells Empty Rather Than Empty Text

Apr 17, 2008

Is it possible to make a cell "really" blank/empty based on an If statement? For instance:

=if(a1>10,a1,"")

Has a value_if_false of "". But Excel interprets this a bit differently than a cell that never had anything typed into it.

So if you have a column full of this formula copied down, and hit <control+down arrow>, you will go straight to the bottom and skip over all rows. Whereas if you have a column with values and empty cells alternating and hit <control+down arrow>, you will only skip the empty cells and go to the next value. Excel treats the conditionally empty cells as if they have a value, when it comes to this type of navigation. This holds even if you copy and paste "Values" for the cells over the formulas.

Is there any way to tell Excel to make the cells truly empty?

View 3 Replies View Related

Lookup Non-Empty Cells / Ignore Empty Cells?

Aug 31, 2013

How I can look up non empty cells as shown in the below tables by use of a formula (I guess shifting data to the left without any empty cells between the data)?

Data as shown in present worksheet.

A
B
C
D

[Code]....

View 9 Replies View Related

Formula To Enter A Date In One Column Based On Date In Another?

Jun 10, 2013

is there a formula that will look at A2 and if the date in that column shows May 5, 2013, then in E2 it enters June 1, 2013? I would like E2 to automatically populate the first of the following month of A2.

View 7 Replies View Related

Deleting Empty Rows / Empty Cells

Sep 27, 2009

I need to write a macro which checks cells in one column and if the cell is empty it deletes the whole row (which contains the cell).

I tried this code but it doesn't delete all rows with empty cells:

View 6 Replies View Related

Enter Date When Gets Text But Stays That Date

May 7, 2009

Is it possible to use a date formula eg Today() to enter that days date when a blank cell say a1 gets data entered, then not change date the following day?

View 9 Replies View Related

Calculate Date Difference & Use Current Date If Cell Empty

Sep 22, 2007

i am trying to create a forumla in a column (D in my expamle below) to count the number of days between two dates. Knowing that col D will change everytime the @now date changes - but thats ok..

COL A COL B COL D
ROW 1 Open Date Closed Date Count of days open
ROW 2 4/1/07 BLANK CELL Formula result here
ROW 3 4/1/07 9/5/07 Formula result here

if col b has a date then subrtract col a from b and display the # result, if col b is blank then subtract col a from location I store the @ now date - say Col ZZ Row 99? so no matter there is a count of number of days in every row in column D

View 3 Replies View Related

Enter Start Date And End Date?

Mar 12, 2014

when I enter a start date and end date, it should autopopulate the columns with the dates in the middle including start date and end date.

View 1 Replies View Related

Enter Date Without Day In Cell

Jul 31, 2014

I have to enter a ton of dates in cells that don't need to include the day. And so was hoping if there was a way to enter a date into a cell without having to enter the day.

In essence, it seems like I have to type in the date as month/day/year and excel will figure it out from there. I would like to be able to just type month/year without bothering with the day, such as 9/14. And then excel recognizes this as a date.

Excel has to be able to recognize it as a date because these dates are expiration dates. And I would like to conditional format these dates so that when the expiration date has past the cell turns yellow.

View 10 Replies View Related

Enter Date Via Input Box

Dec 18, 2009

I would like to bring up an input box when a button is pressed containing the text "which number do you want to update".

The user would then enter a number eg 101 and then by clicking ok, todays date (in the format MMM/YY) would be entered into cell J101 in Sheet5.

View 8 Replies View Related

Enter Ending Date

May 21, 2009

In my sample workbook, (attached), all I want to do is up a formula in column E that compares values in columns A, B and C. If they are the same, I want to put the last year model in Column E.

I have filled in the first 12 rows to whow the desired result. Ultimately, for each part number and model combination, I want to put the final year for that combination in column E. The sample workbook constains just a few rows, but my master has about 30,000 rows.

View 2 Replies View Related

Match And Enter Date With VBA?

Nov 1, 2011

I am creating a userform to enter data in to a spreadsheet. The userform is set out as follows

1.Text Box 1 (Reg)
2.Text Box2 (Token Number)
3.Option Button1
4.Option Button2
5.Command Button 1 (OK)
6.Command Button 2 (Cancel)

Option button one is set to default as True,

1.I enter information in to Text Box 1 (e.g. Test1), Option button 1 is True, click OK, the Text Box1 data + the time and date (Now() ) is entered in to the first blank row, (date = column A, Reg = column D & time = column F)

Text boxe1 is cleared of data.

Userform stays open.

part 1 I have working

2.I enter information in to Text Box 1(Test1) then Text Box 2 (1), Option button 2 is True, click OK, the data in Text Box1(Test1) is matched with the enters in column D (Test1). If this is a match then the data from Text Box2 is entered in to the same row as Test1 in the following order (token Number = column E & time = column G) Text Box 1 (Test1) is not required as it is already in column D

Text boxes1 & TextBox2 are cleared of data.

When I run the userform again all of the above is entered in to the next blank row. There will be a time delay between the first run and the second hence the need to match column D.

View 6 Replies View Related

Enter A Date From An Input Box

Nov 24, 2006

I would like to enter a date from an input box(which i have entered in the code below), this would then lookup in column F and find all rows and copy them to relevant sheet 7 days from the date entered.

E.g. if 24/11/2006 this would bring back all rows which from the 17/11/2006

Sub FindMe()
Dim intS As Integer
Dim rngC As Range
Dim strToFind As String, FirstAddress As String
Dim wSht As Worksheet
Dim rngSearch As Range
Dim strToFind1 As String
Dim rngC1 As Range

Application.ScreenUpdating = False

intS = 1
Set rngSearch = Worksheets("Template").Range("a3:z20000")
Set wSht = Worksheets("Closed Issues")

strToFind = InputBox("Enter the title to find").................

View 9 Replies View Related

Using VBA To Enter Date When Other Cell Is = '0'

Jan 25, 2007

when the number in cell 'A1' reaches zero i want the VBA code to enter the date in cell 'A2' that it became '0'.

This is as far as i've got.

Dim keyRange3 As Range
Set keyRange3 = Range("L:L")
If Not Intersect(keyRange3, Target) Is "0"
Target.Offset(0, 2) = Time
End If

View 9 Replies View Related

Enter Date If Data Changes

May 2, 2007

I have 13 columns - 12 representing each month of the year and then a total. I start in F15 with Jan and end in R15 with the total - this is the heading row.

Below that I have my numbers for each month. Here's what I need to do: Anytime the total changes (by updating the monthly numbers), I need the day's date to be automatically entered into F14. This way I know the last time the data was changed.

View 9 Replies View Related

Auto Enter The Date

Nov 29, 2008

I would like to make a list of vehicles with auto servicing dates appearing in the next column. How can I do this, example would be say 30/11/2008 was the last service, next column would be next service due 30/02/ 2009 and then a column next to that to say when service was done.

Pretty simple but I can't seem to get it to auto bring up the next service date which would be in 3 months time or 90 days.

View 9 Replies View Related

Enter Date Without Separators

Aug 14, 2008

I'd like to be able to enter a date in excel as just the characters without the dashes and have it correctly recognized -- such as 05142006 changes to 5/14/2006. I have a great deal of data to enter and it would go much faster if I could do it in this format. Is there a VBA script or function of excel that I could use for this? I've tried looking around on here a bit and in the program settings,

View 9 Replies View Related

How To Find Day When Enter Date In Excel

Mar 29, 2013

How to find which day it is when a date is entered.

View 4 Replies View Related

Enter Value Of Cell Within A Date Range?

Nov 20, 2013

I have a spreadsheet that contains data from sales being made in various locations (sheet 1). The date the sale was made is in column A, and the location is in column AZ. I may have from 0 to 12 sales at that location on the same date. I am building a report in another sheet (sheet 2) that counts the number of sales for each date and displays that number in a cell in row 3. Above row 3, I want a formula that will reference the location (AZ sheet 1) and display that into my cell above row 3 in sheet 2. Each column in row 1 sheet 2 will have new date.

View 5 Replies View Related

VBA To Enter Data From One Sheet As Date Changes

Aug 18, 2014

Please find attached.I have two sheets. In sheet 3 I will enter data. It must record on corresponding date & column in sheet 4.

Book2.xlsx‎

View 1 Replies View Related

User To Enter Date (US Version)

Dec 13, 2011

I have a userform where I want the user to enter the date (US Version)

I want them to enter 121311

I want the textbox which I am using to show 12/13/11 when they exit from it.

Here is my code i am using:

Private Sub mm_built_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Dim mm_date As Date
Me.mm_built.Text = Format(mm_date, "mmm/dd/yy")
End Sub

What shows when they exit the entry for the above is Dec/30/99

How do I get it to show correctly?

View 5 Replies View Related







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