Solved

MS Excel closest match lookup

Posted on 2013-01-11
2
424 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now