+ Reply to Thread
Results 1 to 3 of 3

Find the smallest difference between all records in a field

  1. #1
    Registered User
    Join Date
    05-17-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    1

    Find the smallest difference between all records in a field

    New and not exactly sure where to put this.

    I have a long list of unique x coordinates and y coordinates in separate fields. I need to truncate each field to the least number of decimal places possible without having any duplicates in the list. I was thinking that the best way to do this would be to subtract each value from each other value and spit out the smallest of the differences, but not sure if Excel has any capabilities that will do this for me automatically. Any ideas?
    Thanks!

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the smallest difference between all records in a field

    you could create a helper column then subtract the two numbers and then in cell, D1 (assuming you have colA=Number, ColB=Number, ColC=Difference) you could use the MIN() function....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Find the smallest difference between all records in a field

    or you could use an array formula....adjust the columns for your data set....enter this in an open cell and hit Ctrl+Shift+Enter (Sometimes called a CSE formula)

    =MIN(A1:A6-B1:B6)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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