Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alistair
 
Posts: n/a
Default Excel - treat pairs of figures differently according to values

I want to use Excel to evaluate the results of a psychometric test.
The test produces pairs of figures.
Each figure can be positive or negative

If both are positive or both are negative I want the absolute difference

If one is positive and the other negative I want to sum them
If the first is positive and the second negative then I want to maket he
figure produced above positive
If the first is negative and the second positive I want to make the figure
produced above negtive

Any ideas?
  #2   Report Post  
bj
 
Posts: n/a
Default

try
=if(Abs(A1)+Abs(B1)=Abs(A1+B1),Abs(A1-B1),if(A1<B1,-1,1)*Abs(A1+B1))

where your first number is is A1 and the second in B1

"Alistair" wrote:

I want to use Excel to evaluate the results of a psychometric test.
The test produces pairs of figures.
Each figure can be positive or negative

If both are positive or both are negative I want the absolute difference

If one is positive and the other negative I want to sum them
If the first is positive and the second negative then I want to maket he
figure produced above positive
If the first is negative and the second positive I want to make the figure
produced above negtive

Any ideas?

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
sharing/using/saving Excel 2002 files in Excel 2003 maze2009 Excel Discussion (Misc queries) 0 January 20th 05 07:27 PM
Excel 2002 and 2000 co-install. Control Which Starts ? cnuk Excel Discussion (Misc queries) 2 January 17th 05 08:07 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM


All times are GMT +1. The time now is 07:31 PM.

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"