Calculation Using Last Value In A Cell
Jan 23, 2013
I have a list of prices but some cells contain multiple values where the value has changed. I need a formula that will use the last value in a cell.
Example below. As you can see the result column has now value as its using $3.41$3.117 in the calculation (I need it to use $3.117)
Price
Uplift
Calculation
Result
[Code]....
View 4 Replies
ADVERTISEMENT
Dec 21, 2012
I have a cell A1 in sheet2 linked cell A1 in sheet1 (simply A1='sheet1'!A1). A1 in sheet1 is a data validation drop down menu.
I want to clear the content of A2 in sheet 2 everytime the content of A1 in sheet2 changes/is updated. That is everytime the value of A1 in sheet1 is changed using the drop down menu.
I tried using a Worksheet_Change event macro (which I do not fully understand) but it won't work with a cell that updates from a calculation. It also doesn't work if triggered from a cell from another worksheet (I tried linking it to cell A1 on sheet1 in this case).
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1")) Is Nothing Then Exit Sub
If Target.Count > 1 Then Exit Sub
Range("A2").ClearContents
End Sub
Any simple solution to clear the content of cell A2 in sheet2 when A1 in sheet2 updates?
View 3 Replies
View Related
Oct 31, 2013
which will calculate value of a cell when one of the variables has been changed?
To illustrate what I have in mind, an ecxample:
* User can add values to cells using UserForm
- Component name (to Cell "A1")
- Component price (to Cell "B1")
- Component quantity (to Cell "C1")
[Code]....
View 3 Replies
View Related
Nov 11, 2013
I am trying to return a cell with a simple yes or no answer and having a little difficulty.
I have entered the following formula which is returning #NAME
=IF(E4<=1.25,ORH4<=0.01,yes)
Calculation needs to be as follows:
Install Cost <1.25 and Profit atleast 0.01
The YES NO needs to be in the Invite? column
View 4 Replies
View Related
Feb 17, 2012
I am working with a pricing worksheet using the following formula to calculate my selling price. My problem arises when I have either one of the Exchange Rate fields blank or zero. Typically one or the other Exchange Rate would be used, and I have to be sure the one not being used is set to at least 1 or I get an error. Preferably I would like the cell to be ignored if it is blank. I've tried several options but cannot get anything to work.
I'm currently using this formula where the cells have defined names (ie US_EXCHANGE) and F# is my cost.
=F8*(IF(US_EXCHANGE=0,"",US_EXCHANGE*1))*(IF(EURO_EXCHANGE=0,"",EURO_EXCHANGE*1))*MARK_UP*FREIGHT
View 6 Replies
View Related
Jan 17, 2013
In one cell I have the formula =EDATE(D4,3) which looks to the cell to the left (which has a date in it) and in this case with the 3 it gives me a date three months in advance of the date in the cell to the left. This is for sites I visit quarterly. Then for those I visit monthly obviously the 3 is replaced with a 1. so in the cell I get the date when I next need to do my visit.
In the cell to the RIGHT of the cell which has the formula-generated date in it, is a cell in which I manually enter the date on which the next visit took place. In some cases I can't put anything into this cell because I've not been to revisit the place and so I can't put a date in. In the column to the right of this I've got the same formula as referred to above but, because the cell to the left is blank, it's returning a value which makes no sense and really, I'd prefer it that if the cell to the left is blank, the formula doesn't return any value (just leaves a blank cell instead).
So, what would I have to add to the formula above or what would I have to do to get it that if the cell to the left is blank, the formula is still there, but just returns a blank cell???
View 1 Replies
View Related
Feb 15, 2008
I have this formula: =IF(ROWS(H$12:H12)
View 9 Replies
View Related
May 20, 2008
How to use macro to build a calculation in excel using macro, so every time I type a number another cell it has value calculated without click "run" macro.
For example, I want to sum value in Range from F8 to FinalRow automatically, For example, I fill in 3 in D8, 4 in E8 and F8 show value 7; I fill in 4 in D9, 9 in E9 and F9 show value 13.
What is code for this?
View 9 Replies
View Related
Dec 17, 2007
I tried all those search and have no idea what to look for, sorry.
I have attached a single sheet with Footpath Budget for you to see.
In J6, we put in Y or N for Yes or No if there's a nature strip along the footpath.
Now, in cell G49 gives us the total square meters of nature strip.
What I want to do is if I put N in cell J6, cell G49 should be empty or zero because N means there's no nature strip. But if I put Y in J6, then cell G49 can give us total squares from cell C43.
So what formulas can I put in cell G49?
View 3 Replies
View Related
Jul 31, 2009
I'm working with Loan amounts and i need to know how to set a excel spread sheet to conditionally format a cell that causes a sum formula to exceed a preset limit.
Example ...
View 9 Replies
View Related
Dec 14, 2012
I'm developing a financial spreadsheet.
I've got a cell "Taxable Income" and another cell "Tax on Taxable Income" in sheet2.
When I enter a value in "Taxable Income" I want "Tax on Taxable Income" to automatically calculate based on formulas in sheet1. I don't know how to get "Tax on Taxable Income" to determine which formula to apply from the different tax brackets.
For example:
If taxable income is <$18201, tax = $o
If taxable income is between $18201 and $37000, Tax on Taxable Income =0.19*Taxable Income
If taxable income is between $37001 and $80000, Tax on Taxable Income =3572+0.325*(Taxable Income - $37000)
The idea behind having formulas in a different sheet is so over time when tax rates/brackets change I only have to change the formulas on one sheet.
I know how to use basic AND, IF statements e.t.c but I can't seem to get the syntax right for this to work.
View 1 Replies
View Related
Nov 17, 2009
I would like to have a cell in which there is descriptive text and the results of a calculation. For example, in row 2, I want to state the current total number of items in inventory at the top of the sheet in the center of the used cells.
Inventory Total is: SUM(A4:A64,000) as of: Date()
I can't merge cells or manipulate the text in such a way to neatly bring the text and calculation together. And there are actually 2 calculations in the example above. One to SUM the items and one to add the date.
View 5 Replies
View Related
Nov 14, 2008
I want to calculate ONLY if a cell is > the number manually entered in another cell, otherwise, I want the cell to populate with 0.
I need assistance with combining the following into a single calculation:
IF D11 is > D10, then D14 should = sum of D12-D10
If D11 is
View 9 Replies
View Related
Aug 21, 2009
Would it be possible to calculate difference between 2 or more dates in the same Cell?
Dates are in the format shown below (Always seperated by a comma):
Cell A1 = 29Jan2009, 31Jan2009, 14Feb2009, 27Feb2009, 31Mar2009.
In the above case there are only 5 sets of dates, in some cases there are more and in some cases there are less. Between Min 2 dates - Max 7 dates.
Am looking for a result like : 2,14,13,12
Am not well versed with VBA, hence would prefer a formula. Currently am doing Text to Column and working on the same. And that process is time consuming. Would there be a short cut ?
View 9 Replies
View Related
Oct 5, 2009
Im trying to work out a function that will calculate the average accross a 3 column array. Obviously there is but I need to make any cell's with 'Free' give a value of 0.
I need some kind of IF("Free",1) type thing, to run before the average calculation, but I dont know how to put it together to make it work, I thought about a Loop, but then how do I make sure it only goes to the next cell in the selection?
View 9 Replies
View Related
Nov 21, 2007
I have made a macro to nominate a % rate in an input box , then have a value multiplied by this rate. Now i need the macro to place the rate followed by a '%' symbol in the cell below.
View 9 Replies
View Related
Jan 23, 2008
I'm trying to create an if statement to check to see if a cell has a value in it and return a math function. My problem is that some of the values contain more that just the name searched for. This is a basic example
A B C
10 Williams DXT if(B1="Williams",A1*.8,if(B1="Johnson",A1*.85,1))
20 Williams DPX if(B2="Williams",A2*.8,if(B1="Johnson",A2*.85,1))
30 Johnson AMV if(B3="Williams",A3*.8,if(B1="Johnson",A3*.85,1))
40 Johnson ACS if(B4="Williams",A4*.8,if(B1="Johnson",A4*.85,1))
50 Smith TWN if(B5="Williams",A5*.8,if(B1="Johnson",A5*.85,1))
View 4 Replies
View Related
Jul 24, 2009
Assume A1=25 and A2 = 35.
I typed, in cell A3: =A1+A2 which returns: 60.
Is there a way to present, in a single cell, instead of the formula references - something like: =25+35 as TEXT ?
(Any change in A1 and/or A2 will be reflected in the presentation of those two values
I checked some add-ins functions, like "MoreFunc" etc, and INDIRECT - but no results.
View 4 Replies
View Related
Jan 17, 2013
Please see the attached.
I have put together a sort of hire chart for a charity that hires out scooters/wheelchairs.
All the formulas were done and then they said that they sometimes hire out extra equipment with the chairs as well.
I have created an 'extras' column but I'm having nightmares trying to integrate it into the current formula.
I have just changed the first 3 rows to experiment with.
There is a basic cost of £2 per week or part of a week, that price is regulated from the master page.
Column P calculates the rate from the weeks/days and uses the master page as the source of costing.
I have created a column 'C' for the extras and tried to integrate it into the already complicated formula.
Unfortunately, although it seems to work, it won't work if the cost is lower than £9. At that point, it doesn't matter what I do in column C, it just ignores column C
When it gets to £12 it seems to take notice of column C, very strange.
Wheelchair Hire-Sample New (1)(1) (5).xlsm‎
View 4 Replies
View Related
Sep 24, 2011
Short Version: I need to find a way to have the date in a cell be used for both a calculation (one date subtracted from another) AND a conditional format (Cell changes color based on the month). Cell format is mm/dd/yy
Explanation: We enter information for each work order on a row in our Master Work Order List. For each new work order we start a new row at the bottom of the sheet.
We calculate each work order's throughput time by having a formula in column F that subtracts the Start Date in column D from the Complete Date in column E.
F#=E#-D#
All date values are entered as mm/dd/yy and the cell format is mm/dd/yy.
At the end of the month, we put an AVERAGE formula into a cell in column H and, for the sources, use all cells in column F that represent work orders that were completed for THAT month. The problem is not all work orders complete in the order they started and some can start in one month but not complete until 2 months later, so we can't just click-drag a bunch of cells in a column. Sorting doesn't work because after we click and drag a bunch of cells and get the average, when we re-sort back to Sort by Work Order Number, the clicked-cells don't move, but the data does.
We end up just looking up and down column E looking for dates from this month and hope we got them all.
So I thought, "Hey, I know, I'll put conditional formats into column F so that if the date in column E starts with 01 (January), the cell in column F will turn Red, and if it's 02 (February), the cell will turn Orange and so on through the end of the year! That way we could just look for a given color each month and are MUCH less likely to get it wrong!
I added conditional formatting using the LEFT(E#,2) formula, hit [Enter] and... nothing.
I thought, "I"ll set the cell formats to TEXT so the LEFT formula 'sees' the month number!"
So I set the cell formats to TEXT and then the conditional format 'sees' the '01' for January and changes color!!
But now the Throughput Time formula (=E#-D#) doesn't work.
I think it's because Excel can DISPLAY a date as mm/dd/yy (due to Date Format), but it actually calculates date information based on a number that REPRESENTS the mm/dd/yy. I read that Excel 'sees' each date as a number representing time passing, not as "mm/dd/yy" and uses that number for calculations.
SO, is there a way to have a cell's date be 'calculatable' and still have it change color based on the month?
View 5 Replies
View Related
Feb 28, 2008
I have a spreadsheet spread over with dates in column A from September to December and I have a fuel rebate column as well. The fuel rebate is different for each month and is calculated as a certain amount of cents per dollar added to the total amount in Column B
September: 26c
October: 13.5c
November: 43c
December: 66c
e.g. If there is an invoice for 10/9/07 (september) for $100, then the fuel rebate would be $100*.26 which equals $26 fuel rebate. I want to calculate column B (this is the column with the dollar amount in it), but I want the calculation to be different depending on what date is in column A, so if in column A the dated month is October, then the calculation would be something like B2*0.135. give me the calculation I am certain you don't need VBA for this right (just nested IF statements?)
View 3 Replies
View Related
May 28, 2008
I am trying to get different shapes (previously created) to appear in a certain cell, dependant on the resultof a formula in an adjacent cell.
View 4 Replies
View Related
Dec 19, 2013
I have this problem where the SUM function is returning 0. The context is this- I am simulating values using RAND() and looking up the values corersponding to probabilities from a different tables. I then use the TRIM function to return the value I need, and the final number is of a "general" format.
This is the formula in the column I wish to sum:
And this is dragged down the column.
When I change the cells using =VALUE(cell) the SUM function then returns the required value. Oddly the SUMPRODUCT function seems to work.
Calculation is set to automatic and the cell has been formatted as a number.
View 2 Replies
View Related
Jun 29, 2013
Criteria
Column B
Constant
Variable0
Variable1
Variable2
Variable3
2
[Variable2/Constant]
5
123
43
45
76
[Code] ..
This is my table. What formula should I use so that Column B shows the calculation depending on the Criteria column?
View 9 Replies
View Related
Apr 16, 2009
i have a database of the kind:
Model Version Color Store
1 a zz HH
2 b xx QQ
3 c yy OO
4 d ww PP
I need to obtain in the y axis the model, and in the x axis the store.
The data per each model and store should be: the version and color.
I'm using Pivot table to do that, but i'm only able to obtain the "count" (or sum or other formula) but I'm not able to obtain the content of the cell.
Example:
Store HH PP
Model
1 Version a d
Color zz ww
2 Version b c
Color xx yy
View 9 Replies
View Related
May 24, 2008
I'm quite a novice at Excel. I have a column of values that I sum as follows;
A
0
0
0
0
0
0 <----------------sum of A1:A5
A formula may change one of the values in the above column to a '1' which means the sum will become '1'. The sum can only be '1' or '0' and only one value in the column will ever change. I need to add a value of 2 to another cell (say, C1) when the sum of A1:A5 changes from a value of '0' to '1'. I know this will probably involve the worksheet change event but am having a problem implementing it.
View 7 Replies
View Related
Nov 19, 2008
make a calculation(addition) and use the answer to multiply against another addition calculation....
The sum of (Monday!A1:A4) multiplied by the sum of (Monday!B1:B4) plus (Tuesday!A1:A4) multiplied by the sum of (Tuesday!B1:B4) and so on.
View 2 Replies
View Related
Mar 25, 2009
I am trying to come up with a formula that will allow the commission calculation to be done automatically once data is inputted in cell A2 and E2. I have tried IF statements, but can not figure out how to make it work. I am not able to figure out how to get cells F9 and F19 to work with the proper formula.
View 4 Replies
View Related
Apr 16, 2009
I have a IF formula that check if “F13” cell is "+" if not do calculation (F13-E13) and stop, if yes go to the previous line and check if the “F12” is "+" if not do calculation (F12-E12) and stop, if yes continuo to the previous cell and so on until you find cell without “+”
The EXCEL IF formula is
=IF(F13="+",IF(F12="+",IF(F11="+",IF(F10="+",IF(F9="+",IF(F8="+",E8-F8),F9-E9),F10-E10),F11-E11),F12-E12),F13-E13). I'm looking for VBA code with FOR to run and do the same without the limitation of 7 if inside if.
View 3 Replies
View Related
Oct 12, 2007
I have a series of monthly revenues and want to calculate each month a commission % - but only want this commission calculated up to a defined limit from the previous months and current month and then to stop when the limit is reached.
View 13 Replies
View Related