Subtracting various cells from one constant cell

JJgold

New Member
Joined
Jan 31, 2014
Messages
12
Say I have the number 325 in A1. Each time I type a number in A2, B2, C2, D2, E2, A3, B3, etc... I would like the number (325) in A1 to be reduced.

Also, how do I create a pull down list?

Thank you for your time.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
You could turn A2:?? into a table and then just make the formula in cell A1 = 325 - SUM(Table1)
 
Upvote 0
Perhaps I am not clear in my question....Okay, I am making a schedule on a calendar I created. I have a total of 325 hours in which to complete a project. Each part of the project will take "x" amount of hours each day. The numbers of hours will vary each day. Therefore, for each day I will type in the number of hours. So for May 30, I will have 5 hours to work that day. On May 31 I have 2 hours to spend on the project. Each time I type in the number of hours on a given day, I would like it to subtract from the total number of 325 hours. I hope this helps clarify what I am attempting to accomplish.

Thank you all for your help. This is an excellent resource!
 
Upvote 0
Maybe like this: right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row > 1 Then
    Application.EnableEvents = False
    Range("A1").Value = Range("A1").Value - Target.Value
    Application.EnableEvents = True
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,889
Messages
6,122,097
Members
449,065
Latest member
albertocarrillom

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