ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   I need to increase a number which is held in a cell by 1 (https://www.excelbanter.com/new-users-excel/4863-i-need-increase-number-held-cell-1-a.html)

Steve

I need to increase a number which is held in a cell by 1
 
How do i increase a cell which has a number in it, eg, cell a8 has 4
i want to run a If statment that looks at another cell and if true i want
cell a8 to increse to 5

Bob Phillips

You need VBA.

The code is simple in itself (Range("A1").Value = Range("A1").Value + 1),
but what will trigger the addition to happen.

--
HTH

-------

Bob Phillips
"Steve" wrote in message
...
How do i increase a cell which has a number in it, eg, cell a8 has 4
i want to run a If statment that looks at another cell and if true i want
cell a8 to increse to 5





All times are GMT +1. The time now is 09:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com