VBA: Show Subtracted Figure In Cell When Total Figure Is Entered

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,539
Office Version
  1. 2016
Platform
  1. Windows
Hello Guys,

I am working on a Daily Production Status Monitoring file.

I do get daily figures from the quality controller but only the total figure (accumulated figure) by the end of the day.

For Example

Lets say if production on day 1 is 100 pieces and day 2 is 110 pieces.
for 1st day i will get a figure of 100
for 2nd day i will get a figure of 210 ( instead of 110) which is the accumulated figure.
so on and so forth.

On 1st day i will manually enter 100 in cell A1
On 2nd day i will manually enter 210 (the accumulated figure) in cell A2.
What i want is when i enter 210 in cell A2 then it should convert it to 110. like it should subtract total of the top cells from the current cell value i.e. of 210 (manually entered) and convert the figure to 110 automatically as soon i press enter.

kinldly let me know if its possible ?

Regards,

Humayun
 
Actually i waited for a day and found another forum and i posted there.

I apologize, i did not know about the rules.

I am gonna delete right away - the post which i posted in other forum.
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You don't have to delete it. Cross-posting is allowed, you just need to let us know where you cross-posted. If you read the rules, it's pretty clear. ;)
 
Upvote 0
Thanks for the reply Ramballah

I will have to insert a seperate column for the solution you provided.

Whereas, i would like VBA to handle it without inserting columns, If Possible.
 
Upvote 0

Forum statistics

Threads
1,224,832
Messages
6,181,234
Members
453,026
Latest member
cknader

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