+ Reply to Thread
Results 1 to 1 of 1

Find closest value from array data

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    chempaign, il
    MS-Off Ver
    Excel 2007
    Posts
    3

    Find closest value from array data

    Hello,

    I need to find the closest value from an array data. Using the index match array function the closest value can be found. However in my case, as shown in the example below, I want to find the closest match to column A in sheet 1, from sheet 2; also based on column 2. Example, the closest match to 0, corresponding to A, B, C and D are 0.05, 0.25, 0.3 and 0.4 respectively (Expected Output1). From this output, the final value is looked up from colum C (Expected Output2). If I can get Expected Output1, Expected Output2 is a result of an index match array function. Appreciate your time. Thanks.

    Sheet 1:
    Column A  Column B  Expected Output1 Expected Output2
    0         A         0.05             10
    0         B         0.25             30
    0         C         0.3              70
    0         D         0.4              90
    
    Sheet 2:
    Column A  Column B  Column C
    0.05      A         10
    0.1       A         20
    0.25      B         30
    0.1       B         40
    0.2       B         50
    0.3       B         60
    0.3       C         70
    0.1       C         80
    0.4       D         90
    0.1       D         100
    0.2       D         120
    0.3       D         130
    Last edited by JBeaucaire; 06-12-2013 at 10:51 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1