Make value negative based off of another cell's value

PackPariah

New Member
Joined
Aug 9, 2017
Messages
1
Hello all,

This is my first post on this site but with the personal project I am doing it will probably not be the last.

Background on project:

Trying to create a personal finance tracker that will work across multiple devices (i.e home computer, wife and I's cellphones, etc.) and is very intuitive. Currently I am working on making a data entry page that dumps all data into another sheet that will represent checking account and will be pivoted so allow for sorting etc..

Right now I have a sheet that has two entries, spending type (drop down list with withdraw or deposit) and total amount. What I am trying to achieve is a simple way to insert a value that will be dumped in with the rest of the data on another sheet which data calculations (such as total) will be derived from later on.

One road block I have hit is trying to get the value entered into the "total amount" cell to be negative or positive depending on what is selected in the "spending type" cell.

Does anybody know the best way to accomplish this?

I have tried multiple "if" statements with no success.

Thank you in advance
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Dear PackParish

Welcome to the board

You cannot have both the input cell & the if statement in the same cell

i suggest you use a helper column for data entry

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Input Cell[/TD]
[TD]Spending Type[/TD]
[TD]Total Amount[/TD]
[/TR]
[TR]
[TD]1,000[/TD]
[TD]Withdrawal [/TD]
[TD]=IF(Spending type="Withdrawal",-Input Cell ,Input Cell)[/TD]
[/TR]
</tbody>[/TABLE]






Let me know if it helps.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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