Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ginger
 
Posts: n/a
Default Separte columns for neg/pos values

I need to find a formula which will take the difference between two numbers
and put them in one column if it is a negative value and in another column if
it is a positive value. Help

Ginger
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Separte columns for neg/pos values

You'll need two formulas. Let's assume your numbers are in cells A1 and B1.
In C1, we'll show the difference if positive. In D1, we'll show the
difference if negative.

In C1:
=IF(A1-B1=0,A1-B1,"")

In D1:
=IF(A1-B1<0,A1-B1,"")

HTH,
Elkar


"Ginger" wrote:

I need to find a formula which will take the difference between two numbers
and put them in one column if it is a negative value and in another column if
it is a positive value. Help

Ginger

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Separte columns for neg/pos values

Hi!

Suppose you want to subtract column B from column A. B1-A1, B2-A2, B3-A3,
etc.

Enter this formula in D1 for the positive results:

=IF(B1-A1=0,B1-A1,"")

Enter this formula in E1 for the negative results:

=IF(B1-A1=0,"",B1-A1)

Select both D1 and E1 and copy down as needed.

Biff

"Ginger" wrote in message
...
I need to find a formula which will take the difference between two numbers
and put them in one column if it is a negative value and in another column
if
it is a positive value. Help

Ginger



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribute values evenly in two columns MIckeyLove Excel Discussion (Misc queries) 0 April 27th 06 04:23 PM
Looking-up Columns w/calc'd Values ONLY to Calculate Average sony654 Excel Worksheet Functions 5 April 21st 06 06:21 AM
Multipying columns that contail null values ChuckW Excel Discussion (Misc queries) 1 September 7th 05 01:13 AM
Totalling values across columns Glenn Excel Worksheet Functions 3 January 26th 05 01:47 AM
Creating a chart with values from two columns Ivan Charts and Charting in Excel 2 December 12th 04 07:31 PM


All times are GMT +1. The time now is 11:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"