Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to determine the minimum difference between values?

Does anyone have any suggestions on how to determine the minimum difference
between values?
There is a list of value under column A
307, 325, 343, 361, 381, 401, 421, 441
and there is a given value 400 in cell B1, I would like to determine the
minimum difference between 400 and the list of values, and it should return 1
in cell C1, because abs(400-401) = 1.
Does anyone have any suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to determine the minimum difference between values?

Type/paste this in C1 (after changing A10 to the last cell you want in Col A)
=MIN(ABS(A1:A10-$B$1))
and press CTRL-ALT-ENTER

"Eric" wrote:

Does anyone have any suggestions on how to determine the minimum difference
between values?
There is a list of value under column A
307, 325, 343, 361, 381, 401, 421, 441
and there is a given value 400 in cell B1, I would like to determine the
minimum difference between 400 and the list of values, and it should return 1
in cell C1, because abs(400-401) = 1.
Does anyone have any suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default How to determine the minimum difference between values?

and press CTRL-ALT-ENTER
the above is not working for me
CTRL+SHIFT+ENTER does work fine

"Sheeloo" wrote:

Type/paste this in C1 (after changing A10 to the last cell you want in Col A)
=MIN(ABS(A1:A10-$B$1))
and press CTRL-ALT-ENTER

"Eric" wrote:

Does anyone have any suggestions on how to determine the minimum difference
between values?
There is a list of value under column A
307, 325, 343, 361, 381, 401, 421, 441
and there is a given value 400 in cell B1, I would like to determine the
minimum difference between 400 and the list of values, and it should return 1
in cell C1, because abs(400-401) = 1.
Does anyone have any suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default How to determine the minimum difference between values?

Thanks for pointing that out...

It was a typo... It should be CTRL-SHIFT-ENTER which is the method for
entering ARRAY formulas.

"claude jerry" wrote:

and press CTRL-ALT-ENTER

the above is not working for me
CTRL+SHIFT+ENTER does work fine

"Sheeloo" wrote:

Type/paste this in C1 (after changing A10 to the last cell you want in Col A)
=MIN(ABS(A1:A10-$B$1))
and press CTRL-ALT-ENTER

"Eric" wrote:

Does anyone have any suggestions on how to determine the minimum difference
between values?
There is a list of value under column A
307, 325, 343, 361, 381, 401, 421, 441
and there is a given value 400 in cell B1, I would like to determine the
minimum difference between 400 and the list of values, and it should return 1
in cell C1, because abs(400-401) = 1.
Does anyone have any suggestions on how to do it in Excel?
Thanks in advance for any suggestions
Eric

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
How to distribute coins to achieve minimum difference? Eric Excel Discussion (Misc queries) 0 August 29th 07 05:32 AM
How to determine the minimum value with given condition? Eric Excel Discussion (Misc queries) 2 August 15th 07 06:02 AM
Sum of minimum values in a Range. BiggDC1 Excel Discussion (Misc queries) 2 June 20th 07 07:33 PM
How to determine the minimum value? Eric Excel Discussion (Misc queries) 2 May 30th 07 08:20 PM
Can you compare similar spreadsheets to determine a difference? DLopez79 Excel Discussion (Misc queries) 1 January 9th 06 09:36 PM


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

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

About Us

"It's about Microsoft Excel"