Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have four time values in a row. The first value is a specific chosen time
value. The next three are demonstrated times. I need to find the closest match of the three demonstrated times to the first column. Any help? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way
=INDEX(B1:D1,MATCH(MIN(IF(ABS(B1:D1-A1)=MIN(ABS(B1:D1-A1)),B1:D1)),B1:D1,0)) entered with ctrl + shift & enter where B1:D1 are the 4 values and A1 the chosen value -- Regards, Peo Sjoblom "mailrail" wrote in message ... I have four time values in a row. The first value is a specific chosen time value. The next three are demonstrated times. I need to find the closest match of the three demonstrated times to the first column. Any help? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Meant where B1:D1 are the 3 demonstrated values
-- Regards, Peo Sjoblom "Peo Sjoblom" wrote in message ... One way =INDEX(B1:D1,MATCH(MIN(IF(ABS(B1:D1-A1)=MIN(ABS(B1:D1-A1)),B1:D1)),B1:D1,0)) entered with ctrl + shift & enter where B1:D1 are the 4 values and A1 the chosen value -- Regards, Peo Sjoblom "mailrail" wrote in message ... I have four time values in a row. The first value is a specific chosen time value. The next three are demonstrated times. I need to find the closest match of the three demonstrated times to the first column. Any help? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Here is another solution: =INDEX(T,MATCH(MIN(ABS(T-A1)),ABS(T-A1),0)) I have named the range A2:A4, where your three demonstration times are, T. You don't need to use the name, just substitute the address. A1 is the cell containing the time you want to check. This formula is an array, which means you must press Shift+Ctrl+Enter to enter it. Remember to format the cell to a time format. -- Thanks, Shane Devenshire "mailrail" wrote: I have four time values in a row. The first value is a specific chosen time value. The next three are demonstrated times. I need to find the closest match of the three demonstrated times to the first column. Any help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
need to return next match of table, only finding first match...HEL | Excel Worksheet Functions | |||
Finding a match and pasting next to it | Excel Discussion (Misc queries) | |||
Finding a Text match | Excel Discussion (Misc queries) | |||
Finding Closest Match | Excel Worksheet Functions | |||
Finding a match | Excel Discussion (Misc queries) |