+ Reply to Thread
Results 1 to 5 of 5

Nearest TP/IP Detect

  1. #1
    Registered User
    Join Date
    11-26-2019
    Location
    Thane
    MS-Off Ver
    2021
    Posts
    42

    Nearest TP/IP Detect

    Dear users

    I have "RES Points" Chainage and "Start and End TP/IP" Chainage, help me detecting the nearest TP/IP

    Please see attached Excel

    Thank u
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Nearest TP/IP Detect

    I dont think you have explained what you want so well, but the below may be what you require

    Please Login or Register  to view this content.
    you find the values above and below the value in question, and work out the difference between the and the value

    then as a result of this you chose the value in column g for whatever is smallest

  3. #3
    Registered User
    Join Date
    11-26-2019
    Location
    Thane
    MS-Off Ver
    2021
    Posts
    42

    Re: Nearest TP/IP Detect

    I need the nearest matching chainage (Answer in Column d and e) with respect to data in column g and h. I have made four samples. plz
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Nearest TP/IP Detect

    Did you try the solution I gave, on your new sheet it is in d3
    =IF(B3-LOOKUP(2,1/($H$3:$H$946<=B3),$H$3:$H$949) < INDEX($H$3:$H$949,MATCH(TRUE,B3 < $H$3:$H$949,0))-B3,LOOKUP(2,1/($H$3:$H$949 <=B3),$G$3:$G$949),INDEX($G$3:$G$949,MATCH(TRUE,B3 <$H$3:$H$949,0)))

    and in e3
    =IF(B3-LOOKUP(2,1/($H$3:$H$949<=B3),$H$3:$H$949) < INDEX($H$3:$H$949,MATCH(TRUE,B3 < $H$3:$H$949,0))-B3,B3-LOOKUP(2,1/($H$3:$H$949 <=B3),$H$3:$H$949),B3-INDEX($H$3:$H$949,MATCH(TRUE,B3 <$H$3:$H$949,0)))
    Last edited by davsth; 08-31-2021 at 06:40 AM.

  5. #5
    Registered User
    Join Date
    11-26-2019
    Location
    Thane
    MS-Off Ver
    2021
    Posts
    42

    Re: Nearest TP/IP Detect

    Thank You @davsth, it's working

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nearest corresponding day
    By BRISBANEBOB in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-02-2020, 11:03 AM
  2. Round to nearest 15 then nearest hour if less than 1 hour
    By BLOUNTFIRE in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-08-2014, 12:22 AM
  3. Detect if add-on is done
    By ozizushi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2014, 12:11 PM
  4. [SOLVED] nearest value
    By wayneg in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-18-2013, 03:38 AM
  5. [SOLVED] Get the nearest value
    By Dushantha in forum Excel General
    Replies: 8
    Last Post: 06-05-2012, 08:15 AM
  6. [SOLVED] Round Cell to Nearest 0.25 up-to 1.0 then to nearest 0.5
    By haynesc87 in forum Excel General
    Replies: 4
    Last Post: 05-30-2012, 01:38 PM
  7. Nearest value?
    By Rman3349 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2008, 01:14 PM

Tags for this Thread

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