#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bill gras
 
Posts: n/a
Default nearest match

I have in sheet 1 cell U1 1040
U2 1120
U3 1212
U4 1320
U5 1600
U6 2070

in sheet 2 i have cell F1 1010 G1 58.32
F2 1030 G2 59.29
F3 1050 G3 61.32
F4 1110 G4 64.30
F5 1140 G5 66.05
F6 1200 G6 70.10
F7 1350 G7 79.63
F8 1615 G8 96.93

I need sheet 1 U1 nearest match up or down compared to sheet 2 column F
and return the corresponding number in column G eg:

if sheet 1 U1 is 1040 use sheet 2 F2 1030 return G2 59.29
U2 is 1120 use sheet 2 F4 1110 return G4 64.30
U4 is 1320 use sheet 2 F7 1350 return G7 79.63
U5 is 1600 use sheet 2 F8 1615 return G8 96.93
-- Can any one help please
Thanks
bill gras
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default nearest match

On Sheet1, enter the following formula, which needs to be confirmed with
CONTROL+SHIFT=ENTER, in V1 and copy down:

=INDEX(Sheet2!$G$1:$G$8,MATCH(MIN(ABS(Sheet2!$F$1: $F$8-U1)),ABS(Sheet2!$F
$1:$F$8-U1),0))

Hope this helps!

In article ,
bill gras wrote:

I have in sheet 1 cell U1 1040
U2 1120
U3 1212
U4 1320
U5 1600
U6 2070

in sheet 2 i have cell F1 1010 G1 58.32
F2 1030 G2 59.29
F3 1050 G3 61.32
F4 1110 G4 64.30
F5 1140 G5 66.05
F6 1200 G6 70.10
F7 1350 G7 79.63
F8 1615 G8 96.93

I need sheet 1 U1 nearest match up or down compared to sheet 2 column F
and return the corresponding number in column G eg:

if sheet 1 U1 is 1040 use sheet 2 F2 1030 return G2 59.29
U2 is 1120 use sheet 2 F4 1110 return G4 64.30
U4 is 1320 use sheet 2 F7 1350 return G7 79.63
U5 is 1600 use sheet 2 F8 1615 return G8 96.93
-- Can any one help please
Thanks
bill gras

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default nearest match

Hi Bill!

I assume you want these formulas on sheet1 in column V.......

Entered as an array using the key combo of CTRL,SHIFT,ENTER in V1 and copied
down:

=INDEX(Sheet2!G$1:G$8,MATCH(MIN(ABS(Sheet2!F$1:F$8-U1)),ABS(Sheet2!F$1:F$8-U1),0))

Biff

"bill gras" wrote in message
...
I have in sheet 1 cell U1 1040
U2 1120
U3 1212
U4 1320
U5 1600
U6 2070

in sheet 2 i have cell F1 1010 G1 58.32
F2 1030 G2 59.29
F3 1050 G3 61.32
F4 1110 G4 64.30
F5 1140 G5 66.05
F6 1200 G6 70.10
F7 1350 G7 79.63
F8 1615 G8 96.93

I need sheet 1 U1 nearest match up or down compared to sheet 2 column F
and return the corresponding number in column G eg:

if sheet 1 U1 is 1040 use sheet 2 F2 1030 return G2 59.29
U2 is 1120 use sheet 2 F4 1110 return G4 64.30
U4 is 1320 use sheet 2 F7 1350 return G7 79.63
U5 is 1600 use sheet 2 F8 1615 return G8 96.93
-- Can any one help please
Thanks
bill gras



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bill gras
 
Posts: n/a
Default nearest match

Hi Domenic
Thank you for your time it works perfect
--
bill gras


"Domenic" wrote:

On Sheet1, enter the following formula, which needs to be confirmed with
CONTROL+SHIFT=ENTER, in V1 and copy down:

=INDEX(Sheet2!$G$1:$G$8,MATCH(MIN(ABS(Sheet2!$F$1: $F$8-U1)),ABS(Sheet2!$F
$1:$F$8-U1),0))

Hope this helps!

In article ,
bill gras wrote:

I have in sheet 1 cell U1 1040
U2 1120
U3 1212
U4 1320
U5 1600
U6 2070

in sheet 2 i have cell F1 1010 G1 58.32
F2 1030 G2 59.29
F3 1050 G3 61.32
F4 1110 G4 64.30
F5 1140 G5 66.05
F6 1200 G6 70.10
F7 1350 G7 79.63
F8 1615 G8 96.93

I need sheet 1 U1 nearest match up or down compared to sheet 2 column F
and return the corresponding number in column G eg:

if sheet 1 U1 is 1040 use sheet 2 F2 1030 return G2 59.29
U2 is 1120 use sheet 2 F4 1110 return G4 64.30
U4 is 1320 use sheet 2 F7 1350 return G7 79.63
U5 is 1600 use sheet 2 F8 1615 return G8 96.93
-- Can any one help please
Thanks
bill gras


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bill gras
 
Posts: n/a
Default nearest match

Hi Biff
Thank you for your time it works perfect
--
bill gras


"Biff" wrote:

Hi Bill!

I assume you want these formulas on sheet1 in column V.......

Entered as an array using the key combo of CTRL,SHIFT,ENTER in V1 and copied
down:

=INDEX(Sheet2!G$1:G$8,MATCH(MIN(ABS(Sheet2!F$1:F$8-U1)),ABS(Sheet2!F$1:F$8-U1),0))

Biff

"bill gras" wrote in message
...
I have in sheet 1 cell U1 1040
U2 1120
U3 1212
U4 1320
U5 1600
U6 2070

in sheet 2 i have cell F1 1010 G1 58.32
F2 1030 G2 59.29
F3 1050 G3 61.32
F4 1110 G4 64.30
F5 1140 G5 66.05
F6 1200 G6 70.10
F7 1350 G7 79.63
F8 1615 G8 96.93

I need sheet 1 U1 nearest match up or down compared to sheet 2 column F
and return the corresponding number in column G eg:

if sheet 1 U1 is 1040 use sheet 2 F2 1030 return G2 59.29
U2 is 1120 use sheet 2 F4 1110 return G4 64.30
U4 is 1320 use sheet 2 F7 1350 return G7 79.63
U5 is 1600 use sheet 2 F8 1615 return G8 96.93
-- Can any one help please
Thanks
bill gras




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
Match Index cjjoo Excel Worksheet Functions 3 October 25th 05 09:33 AM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 22nd 05 01:41 PM
Look up data in colum a and find match in colum b Chris(new user) Excel Discussion (Misc queries) 1 March 19th 05 09:27 PM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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