Set And Retain The Date That A Value Is Reached

Dec 10, 2009

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.

View 9 Replies


ADVERTISEMENT

Sending Email When Date Reached In Cell Date

May 27, 2014

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

View 3 Replies View Related

Row Delete When Date Reached

Mar 26, 2014

i have a sheet called match and dates in column f and would like the rows to auto delete when 6 years old

View 5 Replies View Related

Retain Date Format For Input Entered As Date?

Mar 24, 2014

I'm using nested SUBSTITUTE formula to make some changes to the some of the data. I'm also using IFERROR to return the input if it does not find the criteria I have specified. I have lot of variations in my input data.

The formula works fine for all except for date format input.

Sample:

N90232Y09--->SUBSTITUTE(A1,"N","")-->90232Y09
12335--->12335
12/3/1923---->58936 (I want the date to be retained)

why the date format is changed even if don't specify any changes for it. I expect my IFERROR to just retain the input as it is.

View 4 Replies View Related

Combine Text & Date. Retain Date Format

Nov 8, 2006

Date:31-Oct-06 (the date is in cell A3)

Formula: "as at"& " "&A3

Result: as at 39021

I need the results to be "as at 31-Oct-06". Is there a formula for this??

View 2 Replies View Related

Array Formula - Finds Date Then Start Adding Values Until Specified Sum Reached

Jul 23, 2014

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‎

View 7 Replies View Related

Join Cells & Retain Date Formatting

Nov 30, 2007

I have a number in A1, another number in B1, a Date in C1. In D1, I am referencing all 3 of the other cells: =CellA1 & "-" & CellB1 & "----" & CellC1. Trouble is the date is coming through as a number. Is there a way that I can get the date to show as displayed as opposed to the value of the cell?

View 2 Replies View Related

Join Time & Date & Retain Formatting

Jan 29, 2008

I have written some code which takes data from multiple spreasheets and formats it in a specif way. However one problem I have is getting the right data format. As you will see from the input files the date and time cells are separated into two and the macro is supposed to aggregate these together in one cell with a space in between - but I cannot manage to perfect this !!! The output is in a number format instead. I have attached the input files. The code written so far is as follows - works perfectly apart from date format that comes is in the output file once you run the code.

Dim Obj1 As Object
Dim Obj2 As Object
Dim UserList()
Sub RunMe()
Dim Str1 As String
Dim myPath As String
Dim i As Integer
Set Obj1 = CreateObject("excel.application")
myPath = "C:Test" 'please note you should a "" at the end.
Str1 = Dir(myPath & "*.xls")
Set Obj2 = CreateObject("excel.application")
Do
Obj1.Application.DisplayAlerts = False
Obj1.Workbooks.Open (myPath & Str1)
'For i = 1 To UBound(userslist).............

View 6 Replies View Related

Subtact X Days From Date Variable & Retain Leading Zero

Jan 12, 2008

I am trying to insert a leading zero for single digits. A3 contains a date, i.e. 01/10/08


d = Range("A3")
dDay = Format(d, "dd")
'The result is '10'

dPrevDay = dDay - 1
'The result is '9'

dPrevDay = Format(dDay - 1, "dd")
'I anticipated the result of this to be '09', but it is '08'

How do I get the result of '09'?

View 7 Replies View Related

Count Until Sum Value Is Reached

Mar 31, 2014

Column 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‎

View 1 Replies View Related

Increment Until Value Is Reached

Apr 5, 2008

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

View 13 Replies View Related

Can't Seem To Highlight Particular Cells When Certain Sum Reached

Mar 12, 2014

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

View 4 Replies View Related

Move To New Row When End Column Reached?

Mar 15, 2014

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 Related

Stop Code When Value Reached

Oct 15, 2006

I 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

View 9 Replies View Related

To Sum Cells Until Preset Value Is Reached

Apr 23, 2007

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.

View 9 Replies View Related

Pop-Up Message If Cell Value Not Reached

Jan 16, 2008

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 Related

Count Until Greater Sum Range Value Reached

Apr 11, 2012

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

View 2 Replies View Related

Keep Row HIDDEN Until Specific Cell Has Been Reached

Feb 12, 2007

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?

View 9 Replies View Related

Count Until Greater Sum Range Value Reached

Dec 18, 2009

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?

View 9 Replies View Related

Calculate To Percentage Reached, Then Start Over

Aug 9, 2007

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.

View 6 Replies View Related

Display Popup When Percentage Difference Reached

Feb 16, 2008

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

View 5 Replies View Related

Repeat Macro Until Empty Cell Is Reached

May 6, 2014

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

View 3 Replies View Related

Macro To Generate Email When Number Reached?

Feb 6, 2014

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.

View 4 Replies View Related

Going Down Range Summing Cells Until Number Is Reached?

Aug 7, 2012

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 Related

Macro To Paste Values Until Count Reached?

Sep 17, 2012

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

View 4 Replies View Related

SUM Until Specific Cell Is Reached And Heading Return?

Nov 18, 2013

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

View 9 Replies View Related

Disable A Range When A Numerical Limit Is Reached

Aug 30, 2007

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.

View 9 Replies View Related

Deleting And Inserting Columns - Reached Its Limit

Apr 29, 2009

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 Related

Display Popup When Percentage Difference Reached

Feb 16, 2008

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)

View 4 Replies View Related

Force User Onto Next Cell Once Character Limit Reached?

Feb 10, 2011

Currently 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?

View 7 Replies View Related







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