Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default DIFFERENCE BETWEEN 2 VALUES SHOULD NOT BE MORE THAN 1

In column a1 to a5 i have number in a1:a:5 0.2,21.10,20.90,20.00,20.20
in b1:b5 i have numbers 0.2,22.20,21.90,21.10,21.30
in c1:c5 i want the results 0.2,21.30,21.10,20.20,20.40
the difference between two values should not be more than 0.2
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default DIFFERENCE BETWEEN 2 VALUES SHOULD NOT BE MORE THAN 1

I think you want something like this:

=IF(A1=B1,A1,IF(A1<B1,MIN(A1+0.2,B1),MAX(A1-0.2,B1)))

Copy down into C2:C5.

Hope this helps.

Pete

On Jun 18, 7:38*am, srpavar wrote:
In column a1 to a5 i have number in a1:a:5 0.2,21.10,20.90,20.00,20.20
in b1:b5 i have numbers 0.2,22.20,21.90,21.10,21.30
in c1:c5 i want the results 0.2,21.30,21.10,20.20,20.40
the difference between two values should not be more than 0.2


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
Difference in values ayeFayze Excel Discussion (Misc queries) 3 January 28th 08 05:48 PM
Get the difference of two values which are on the same row , on t. Piya Charts and Charting in Excel 0 October 15th 07 02:29 PM
How can I minimalize the difference between extreme values on a c. kitkat Charts and Charting in Excel 1 April 10th 05 09:11 PM
How do you find the difference between two time values when one i. tubroh730 Excel Discussion (Misc queries) 1 March 25th 05 04:32 PM
How do you calculate the difference between two values within a p. emlouise Excel Discussion (Misc queries) 2 December 10th 04 03:13 AM


All times are GMT +1. The time now is 12:02 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"