How to create two functions in the same excel field?

Dear all,

I am trying to create a small program on excel for my friend since he is on budget. He wants the TOTAL field to SUM or SUBTRACT from the previous AMOUNT.
I have created everything except the last field. I tried many times and google it a lot.
Please assist me #excel_expert.
sam kamITAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
"He wants the TOTAL field to SUM or SUBTRACT from the previous AMOUNT."
On what criteria does the calculation decide if it's going to sum or subtract?  Or are you saying PREVIOUS + TOTAL = RESULT, and if TOTAL is negative the operation should be subtraction?
sam kamITAuthor Commented:
Thank you for your reply.
He wants the new total field to be like this:

New total = previous total - Amount IN OR previous total + Amount in

I did not find a way to put two functions together.
Any help would be appreciate.
Paul MacDonaldDirector, Information SystemsCommented:
It should only require one function:
NewTotal = PreviousTotal + AmountIn

Unless you have some other criteria that determines if AmountIn is positive or negative, just adding the two numbers together should do the trick.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

sam kamITAuthor Commented:
He wants the new total amount to be pre-configured like this : new total amount = previous amount - amount out OR previous total amount + amount IN.
As you can see the following screenshot.
Paul MacDonaldDirector, Information SystemsCommented:
Looking at that .jpg, what's wrong with:
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Try this...

In E2

Open in new window

and copy it down.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sam kamITAuthor Commented:
Thank you it is not difficult as I thought lol
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Sam!
Sometimes it is difficult to figure out the small logic. Lol
sam kamITAuthor Commented:
Is there a helpful tutorial for excel functions pls?
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
If you Google it, you will find plenty of good stuff to begin with.
Here is one of the best YouTube channel "ExcelIsFun" having thousands of good videos.
sam kamITAuthor Commented:
Thank you :)
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
You're welcome Sam!
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Answered the original question.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.