excel formula to automatically update number

Really Confused

New Member
Joined
Aug 27, 2011
Messages
6
Hi
Can anyone tell me is there a formula for updating a number in a cell?
At work we enter data into a cell, but when a new item comes in we have to add the number of items to the number already in the cell such as; if there are already 50 items in stock we have to manually add 25 to 50 to receive the correct amount of 75 items now in stock.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi
Can anyone tell me is there a formula for updating a number in a cell?
At work we enter data into a cell, but when a new item comes in we have to add the number of items to the number already in the cell such as; if there are already 50 items in stock we have to manually add 25 to 50 to receive the correct amount of 75 items now in stock.
This is not a good idea.

If you make a mistake entering the number you may not notice it and there is no record to audit that will let you know that you did make a mistake.

With that being said, see this:

http://mcgimpsey.com/excel/accumulator.html
 
Upvote 0
VGA code is basically Macros.

The difference is a formula is entered into the cells on your worksheet. The VBA code is entered in the background.

The link provided by T. Valko is an example of a code that would work. You would just need to make some changes to make it fit your workbook.

If you want to use a formula you're going to need more than one cell in order to make it work right.
 
Upvote 0
I knew I would need more colums to make the formula, but was not sure how to set it up correctly.

Sorry Dragon I don't see the link you suggested.
 
Upvote 0
An alternative would be Tools > Options > Calculation > Iterations = 1 and set the cell to refer to itself (yuck!).
 
Upvote 0
Actually, T. Valko suggested the link. I recommend you at least read up on it. Ideally, VBA is the way to do this because then you can provide an entry point for the items.

However, if you want to use a formula and can use whatever cells you want you can do something like this:

Column A = Item Names
Column B = Items Received
Column C = Items Sold
Column D = Items In Stock
Column E = Inventory Start

Although the titles should be self-explanatory, I’ll give a quick rundown anyway.

The item name goes in column A, the amount you had at the last inventory goes in column E. This formula goes in column D:
Code:
  =IF(E2="","",((E2+B2)-C2))
The rest is filled in as applicable.
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top