Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default finding nearest match from an array

Hi,
I have an 2 columns, One is an array showing the number of defects /
million .
The other shows its corresponding Sigma Rating.
In another worksheet-2 there exists a similar list. (2 columns)
How can i find "the nearest match" to a particular value (no. of
defects) from the first worksheet in the second,then display the
corrresponding Sigma Rating ( in workseet 2) of the matched value in
worksheet (2).

Thanks !

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default finding nearest match from an array

Hi

Something like
=CHOOSE(MATCH($A2,Sheet2!$A$2,$A$10;1),Sheet2!$B$2 :$B$10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Arjun Chowdhry" wrote in message
oups.com...
Hi,
I have an 2 columns, One is an array showing the number of defects /
million .
The other shows its corresponding Sigma Rating.
In another worksheet-2 there exists a similar list. (2 columns)
How can i find "the nearest match" to a particular value (no. of
defects) from the first worksheet in the second,then display the
corrresponding Sigma Rating ( in workseet 2) of the matched value in
worksheet (2).

Thanks !



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default finding nearest match from an array

With original datalist to be matched on Sheet1,
ColumnA is number of defects,
Column B has your sigma value.

Exact, same configuration of auxiliary datalist on Sheet2, from A1 to B20.


Try this *array* formula in C1 of Sheet1:

=INDEX(Sheet2!$B$1:$B$20,MATCH(MIN(ABS(Sheet2!$A$1 :$A$20-A1)),ABS(Sheet2!$A$1:$A$20-A1),0))

--
Array formulas are entered using CSE, <Ctrl <Shift <Enter, instead of the
regular <Enter, which will *automatically* enclose the formula in curly
brackets, which *cannot* be done manually. Also, CSE *must* be used when
revising the formula.

*After* CSE entry, copy down as needed.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Arjun Chowdhry" wrote in message
oups.com...
Hi,
I have an 2 columns, One is an array showing the number of defects /
million .
The other shows its corresponding Sigma Rating.
In another worksheet-2 there exists a similar list. (2 columns)
How can i find "the nearest match" to a particular value (no. of
defects) from the first worksheet in the second,then display the
corrresponding Sigma Rating ( in workseet 2) of the matched value in
worksheet (2).

Thanks !


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
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Match as well as does not match array function Vikram Dhemare Excel Discussion (Misc queries) 7 April 25th 06 09:15 AM
Lookup nearest value (Index & Match) [email protected] Excel Worksheet Functions 1 February 6th 06 04:57 PM
Lookup nearest value (Index & Match) [email protected] Excel Worksheet Functions 0 February 6th 06 04:29 PM
nearest match bill gras Excel Worksheet Functions 4 January 28th 06 03:26 AM


All times are GMT +1. The time now is 09:50 AM.

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"