![]() |
#1
|
|||
|
|||
![]()
Hi all, first post here as I am stuck on formula.
I am creating a spreadsheet for keeping track of gains/losses of stocks. I am trying to automatically add a number from one of either two cells into the "Total To Report" column. The cells are either from the "Total Gain/Loss $" or the "Fed Taxes Owed" and "State Tax Owed" added together. What I am looking for is if I get a gain after selling stocks, I want the taxes I owe ("Fed Taxes Owed" and "State Tax Owed" added together) amount into the "Total To Report" If on the other hand, if I lose on an invest, I want the total from the "Total Gain/Loss $" column to go into the "Total To Report". Any help would be great appreciated. Thanks, Kilch |
#2
|
|||
|
|||
![]() Code:
=if(f4>0,j4+l4,if(f4<0,g4,0)) |
#3
|
|||
|
|||
![]()
Thanks gebobs Worked great. Just one correction. Had to change F4 to G4.
Again Bob, thanks a bunch. Kilch |
#4
|
|||
|
|||
![]()
Glad you could straighten it out! :-)
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
HealthyStealthy | Word | 2 | 09-06-2016 06:36 AM |
counting "x" in a cell and sum the numbers in weekday | rayramirezdvm | Excel | 4 | 04-02-2015 02:58 PM |
Search a cell that contains words and numbers and convert the numbers to metric | Carchee | Excel Programming | 36 | 10-08-2014 03:16 PM |
How to fill a cell with random numbers to do calculations? | zanat0s | Excel | 1 | 06-13-2011 10:33 AM |
![]() |
jetdude68 | Word Tables | 1 | 07-20-2010 12:30 AM |