ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Conditional formula with an if statement (https://www.excelbanter.com/new-users-excel/264691-conditional-formula-if-statement.html)

Tyler2006

Conditional formula with an if statement
 
I am wanting to create a "envilope" budget sheet and have ran into a problem.
What I am trying to do is make everything in Column B all negative unless I
put a figure in Column A, which would make the Column B Positive.
Example:

Column A Column B
Deposit Car
(nothing here) $50 (this will show up negative)
$500 $500 (This figure will show up positive)


I want to be able to add numbers in both column A and B but reflect the
appropriate sign as an expense (with nothing being added into deposits) or as
income, when I deposit something in that account.

So when I sum up this column, it will equal $450 left in the car envilope.
I am struggling to figure out the conditional if statement, or am I looking
at this wrong and should place this in Macros?


Don Guillett[_2_]

Conditional formula with an if statement
 
try this
=if(len(trim(a3))0,a3,-50)

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tyler2006" wrote in message
...
I am wanting to create a "envilope" budget sheet and have ran into a
problem.
What I am trying to do is make everything in Column B all negative unless
I
put a figure in Column A, which would make the Column B Positive.
Example:

Column A Column B
Deposit Car
(nothing here) $50 (this will show up negative)
$500 $500 (This figure will show up positive)


I want to be able to add numbers in both column A and B but reflect the
appropriate sign as an expense (with nothing being added into deposits) or
as
income, when I deposit something in that account.

So when I sum up this column, it will equal $450 left in the car envilope.
I am struggling to figure out the conditional if statement, or am I
looking
at this wrong and should place this in Macros?




All times are GMT +1. The time now is 09:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com