Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-30-2017, 11:09 AM
Kilch Kilch is offline Add Numbers from One or Another Cell Windows 10 Add Numbers from One or Another Cell Office 2016
Novice
Add Numbers from One or Another Cell
 
Join Date: Jan 2017
Posts: 2
Kilch is on a distinguished road
Default Add Numbers from One or Another Cell

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
Attached Images
File Type: jpg StockGainLossSS.jpg (173.1 KB, 17 views)
Reply With Quote
  #2  
Old 01-30-2017, 01:22 PM
gebobs gebobs is offline Add Numbers from One or Another Cell Windows 7 64bit Add Numbers from One or Another Cell Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Code:
=if(f4>0,j4+l4,if(f4<0,g4,0))
Reply With Quote
  #3  
Old 01-30-2017, 10:01 PM
Kilch Kilch is offline Add Numbers from One or Another Cell Windows 10 Add Numbers from One or Another Cell Office 2016
Novice
Add Numbers from One or Another Cell
 
Join Date: Jan 2017
Posts: 2
Kilch is on a distinguished road
Default

Thanks gebobs Worked great. Just one correction. Had to change F4 to G4.

Again Bob, thanks a bunch.

Kilch

Quote:
Originally Posted by gebobs View Post
Code:
=if(f4>0,j4+l4,if(f4<0,g4,0))
Reply With Quote
  #4  
Old 01-31-2017, 12:55 PM
gebobs gebobs is offline Add Numbers from One or Another Cell Windows 7 64bit Add Numbers from One or Another Cell Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Glad you could straighten it out! :-)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Numbers from One or Another Cell Why do numbers show up a little lower in table cell? 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
Add Numbers from One or Another Cell adding numbers in same cell jetdude68 Word Tables 1 07-20-2010 12:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft