Solved

MS Excel closest match lookup

Posted on 2013-01-11
2
441 Views
Last Modified: 2013-01-11
Take this example:

                              
                      Alison      Natalie      Ross              Actual      Mins Late                 Closest
Date                                    
10/01/2013      09:15      09:06      09:09      09:08      8                      Ross
11/01/2013      09:03      09:09      09:06      09:06      6                      Ross


I want to automatically put the name of the person who was closest to the estimated time in the "closest" cell once a value is entered in the "actual" time field. IE, check that days times, compare to "actual", and grab the name of who's "closest".

I'm completely stuck with how to do this - I guess it's something to do with a vlookup and an index, but I've never used index!

Thanks all :)
0
Comment
Question by:RossDagley1
2 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 500 total points
ID: 38766316
HI

=INDEX($B$1:$D$1,MATCH(MIN(ABS(E3-B3:D3)),ABS(E3-B3:D3),0))

it's an array formula. Confirmed with CTRL + SHIFT + ENTER

where E3 holds actual time
B1:D1 names, B3:D3 times

Kris
0
 
LVL 2

Author Comment

by:RossDagley1
ID: 38766328
thank you that's great :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question