Solved

MS Excel closest match lookup

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
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…

762 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

16 Experts available now in Live!

Get 1:1 Help Now