Decrease Cell Value
Aug 2, 2007
Is there a formula or maybe some VB code that can be used to decrease a cell value if another cell's value is changed. e.g. I have a userform that has a Textbox that will put a 6 digit number in cell J4 & a Combobox that enters a number in cell E4. If the value of J4 is changed from the Textbox, I would like to have cell E4's value decrease by 1. If J4 doesn't change, cell E4 remains unchanged.
View 2 Replies
ADVERTISEMENT
May 2, 2012
I need a formula that can work out a percentage increase or decrease from cell J2 to L2.
J2 is the current data with L2 being the previous data - so the formula would compare J2 with L2 and tell me if there is an increase or decrease shown as a percentage.
The figures fluctuate from month to month so they could be either an increase or decrease. There are over 300 entries so I can't go through each one adjusting the formula accordingly - this is why I need the formula to do the working out if it is up or down.
View 7 Replies
View Related
Sep 21, 2013
I have a simple spreadsheet. A value is inserted in cell B4.
I want to increase that value or decrease it by adding a button in the next cells, C4 or D4, to increase and decrease that value instead of manually typing in the new value.
View 7 Replies
View Related
Oct 18, 2006
I have a single cell in a spreadsheet which I'm trying to increment by 1 on demand.
My ideal would be a button which increments by 1, and another button which decreases the value by 1.
Is there any simple way to do this?
View 4 Replies
View Related
Apr 28, 2012
I have a macro that increase a cell number and one that decreases a cell number, heres my code:
Code:
Sub Macro1()
Dim t
t = Split(Worksheets("Sheet1").Range("d5").Text, "/")
t(0) = Format(t(0) + 1, "0")
Worksheets("Sheet1").Range("d5") = Join(t, "/")
[Code] .......
So they do exactly what i want them to do but i want to put a limitation on them, so say the number in the cell is 0 then i dont want it to be able to subtract from it anymore, and say the number is 20 i dont want it to be able to add any more, i tried to put if statments into the code but no luck.
View 3 Replies
View Related
Nov 15, 2009
I have a 49 numbers in cell A1:AW1 they are not in acceding order. I want to separate all groups’ start from lowest number to highest giving them deferent color. As shown in example table below in cell (A2 start with nº 6 and increase up to nº 47 till cell F2 =yellow color) then Cell (G3 decrease nº 3 and increase up to nº 49 till cell L49=Green Color) and continue same process for rest ....
View 9 Replies
View Related
Sep 28, 2009
how to change the cell colour due to a sum increase or decrease? For example: if the amount is greater than 200, change cell colour to green. If under 200 change cell colour to yellow.
View 2 Replies
View Related
Dec 11, 2013
I'm dealing with the following problem. Say I have a set af values:
A B
1 567
2 546
3 567
4 554
5 572
6 543
I can easily determine the average of the values in column B (=AVERAGE(B1:B6)) But I also want to know if the average is increasing or decreasing without making a chart and trendline. Concrete: I want the cell with average (say B7) to turn green when the trendline has a positive growth and red when negative.
View 2 Replies
View Related
Sep 18, 2006
Simplified:
I have a this years total in A1, last years total in B1, difference +/- in C1
$1000.00___$800.00___+$200.00___+%
$800.00___$1000.00___<$200.00>___<%>
I am trying to get a % of Increase/Decrease (Between A1 and B1) in D1.
Not as a dollar amount but as a %.
I have tried Percentile and PercentRank and some other stuff. No joy.
View 12 Replies
View Related
Oct 13, 2008
I have a single simple question, so let's get straight to the point: I have an A column with these values:
I:::I::::::A::::::I::::::B:::::....
I==================== ....
I 1 I____40____I_________ ....
I 2 I____50____I_________.....
I 3 I____30____I_________.....
And I need each of these values increased/decreased by a constant number.
So far, I only found formulas where all cells are, say, added into a single result, as you can see here:.....
View 2 Replies
View Related
Apr 25, 2009
In this sheet are 2 Splash screens which randomly open on startup. This is the code for them:
View 12 Replies
View Related
Aug 6, 2009
I need to be able to select a certain number (from, say, 1-20) from a drop down menu, which will decide a number of rows (filled with data) on the next sheet. As I prefer not to give anyone the sheet I'm actually working on I made a quick look-a-like which might explain this better.
A and B are different scenarios, with different values in the fake drop-down menu I made. Just to pass on the understanding of what I want the values to do. If putting a drop-down menu there is troublesome, then I can live without them. But entering a certain value in the field and getting that number of rows for a certain product is what I need. I tried searching for a function/macro to use for this, but I dont know what exactly to look for. Name, etc
View 4 Replies
View Related
Nov 18, 2009
Below i have example table in which Cells B2:G4 have draw numbers. In Cells I2:X4 I have numbers in 3 groups, Group start with small number and finish with highest number.
For example in row 2 first groups is 5 to 36, second group is 10 to 30 and third group is 4 to 41 and continue same for rest rows ....
View 9 Replies
View Related
Jul 31, 2006
How can i format my excel spreadsheet cell so that a number
10,000,000
displays as
10
View 4 Replies
View Related
Aug 2, 2008
in speeding up the below code as it does not seem to matter whether I use For, If loop etc - it runs too slowly. Basically we have one sheet which is input in a different timezone that needs converting to GMT... since daylight saving I wrote some code to cover the +/- 1 hour difference (this seems to work quite well) yet when it comes to converting the actual cells it runs incredibly slowly. I appreciate any help but its only the code after "Sheets("data").Unprotect" that i think needs changing. The time stamp is in column 7 - I hope this makes enough sense - which then gets converted by either 4.5 or 5.5 hours dependent on british summer time.
Sub TimeConvert()
With Application
.Calculation = xlCalculationAutomatic
. ScreenUpdating = False
.DisplayAlerts = False
.EnableEvents = False
End With
Dim FirstDate As Date
Dim Position, DayIndex, lgrow, lstrow As Long, TargetMonth As Long, Stweekday, Enweekday, Tdate As Date, TargetYear As Long, cell As Range
Dim bst As Boolean
TargetYear = Year(Now)
TargetMonth = 3
Position = "L"
DayIndex = 1
View 3 Replies
View Related
Mar 30, 2013
I receive a large file every month with 30K+ rows of data that need to be manipulated manually before I can send it off. Within the data are "chunks" of data that are anywhere from 1 to 90 rows each. Each chunk needs to total 100 or less, and while they do for the most part, some end up over 100 due to rounding (usually 100.02 or so). The rows above and below each chunk are blank, and I currently have a calc to add each chunk, and flag it if it's over 100. Then, I have to go through each of the flagged chunks and manually decrease one of the lines to make the total 100.
Is there any way to automate any or all of this procedure?
I have attached a sample file with two chunks of data. The actual files contains 14 more columns to the left that aren't shown.
Sample.xlsx
View 5 Replies
View Related
Feb 27, 2014
Is it possible through a macro that the cells where numbers is in percentage format should not show any decimal points (is should not roundoff) just decimal points should not visible. I am aware that this can be done by "decrease decimal" but data will be across thousand of rows manually it will be very time consuming.
I have attached a sample worksheet : Percent.xlsx
View 3 Replies
View Related
Mar 4, 2014
I have totals in d18 and e18 and need to find the percentage increase or decrease between the 2. E18 is last year's value and D18 is this year's value. Which formula will give me what I am looking for:
(D18-E18)/D18 or (D18-E18)/E18
View 2 Replies
View Related
Aug 27, 2012
How to increase & decrease numbers evenly for a spreadsheet.
I have a number in cell F16 that can be changed and for this example say it has a value of 900.
I have a number in cell F17 that is always more than cell F16, for this example lets say it is 1000.
What I'm trying to do is create 10 numbers evenly increasing away from 900 (F16) in value, & 10 numbers evenly decreasing in value away from 900 (Cell F16) but here's the catch.
What makes this tricky is that the numbers that are increasing in value away from 900 (F16) can't be bigger than the value of F17 , IE in this example the number 1000
So the formulas must evenly distribute 10 numbers BETWEEN 900 & 1000. This must have the same even distribution for the increasing numbers & decreasing numbers.
I'll attach a sheet also. So, if you say 900 is a starting point & 1000 is the ending point, what formulas would you need in each cell to evenly increase to 1000?
Also,, going the other way, decreasing, away from 900 at the same rate as the increase?
Really stuck n this 1.
Spreadsheet here: [URL] ......
Screenshot here: [URL] ......
I'll attach a spreadsheet .xls
View 5 Replies
View Related
Oct 16, 2013
I have a table that has labels of departments. Then each of those departments will be tracked per week on a number. I am looking for a formula for conditional formatting that if cell C5 is less than B5 that cell C5 (with the smaller number) fills green. Then depending on the next weeks number it will have no fill or a green fill if the number has decreased in cell D5.
Is there anyway that I can do an array of cells or do I have to do it individually per column?
View 2 Replies
View Related
Aug 24, 2006
I’m trying to make this:
Amount of money: 1000 (changeable)
Beginning # of units: 0,1 (changeable)
Delta: 200 (changeable)
Rate of decrease: 50% (changeable)
0,1 unit should be added for every 200$ increase (1000+200=1200; 1200+200=1400; 1400+500=1900; 1900+256=2156 etc)
0,1 unit should be taken away after decreasing by100$ (because the rate of decrease = 50% (changeable))
After increasing of 1000 + 200, quantity of units should also increase for 0,1, so it should be 0,2 (1200), 0,3(1400), 0,4(1600)….. Amount of money can increase not only by 200, but for any sum. If that sum is (for example) 500, we should increase by 0,2 etc.
But when this some decreasing we are using rate of decrease (for example 50%, (changeable):
0,4 units – 1600
0,3 units – 1500
0,2 units – 1400
0,1 unit – 1300
View 2 Replies
View Related
Jan 22, 2008
I'm building a keypad out of commandbutton controls, and there's this strange resizing behavior with the commandbuttons. I've attached an example, as it's much easier to see than describe.... but essentially, clicking a button seems to enlargen it slightly, and then two clicks later, it 'dezooms' back to original size (even with shadows turned off). while this is not hugely noticeable individually, it feels really strange when there's a whole keypad of commandbuttons.
View 8 Replies
View Related
Oct 8, 2008
I'm trying to build a formula to form a price-list. I have some basic prices from a supplier and want to build my prices with a simple rule: the higher the basic price is (column A), the lower my profit margin (in %) should be (column B). Example:
Basic value is $50, my price is $75 (50% margin)
Basic value is $100, my price is $130 (30% margin)
Basic value is $150, my price is $172,5 (15% margin)
And so on...
I forgot most of what I've learned on Excel at my university (long time ago...), so I tried to do it by using simple thresholds, with "if" function:
View 5 Replies
View Related
Apr 21, 2009
Is there any keyboard shortcut to increase or decrease the number of decimals shown directly (I mean without having to use ctrl + 1... etc )
View 7 Replies
View Related
May 18, 2009
I am having difficulty finding information on coding my spin button on a user form. I searched and haven't found any information. I need to do is code a spin button to increase or decrease by 1 each time it is clicked up or down. I would like it to populate to a text box on my form if that is possible.
View 3 Replies
View Related
Oct 5, 2007
Using excel 2007, I have a worksheet with numerous data validation drop down lists. I was making a few changes to the worksheet and then I restarted the code. The font size of all my drop down lists displayed as a smaller font (maybe 2 sizes smaller) than had been displayed before. I went back to a previously saved copy of the code and the font size in the drop downs is back at the original size. Did I do something to cause this or is it excel 2007?
View 8 Replies
View Related
Aug 20, 2014
1- Open enclosed file.
2- Run Macro1.
3- Wait some time completing running Macro1.
4- Run Macro2.
5- Wait some time completing running Macro2.
6- Look MessageBox to see that what is Macro2 running time. (Note: My Macro2 running time is 06 minutes and 49 seconds)
My question is how can I decrease Macro2 running time ?
I am open all ideas like copy data to NotePad and paste again excel etc.
View 3 Replies
View Related
Dec 21, 2012
I have letter and number combination code in two collumns and they differ for 10.000 numbers:
BAM98314
BAM88314
BAM90000
BAM80000
As you can see the left code is for 10000 numbers higher. the letters are allways the same. In the event that this isn't so, if difference between codes in same row is more or less than 10000 numbers. I was thinking on making conditional formating so the cells with wrong difference would be marked red, but I do not know how to make formula for this difference.
View 2 Replies
View Related
Jun 10, 2013
i have been working on 2 sheets receiving and selling item and QTY, or in other words i have a Stock IN sheet and a Stock Out sheet
is there some sort of a formula which links 2 cells, columns, together in a way that, if one cell's number increased the other would decrease automatically ?
say iv set 50 in cell a1, i want to set 10 elsewhere and the 50 in cell a1 will automatically decrease from to 40
here's my excel worksheets i uploaded it,
View 7 Replies
View Related
Jan 26, 2006
I need to match data in cell A to cell B and then if they equal I need to copy the adjacent cell C to cell X . How do I set up a macro to do this automatically? I have over 5000 cells to compare and match up.. I have Office 2003.
View 7 Replies
View Related