Row Delete When Date Reached
Mar 26, 2014i have a sheet called match and dates in column f and would like the rows to auto delete when 6 years old
View 5 Repliesi have a sheet called match and dates in column f and would like the rows to auto delete when 6 years old
View 5 RepliesI have a "to do" spreadsheet as follows.....
Column A - nothing
Column B - Subject (thing to be done)
Column C - not relevant for this
Column D - not relevant for this
Column E - not relevant for this
Column F - importance
Column G - Deadline date
I would simply like excel to send an email to my boss (example@example.com) and if possible myself 5 days before the deadline date: email subject - '5 days left' . Email content - what ever is in the subject column for the relevant duty.
I have a quantity column on an inventory sheet which automatically updates the available quantity based on sales from a sales sheet. But I need to know the date the quantity reached zero.
That date would always be "today," on the day the quantity = 0, but how do I make the date NOT update to "todays date" on the next day, and the next, etc. It needs to stay as the date that 0 qty was reached.
I have an Excel workbook with two sheets "DataSheet" and "Actual Peaks", "DataSheet" contains a column with dates and a column with values. "Actual Peaks" has a bunch of dates listed in a column. For each date in 'Actual Peaks', another column goes back to the "DataSheet" finds the date, then starts adding values until a specified sum is reached, once the sum is reached, it returns the date at which the sum was reached. However, I have found that sometimes it is off by a day or two.
See the attached workbook for a much clearer example : Excel_forum help 7-23-14 DD validation.xlsx‎
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 RelatedColumn A
20
Column B
10
8
6
4
2
Column C
3
Right now I want to count the rows (the value is under column C) summing in column B until the sum reaches the value in column A. So column C is 3, because 10 + 8 + 6 => 20. I've tried
[Code] .....
But it doesn't work. Are there any other ways of performing VBA for this?
Attached is a snip of my workbook : VBAHELP.PNG‎
I have a value in cell P1 and is always -ve.
This value is calculated by some tedious calcualtion in some other part of the sheet.
By entering value in Cell P2, the value in cell P1 will progress towards +ve number.
What i want is a formula or Macro to increment the value in Cell P2 by 0.01
until value in Cell P1 becomes +ve...
Below is the example of my manual calculation.
When i have
P2=0 P1=-23.58
P2=0.01 P1=-14.78
P2=0.02 P1= -9.30
P2=0.03 P1= -2.92
P2=.04 P1= 1.05
Since i have achieved P1 to be positive, calculation should stop with value in P2=0.04
I have to do this for 31 column and hence manually doing it takes long time
I've found similar queries on the site, but none seem to handle multiple dates, and my attempts so far have been futile!
Requirement:
I press a button on Sheet1 and am prompted to enter a start date and an end date.
Depending on the dates I enter, all rows on Sheet2 which fall outside the Start/End date range will be deleted.
All dates to be checked against on Sheet2 are in a single column, and all rows are populated, there are no blanks. Dates are in the format dd/mm/yy
I am trying to create a special workbook for my asphalt project. After inputting all of the day's truck information, I want to add up the total tons and then for the program to highlight which truck puts the total tonnage at or slightly above 500 tons. I'm not sure if "isolating is the right term to describe what I wish to do or not, but my whole workbook will be based off of similar actions like what I'm requesting. Here is a portion of my sheet:
Truck #Tonnage
1 21.93
2 22.84
3 23.21
4 24.89
5 24.8
6 25.01
7 24.88
8 24.44
9 23.14
10 24.53
11 22.03
12 22.61
13 24.9
14 24.69
15 24.85
16 24.81
17 24.82
18 22.55
19 22.18
20 24.52
21 22.49
22 24.81
And so on.....
I currently have a table with 21 columns and 30 rows for inputting data. It would save some time if the cursor could move to the start of the next row when the last column was reached.
View 2 Replies View RelatedI have written a code but i can not make it stop where i want it to stop. I would like the code stop when cells(31,4).value reaches 0. Pls refer to attached sheet for a clear example.
The code is as follows
Sub production2()
If Cells(35, 4).Value > 0 Then
Cells(31, 4).Value = Cells(35, 4).Value
For j = 5 To 16
If Cells(36, j).Value < Cells(29, 4).Value Then If Cells(31, 4).Value > Cells(29, 4).Value Then Cells(37, j).Value = Cells(29, 4).Value
If Cells(36, j).Value < Cells(29, 4).Value Then Cells(37, j).Value = Cells(29, 4).Value
Cells(31, 4).Value = Cells(31, 4).Value - Cells(37, j).Value
Next j
End If
End Sub
I have a spreadsheet with time values incremented in column A.
In column K, there are numerical values that correspond to the time in column A.
Elsewhere, a specific time is chosen from which to begin the summing of the values in column K.
I need to be able to sum the values in column K until preset values are reached. Then I need to know at which corresponding time value the summing loop stops.
For example, a time of 11:00 AM is chosen as the "start time". I want to sum the values in column K until they are >= 2.000.
At that point, I need to know what the cell value was in colum A that is in the same row as the last cell value in column K.
I can't seem to do it with simple Excel functions without falling into a self referencing loop. So what I need is for a VBA loop to lookup the appropriate values in column K, sum the values, check the total, and continue the loop until the preset total is reached. Then look up the value in column A in the last row of summed values, and return that value.
Is there any code to pop up a message each time a cell value is not reached. For ex if the resulted formula in A1 is less than 0 to pop up a message "LOOSE"
View 4 Replies View RelatedI have the following information on the sheet named "Calculator"
01-Mar-0825510051005.0045'[test.xlsb]Product Price'!$D$256
01-Oct-09274975990.0054'[test.xlsb]Product Price'!$D$27501-Aug-10284981999.0058'[test.xlsb]Product Price'!$D$28501-Dec-10288621634.0058'[test.xlsb]Product Price'!$D$28901-Jan-11289054.00150'[test.xlsb]Product Price'!$D$96601-Sep-1129718001854.00150'[test.xlsb]Product Price'!$D$974
In column f i have the following formula {=CELL("address",INDEX('Product Price'!$D$1:$D$1014,MATCH(B2&E2,'Product Price'!$A$1:$A$1014&'Product Price'!$D$1:$D$1014,0),0))} that returns the cell address from where i want to start my sum function.
My sheet named "Product Price" looks like this:
255Mar-0839508R 45.00256Apr-0839539R 45.00257May-0839569R 45.00258Jun-0839600R 45.00259Jul-0839630R 48.00260Aug-0839661R 48.00261Sep-0839692R 48.00262Oct-0839722R 48.00263Nov-0839753R 48.00264Dec-0839783R 48.00265Jan-0939814R 48.00266Feb-0939845R 48.00267Mar-0939873R 48.00268Apr-0939904R 48.00269May-0939934R 48.00
I now require a formula in column g that will count how many times starting from the cell in given in column f it added the amounts downwards to reach the amount in cell d of the "calculator" sheet - it must thus add d256+d257+d258... until it is bigger or equal to the amount in cell d.
I want to Freeze my Header Row (A16 to T16) on my spreadsheet but I can't seem to get it to freeze. I wanted to have it freeze when that row reached the Top of the page but all I can do is freeze it and the 15 rows above it. Can one row be made to be visible at all times? I don't think so as I asked this question before but thought I would start by asking it again...
Now my workaround for that was to put the header row at the top of the page as well and freeze it. This works but when you initially open the spreadsheet it look weird because you see a header row on top and one 15 rows below it.
My question is is there a way to hide row 1 until a specific cell becomes active and then the code can undide the row? I want row one to become visible when the user gets to cell A41. Does anyone know how I can accomplish this or do you have any other suggestions for me to try?
10 12 13 12 10 11
40 30
? ?
Count values in the top row until the sum is greater than the relative value below
In this example the first ? would be 4 as 10 + 12 + 13 + 12 = 47 (greater than 40)
The second ? would be 3 as 12 + 13 + 12 = 37 (greater than 30)
I cant figure out how to do this with a formula! Custom Function needed?
I have a column that is a percentage(p%) which measures the fullness of the location(loc) that the item(ite) is in, which also has a corresponding location(loc) and item column(ite).
What I need to do is add as many items(ite) to one location(loc) as possible without exceeding 100%(p%), however if the value exceeds 100%(p%) then we need to start all over in a new location. The end result would be an unknown amount of unused locations.
If p% < 100 then add the next row's p% value, else start over with a new location. I am trying to add as many items to one location as possible, and once a location fills up, we will use the next one.
I have tracker, where Cells in Column F have dates or are blank.
I am trying to run a macro to delete all rows when the following criteria apply:
for all cells in column F, if date < 1-Oct-2013 then entire row should be deleted if cell is blank - nothing should happen This is what I got so far - but it is not working...I have entred the date "10/1/2013" in cell AA2 but macro should always check against that date (not variable) so it might not be needed.
Sub PART3_Delete_old_team_members()
Columns("F:F").Select
Selection.NumberFormat = "m/d/yy;@"
Dim endrow As Integer
On Error Resume Next
endrow = Sheets("Global Team List").Range("F900").End(xlUp).Row
Searchdate = "AA2"
[code]....
I have an excel file that linked to an external feed that receives stock prices in real time. on the file i have the stock name, the price paid and the current price. I would like to have a popup that shows up whenever a stock price has a 15% or higher return. I would like the popup to show the stock name. I realise that conditional formatting would highlight whatever is over 15%, but the workbook has multiple worksheets and I would like it to popup even when i am on another worksheet.
Enclosed is a copy of the file (the actual file has many more sheets) : john.zip
I have the following Macro to transpose data from a column into succesive rows. I need it to repeat, until it has processed all data in column A / until it reaches an empty cell in A.
Sub Macro1()
'
' Macro1 Macro
'
[Code]....
I have a spreadsheet that in column A has someones name, in Column B it has a number.
For example
Column A Column B
Bob Smith 1999
I am looking for a macro that will automatically send an email to this address for example test@test.com, when the number in column B reaches 1200.
I need the email to have in the body - "Bob Smith has reached 1200"
I need this macro to run against 20 sheets in my workbook.
Im struggling how to even start writing this code. What im trying to do is go down column S from row 2 down and sum up each cell until the sum = 700 then delete all the rows below that with some thing in them.
View 2 Replies View RelatedOn Sheet1, I have a list of names in Column A, with a corresponding value in Column B
NAME
VALUE
Alpha
3
Beta
2
Gamma
1
Delta
2
On Sheet2, I have a list of items that need to be assigned based on the values on Sheet1 (Assign to column would be blank, filled in by the macro/formula)
ITEM
ASSIGN TO
1
Alpha
2
Alpha
3
Alpha
4
Beta
[code]....
best way to automate the data on Sheet2? The items can be assigned in any order, it just needs to match the count on Sheet1.
I have a number of dates (columns) and under each date there is the demand value (Rows). Also, i have a column that has the current inventory. what im trying to do is to keep on adding the demand in one row (i.e multiple dates) until the sum just exceeds the inventory. After that, i would like to return sum the date at which we stopped adding. the point of this excercise is to see at which month will our inventory deplete according to the demand. Below is an example solved by hand.
Demand
Part #
month 1
month 2
[Code].....
How do I disable a range of cells when a numerical limit is reached?
Here is the scenario:
I have two worksheets, one called “Items” which contains a list of Items and their weight. The other sheet is called “Container” and displays a Type of container in cell B2, the weight capacity of that container (the numerical limit) in cell C2, and a range from B5 to B14 that needs to be filled out by an end user. The items in B2:B14 are chosen using Validation, form the Items sheet. The weight is brought in via a vLookup, and the total weight is calculated as items are added.
My problem is that I have yet to find a way to “disable” any extra cells in B5:B14 once the weight limit is reached, and clear the last cell data was selected for, all without destroying the Validation for the cells in range B5:B14.
I have tried many different things in the Worksheet Change Event, but none have yielded the desired result.
lets say i have 200 used columns. if i delete 150 of them and then (without saving the file) try to add 100 more i get an excel has reached its limit error. theoretically 200-150+100 = 150 columns, which should be well within the 258 column limit. but excel still gives me the error )its like its calculating 200+100=300 > 258). HOWEVER, if i save the file after deleting, i dont get any errors at all. is this a "feature" of excel and if so is there anyway of circumventing it? because i dont want to save the file prior to adding the columns (i do the whole thing in vba). actually i dont want to save the file at all unless the user click on the save button or choose save/save as from the menu.
View 9 Replies View RelatedI have an excel file that linked to an external feed that receives stock prices in real time. on the file i have the stock name, the price paid and the current price. I would like to have a popup that shows up whenever a stock price has a 15% or higher return. I would like the popup to show the stock name. I realise that conditional formatting would highlight whatever is over 15%, but the workbook has multiple worksheets and I would like it to popup even when i am on another worksheet. enclosed is a copy of the file (the actual file has many more sheets)
View 4 Replies View RelatedCurrently using LEN to simply count 50 characters then it tells the user that they need to move onto the next line.
Is it possible with VBA that after 50 characters reached in the selected cell it forces the user into the next cell below and so on in a loop?
I am trying to put a message box related to a cell if a threshold values is reached.
E.g.: Cell A: 85
If cell A values moves to 86 I am trying to put in a message that says something like " This value is not allowed". Is there a way to do this ?
We have a form that requires descriptive comments to be entered into several rows of merged cells. My goal is to have the form be able to automatically dropped down to the next row of merged cells when the current row of merged cells reaches a maximum number of characters.
And finally, the last row of merged cells would not allow any more characters than the maximum assigned but not advance to another cell automatically.
The rows I am working with specifically are:
Merged Cells F23:R23; A24:R24; A25:R25; A26:R26;...A29:R29