Increase One Cell By Decreasing Another

Jun 12, 2014

Is it possible to have a cell increased by 1 and another decreasing by 1 in a simple cell formula.

E.g.: I have an inventory stock sheet that is very simple. I have a maximum stock column C, a stock on hand (available) column A and a stock sold column B.

Every time I sell an item and punch it into column B it should automatically decrease the amount in column A by the number that I punch into B.

I am not concerned about the maximum stock column but would like an easy formula just to work out the amount that I have available so I know when to order more stock.

So when I punch in a 5 on B2 it should decrease the value of A2 to 1. And when I purchase stock again and I punch in say a 5 on A2 it should decrease B2 to a 1.

****A* B *C
1 *2 *4 *6
2 *4 *2 *6
3 *8 *6 *14
4 *0 *6 *6

View 3 Replies


ADVERTISEMENT

Traffic Lights - Increasing / Decreasing Trends?

Aug 7, 2014

I need to conditionally format a cell to:

-return red/yellow/green when the value is below/above or within range of targets but dependent on an increasing or decreasing trend.

If the trend is decreasing and the value is above the target is should return red.

If the trend is increasing and the value is above the target is should return green.

For all there is a Threshold.

For example:

Value Target Trend TrafficLight
(A) 79% 90% Increasing RED
(B) 69% 70%-90% Withing Range Yellow
(C) 85% 90% Decreasing Green

Thresholds:

for example (A) - Red: <80%, Yellow: 80%-90%, Green: >90%
for example (B) - Red: 60-90%, Yellow: 50-60%;90-95%, Green: <50%;>90%
for example (C) - Red: >80%, Yellow: 80-90%, Green: <90%

View 1 Replies View Related

Increasing/decreasing; Rate Of Decrease - Spreadsheet

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

Create Drop-Down List Using Increasing/Decreasing Range

Oct 3, 2006

I have a list of jobs being displayed using the following code. All sheet names that start with AJ, CJ and PJ within the workbook are how the list is created.

Sub ListSheets()
Dim sht As Worksheet
Dim lRow As Long
Dim rCell As Range

With Sheet1

Set rCell = .Cells(2, 12)
End With

For Each sht In ActiveWorkbook.Worksheets
Select Case UCase(Left(sht.Name, 2))
Case Is = "AJ", "CJ", "PJ"
lRow = lRow + 1
rCell(lRow, 1) = sht.Name

Case Else
End Select
Next sht

End Sub

what i want to do is create a drop list within each job sheet within the workbook that will display the names of the jobs above. Now the thing is I cannot choose the range like normal from data - validation - list as I will not know how many job names will be displayed so I dont know how many cells to include in the range.

View 6 Replies View Related

IF Function Formula Logic: For Every Increase Of Of Mhz, Give 25.00 Per 100 Increase

Nov 2, 2006

I have a test due in the morning, and I really need this question answered ASAP, if anyone could. I need to create an IF formula for this situation: the standard Mhz is 500. Give 55.00 for that standard. But for every increase of of Mhz, give 25.00 per 100 increase.

View 2 Replies View Related

Can I Get One Cell To Increase By 1

Feb 10, 2009

if it is possible to increase one cell by 1 when the date was changed in another cell. I installed the code that was given to me and it worked perfectly, thanks agin JB and royuk, UNTIL the cell that was to increase by 1 was locked and the sheet protected.

The date cell is not locked.

View 10 Replies View Related

Increase Cell Value

Jun 6, 2006

I need to increase the cell value on a spreadshhet that contains over 50,000 cells. I know how to do this on a cell by cell basis. I need to know if there is some way of doing this to multiple cells. Here is my example;

$603
$712
$649

I need to increase each cell value and roundup to the next number. I have been doing the following formula: =ROUNDUP(603/.97,0) to increase the cell value to $622.

View 9 Replies View Related

Increase That Amount By A Percentage Identified In Another Cell And Display The Value Only Without Any Formalas In A New Cell

Jan 19, 2009

If a cell is not blank, then increase that amount by a percentage identified in another cell and display the value only without any formalas in a new cell. To this end I wrote this IF statement:

=IF(I2>0,CP9=(CA9*I2/100)+CA9,CP9="")

Observation: I see a FALSE in CS9 where this IF statement exists, however, CP9 does not display the required value.

View 8 Replies View Related

Get One Cell To Increase By Digit One

Jan 10, 2009

How can I get one cell to increase by 1 after I change the date in another cell. The spreadsheet is used to keep track of Oxygen Bottles at the local Fire Dept. and I want the " Times Filled" cell to increase by 1 after the " Date Filled" cell is changed. I'm not sure if they key the date in or if they use a calender add-in pop up.

View 5 Replies View Related

Increase Cell Range By 1 Every Day

Jan 28, 2009

I'm trying to sum a range in Column AB that increases by 1 cell every day.

Specifically, Jan 1 will be AB1, Jan 2 will be SUM(AB1+AB2), Jan 3 will be SUM(AB1:AB3)...and so on...Dec 31 will be SUM(AB1:AB367).

If it helps, the dates of the year run from A2:A367.

View 9 Replies View Related

How To Increase Cell Info Incrementally

Dec 7, 2010

I created a small block of cells on my worksheet where i have in separate cells, the day of the week, the days date and the month. I want to design a special memory calendar for my mom in early stages alzheimers.

There are cells with specific info which i do not want to re type for the whole month/year.

I want to be able to copy all the info into another block of cells and have the day of the week and date change also the month.

View 9 Replies View Related

Percentage Increase Or Decrease From Cell

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

How To Add + Or - Button To Increase / Decrease Value In Cell

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

Increase A Cell Value By 1 If Another Displays "yes&quo

Apr 2, 2007

I'm a novice at macros and spreadsheets and a Visual Basic Virgin!!.

I'm trying to work out how to increase a cell (B17) value from 1 through 5 then jump back to 1 and count to 5 again etc etc.

The value should be incremented every time cell B33 ="Yes" however there needs to be a 2nd event which resets the B33 trigger to operate again.
This is when cell B34 shows "New Race"

View 9 Replies View Related

Formula To Increase Cell Reference

Apr 8, 2008

I have to reference to another sheet a fixed increase of moving 6 rows across. What would be the formula for it?

For example.
First formula would be =Sheet1!A1
What would be the formula for the subsequent cells. (eg. =Sheet1!A1+6) obviously doesn't work.

View 9 Replies View Related

VBA Increase The Decimal Places Of A Cell

Jul 27, 2007

Is there a function in VBA that lets me increment or decrement the number of decimals of a particular cell? let's say i got a cell value of 7.123456 but excel only displays 7 on the cell. What if i want excel to display only 7.123? How can I specify the number of decimals i want on a particular cell (in this case 3)

View 2 Replies View Related

Increase Percent In Cell If Other Cells Contain Data?

Oct 24, 2013

I'm trying to track how complete a project is by checking if cells contain data, and if they do the percent in cell 'Y4' would increase.

I have 6 cells which represent milestones and if they contain data then they would add a certain percent to cell 'Y4'.

Cells B13 & R13 would have a weight of 15% each

Cells J13, J21 & J30 Would have a weight of 20%

Cell L34 would have a weight of 10%

Is there any way that if these cells contained any data that I could add that percent to the total in 'Y4'?

View 2 Replies View Related

Macro To Increase And Decrease Cell Number

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

Macro Increase Row Value Of Cell Reference By Increments Of 1

May 9, 2012

i'm looking for a loop macro to perform the following task:

Sheet 2 is my look up table, and sheet 1 as a number of references such as:
='Sheet 2'!B1
='Sheet 2'!E1
='Sheet 2'!G1 etc

I need a macro that increases the row references "1" to "2", saves the sheet then increases "2" to "3" and so on until the bottom of the reference table is reached

View 1 Replies View Related

Use Macro To Increase Cell Content 10 Points

Nov 17, 2007

I don't know if I am asking for something impossible,but is it possible to create a MACRO to automatically add or subtract 10 to whatever number is in the cell? for example:

A1= 20

I would like to have a macro that lets you either add 10 to it to become 30 or subtract 10 to it to become 10.

View 9 Replies View Related

On Today()+1 Increase Date In Cell By 1 Month

Aug 22, 2008

I have 22-08-08 in Cell A2 I would like it to change to 22-09-08 on 23-08-08 ideally using edate (but not neccessarily).

Perhaps I can add a formula with conditional formatting eg formula is = "On Today()+1 Add 1 month to cell A2"

View 9 Replies View Related

Change Cell Color After Every Decrease Up To Increase

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

Automatically Increase Weekday Dates By Value Of Cell

May 8, 2009

I have a range (M6:BM6) which consists of week end dates = every Friday (M6 =
5/8/09; BM=5/7/10). I would like to have the range adjusted based on when a
cell (B3) is updated. For example, currently B3=5/5/09 and M6=5/8/09 (week
end date of B3). If B3 was updated to 5/12, I would like to have the range
automatically updated to M6=5/15/09, N6=5/22/09....BM=5/14/10. I could do
this with excel formulas in the sheet but would like to macro code adjust the
values in the range rather than formulas.


These ranges are used in other macros and works better with values rather than formulas.

View 6 Replies View Related

Increase Number In Same Cell Across Multiple Worksheets

Aug 12, 2008

I have multiple worksheets (too many, actually!) and each worksheet is a record. I need to enter a Record Number into B5 of each sheet. The Record Number doesn't start at 1. I'd like to enter a number into the first sheet and the rest of the sheets to increase by 1. However, I only need to do this to some sheets.

View 9 Replies View Related

Increase Current Cell ONLY When Different Than Target Cell

Jul 27, 2007

I am looking for a way to avoid the circular reference issue. I would like to monitor a cell that is being incremented and decremented so that I can automatically retain the highest and the lowest values that were entered into that specific cell over time. Since the data is only entered into that specific cell and not retained in for example a column, the MAX/MIN option is not usable in this case.

More simply stated, is there a way to put a formula in a specific cell ( A1 ) that will equal the target cell ( B1 ) only when that target cell ( B1 ) is greater than A1?

View 9 Replies View Related

Formula To Change Cell Colour :: Due To Sum Increase Or Decrease

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

Increase Invoice Number And Save To Desktop As PDF Using Cell Data For Filename

May 15, 2014

Our business has a spreadsheet set up for invoicing. A Macro has been created to increase the invoice number, save to the desktop as a PDF with a file name taken from the cells

This is working on my colleagues mac but when we've loaded onto my computer it errors, when I debug I am getting the following error:

Sub Macro3()
'
' Macro3 Macro
'

'
Range("g10").Select
[g10] = [g10] + 1

[Code] .......

View 2 Replies View Related

How To Increase Value Of A Cell When Another Cell Decreases

Apr 20, 2014

I am struggling to create a formula to make a cell increase in value as another decrease. For example

Starting information
Cell 1 is 8
Cell 2 is 10
Cell 3 is 10

For each 1 that Cell 1 decreases, I need cell 2 to increase by the value of cell 3 plus 10% of cell 3.

For example Cell 1 has decreased by 1, therefore Cell 2 equals the value of (Cell 3 plus 10% of Cell 3)

Cell 1 is 7
Cell 2 is 11
Cell 3 is 10

For example Cell 1 has decreased by 2, therefore Cell 2 equals the value of (Cell 3 plus 20% of Cell 3)

Cell 1 is 6
Cell 2 is 12
Cell 3 is 10

For example Cell 1 has decreased by 3, therefore Cell 2 equals the value of (Cell 3 plus 30% of Cell 3)

Cell 1 is 5
Cell 2 is 13
Cell 3 is 10

View 1 Replies View Related

Increase Cell By +1 To Previous Cell?

Jan 31, 2013

trying to get number value to increase by 1 in the cell previous descending down a column.

View 9 Replies View Related

Increase Cell By 1 If Another Cell Changes A Value Using Macros

Dec 8, 2013

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Address(False, False) = "C2" Then Range("F2").Value = Range("F2").Value + 1
End Sub

I am using the follow macros code when I right click my spreadsheet and enter it in the window there. My intention is to increase the value in F2 every time the value in C2 changes to a specific text value. For instance, if C2 has the value "Alex" I want F2 to increase by 1 every time C2 changes to say "Joe" and only Joe. If it changes from Joe back to Alex that does not need to be counted, only changing it to Joe needs to increase the value in F2 by one each time.I also need to do this for all values in the spreadsheet from C2-C59 and increasing the corresponding cell in F2-F59.

View 6 Replies View Related







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