简体   繁体   中英

how to program excell that change cell value if another cell has value?

I am new in Excel programming. I am trying to accomplish one operation where I have to change value of excel cell when other cell has value on it. else the value should not have to change and it will remail as previous result one.

So let me explaine more about it I have my fund of month in B3 (1000)(number) say for I have value in B5 to B36 (numbers)(Represent as each day expense) I will add one value each day for the current month. at the emd of the month I have remaining balance of my fund. I will remove days use (B5:b36) at each month. But my remaining balance should not have to remove.

Prob. 1) I want to that remaining balance stored in some cell automatically.

Prob. 2) I want to Sum my remainig balance and next month fund for next month.

I know there are lots of good Programmer who can help me with this ...

Thanks in Advance.

I am having trouble understanding your exact question. But in general, to sum you use the "sum" formula. So, say you want to sum each day's expenses for a monthly total, you would put this formula into the cell that you want the total in:

=Sum(B5:B36)

To get the remaining balance (if I understand you right), your formula would be:

=B3-Sum(B5:B36)

Then for the next month you can just reference the cell above. So say it was B37, then you would reference it by:

=B37

I hope this helps, but as I said, I was unable to fully understand your question(s).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM