Find The Minimum Distance Between Two Points Using Two Separate Lists?

Jul 5, 2011

Is it possible to find the minimum distance between two points using two separate lists of different lengths without creating separate columns of equal row sizes

? I am trying to find the shortest distance form one point to another which is a fixed value. I am using the standard distance formula: =SQRT(((X2-X1)^2)+((Y2-Y1)^2)+((Z2-Z1)^2)).

My X1,Y1, Z1, has 2,000 rows in three columns that need to be compared to find the minimum distance from my one row/column of X2,Y2,Z2.

Is there a command that could go through and use each row of the X1, Y1, Z1, while looking for the MIN of the above formula without having to create an equal amount of rows for the X2, Y2, Z2?

I know I could do it by running this out the long way and then finding the min after I do all the math but I am wondering if there is an automated way for Excel to go through and do the forumla and then only return the MIN value?

View 8 Replies


ADVERTISEMENT

Minimum Distance Between Points

Jul 24, 2009

I want to know the minimum distance between customers that I visited in each day.

If i visit customer 1, 2 and 5 in one day, which distance is smaller? 1-2, 2-5 ou 1-5 and what is the corresponding value?

I have in columns DATE, CUSTOMER 1, CUSTOMER 2, ..., CUSTOMER 5 and in each row I put the Day and 1 or blank for each customer (visited / not visited). I also have a mileage chart for each customer in another sheet which is the source for my distance data.

I tried INDEX and MATCH but all I get is ZERO... I think it is comparing the same CUSTOMER.

View 14 Replies View Related

Formula To Find Distance Across Points On A Grid

Nov 22, 2008

Havent used a spreadsheet in ages and i'm having a fun time here. Cant seem to get the right formula for what i need. Here is a brief explanation!

I have a grid (not related to excel) of 999 by 999 squares.
The center is basically co-ords 500|500.
Upper left would of course be co-ords 001|001
Upper right would be 999|001
Bottom left would be 001|999
Bottom right would be 999|999

Now, here is what I am trying to do:

I want to have 3 squares chosen out on a spreadsheet I have made . .

1) here i put in the start co-ords (ie: 500|500)
2) here i put in the destination co-ords (ie: 505|510)
3) This is the fun one!!! ... And where I need the help!

I need a formula to put here that will tell me the number of squares I have to cross to get from one to the other!

View 9 Replies View Related

Distance Between 2 Geo-points

Mar 14, 2009

Need a direction for this type of calculation.

View 2 Replies View Related

Calculating Angle And Distance From 3D Points (x / Y / Z)

Jul 21, 2014

I have a list of 3D landmarks, and I'm trying to calculate angles and distances between specific combinations of these points.I hit a complete wall when trying to use excel to calculate out those equations. way input these equations?

Distance equation --> distance between points A and B = sqr root of [(Ax-Bx)^2 + (Ay-By)^2 + (Az-Bz)^2]

This person (see the link) posted the excel equation, and I spent a long time trying to follow it, but can't make sense of it! [URL]

I have attached a summary of the excel I have, and exactly what I'm trying to calculate.

Summary:

1. What is the excel equation to calculate the distance between two 3D coordinates (x,y,z)?

2. What is the excel equation to calculate the angle formed by 3 3D points (again, with x,y,z coordinates)?

View 5 Replies View Related

Minimum Distance Calculation Of Geographic Coordinates Using Array

Jun 9, 2006

I am working on two spreadsheets, one we shall call Target Sheet and the other Reference Sheet.

On the target sheet, I have a set of 200 geographic coordinates longitude and latitude (in decimal degrees). Each pair of coordinates coresponds to a geographic site.

On the reference sheet, I have a set of 900 geographic coordinates longitude and latitude (in decimal degrees). Each pair of coordinates coresponds to a geographic site. Note that of the 900, 200 are the same from target sheet, other 700 are different sites.

Using the spherical law of cosines, I can calculate the distance between a set of coordinates on target sheet agianst a set of coordinates on reference sheet. This allows me to see the distance from one geographic site, to the other. This was easy. The formula I use is as follows: ....

View 9 Replies View Related

Minimum Function In VBA: Find The Minimum Cumulative Cost In Week 0 Out Of The First Three

Jan 4, 2010

Attached is a print screen. I'm struggling with using the min function in vba. I want it to find the minimum cumulative cost in week 0 out of the first three, and the copy the permutations of it (1,0 or 1, 1 , e.t.c.) to Week one column C & D of the model.

View 3 Replies View Related

Find Minimum SUM If No Minimum Number In Row

Dec 24, 2009

I want in A1 to find minimum SUM if no minimum number in row.

Here is example attached: ...

View 9 Replies View Related

Lookup & Find The Distance

Apr 2, 2009

I have a distance grid with place names down column A and along Row 1 with distances in the middle. I then have a place name in cell A1 on sheet2 and a distance in cell B1 on sheet2. Ideally I want cell C1 on sheet2 to lookup the place in cell A1 on Row1 of the grid on sheet1 and then find the distance in B2 in that column before displaying the correspoding value from Column A on sheet2. I've tried various Match and Index functions with no success.

View 5 Replies View Related

Get Maximum / Minimum Date And Time From Separate Columns?

Mar 21, 2012

So I have a workbook that has a range of dates in one column and a corresponding range of times in the column next to it. On a separate sheet I want to return the lowest time&date, and then the maximum time&date. I've tried a few different things but nothing is working.I tried this:

Code:
=MIN(B:B+D:D)

This didn't work for some reason. It did return a time, but it wasn't the lowest. The maximum wasn't even close.

Previously I was just doing the min/max of the date in one cell and then the min/max of the time in a different one, but obviously that didn't work since the time wasn't going off of the maximum date, so it was just showing the lowest time period.

View 9 Replies View Related

Comparing Three Lists - Identify In 3 Separate Columns

Jul 9, 2013

I am working on a project, I have three different lists that I want to compare and I want to identify in 3 separate columns which titles are found on which list.

For example:

Title List 1List 2List 3
ACAROLOGIA x
ACCIDENT ANALYSIS AND PREVENTION x
ACROCEPHALUS x
ACS CHEMICAL BIOLOGY x x x
ACS CHEMICAL NEUROSCIENCE x x x
ACS COMBINATORIAL SCIENCE x x
ACS MEDICINAL CHEMISTRY LETTERS x x
ACS SYNTHETIC BIOLOGY x x x

View 4 Replies View Related

Cross-referencing Two Lists From Separate Sheets?

Jan 16, 2014

I'm working with several sheets, each containing databases of customers that bought different products. I'm trying to do a cross reference so I know which customers has already bought multiple products.

English is not my first language and I might not be able to clearly express what my problem is, so I included a worksheet example.

In the example, you can see that Lea bought an apartment coded with APRT-001 from the first sheet. Lea also bought a condo coded with COND-002. What I'm trying to do is to put a note beside the her entry in the apartment that she has bought COND-002. And vice versa on the COND-002 entry on the second sheet.

What I usually do is combine all the data in one sheet, use Conditional Formatting to point out the duplicate name entries, and work through the whole thing manually. The thing is, there are thousands of names and I need to update the list regularly

View 5 Replies View Related

Sorting List Of Items Into 2 Separate Lists

Oct 25, 2011

I work for a printing company that prints labels. We have 6 printing presses, lets call them A,B,C,D,E & F. Certain labels can only be printed on printing press F.

From our business system I can run a report in excel format giving details of all the labels that we have sold in the present month. I need split that report into 2 separate excel spreadsheets; 1 showing everything that was printed on presses A to E and the other showing everything printed on press F.

I also have another excel spreadsheet which gives a complete list of all the labels that have to be printed on press F.

Every label that we print has a part code and both spreadsheets show this part code so that would be the linking factor between the 2 sheets.

View 1 Replies View Related

Rearranging Data From Combined List To Separate Lists?

Aug 21, 2014

Is there a simple way via VBA to alter the layout of data from a mixed up two column list into multiple headed lists on another worksheet (within the same workbook)?

The attachment should better demonstrate what I mean. Sheet1 has example data of how it is and Sheet2 shows how I would like it.

The data will be dynamic in the sense the numbers of unique values in column A will change (only increase, never decrease), as will the number of unique values in column B.

View 2 Replies View Related

Find The Minimum Value In A Row

Apr 24, 2007

I have a spread sheet that needs to compare numbers in a row & hightlight the lowest number in each row.

View 9 Replies View Related

VBA - Find The End Points Between 2 Column Arrays?

Oct 8, 2013

I would like to search the last end points from my 2 columns and also have all the points it was taken until the end points.

It should start from column B row 1 then search the cell data to column C then back and forth until find the last unavailable points in column A.

Attached here is my sample excel data which have the expected output in column D and E.

View 3 Replies View Related

Find A Minimum Query

Jun 25, 2009

I have a set of worksheets all of which are identical and covered by first:last sheets

What I am trying to do is come to up with a minimum figure for cell G30

With the proviso that it is a minimum of 30 as some of the entries in G30 are less than that figure.

=MIN(first:last!G30) is not the answer as it gives an answer of zero.

View 9 Replies View Related

Find Minimum Value Corresponding To Maximum Value

Jan 16, 2010

I am having trouble with large data sets of rents by market: trying to find the peak rent in a time-series, and then look for the next trough rent in time. I tried using the Newsletter 3 techniques which feels like the right direction, but I am not getting the nesting right or some of the parameters in the functions.

So, within each time-series I need to find the MAX value (peak rent), wherever that is in the array. Then I need to look to the right of that exact MAX value and find the exact MIN value (trough rent), whereever that is in the array (again, to the right of the MAX value).

A small sample of what the data set looks like:

2008 Q22008 Q32008 Q42009 Q12009 Q22009 Q3
Atlanta771773768761749756
Austin770786784779776776
Baltimore947948949950950953
Boston1,6471,6601,6541,6481,6301,613
Chicago998998996985984986

View 4 Replies View Related

Find Minimum Value From A Data Group

May 27, 2009

I have been trying to solve this problem for the past couple of weeks and I have not been able to do so. I have come to do the operation manually, and it really takes a lot of my time, so if you guys could help me, I would really appreciate it.

Basically the problem is this:

In column "A" I have what I call point numbers for all the data entries.

In column "B" I have the station (or location) at which I vary slightly a parameter (represented by column "E") to give me a value shown in column "D" (the "Z" value, as shown in the sheet).

So basically you can see that my station 0 has 11 different "E" parameters (0, -1, -2.62, -5, etc) and each of them has a "Z" parameter (390.76, 390.775, etc).

What I am trying to do is to come up with a table that shows a summary of the following:

A column with each of the stations (0, 20, 40, etc -- notice that I have some weird numbered stations like 411.89).

Another column with the "E" parameter corresponding to the lowest (or minimum) "Z" parameter within the station range.

And a final column with the minimum "Z" parameter corresponding to its "E" parameter, which is included in the station range

You can see in yellow the way I have been doing this and you can see that it would take me so much time to accomplish the task.

View 7 Replies View Related

Find Minimum With Criteria - MINIF

Dec 10, 2009

I have following problem I have some table - 2 columns - in first is text in second is value.

example:
A 10
B 5
C 3
A 15
C 8
D 7
A 9

I need to use formula, which shows me minimal value for choosen text. I tried matrix formula like {=min(if(text table=choosen text; second column;0}, but it's not working

View 5 Replies View Related

How To Find Minimum Of A Range Omitting One Value

Apr 22, 2014

If I have a range of data say all numeric and range form cells A1:A20. How would I find the minimum value except A4 where A4>0?

I know I can use the 'MIN' function and highlight all the data bar A4 (min(A1:A3,A5:A20) but i was hoping for an actual way so I could later fix the column such that first A1 is the first to be omitted A2 is the second and so on.

View 3 Replies View Related

Find Minimum Currency Amount In A Row

Mar 20, 2007

I want to find out the minimum $ amount in a row with multiple columns but some columns will also have numbers that cannot be converted to string.

What formula could I use to only find the lowest $ amount?

View 9 Replies View Related

Find 2 Corresponding Values & Multiple The Minimum

Jan 10, 2008

Look in Column A and find the cell that contains "Std A 1" and the cell that contains "Std A 2".

Compare the corresponding values in Column B, and multiply the lowest value by .2
I've tried using various methods (find, if cell.value.instr) but I keep getting errors. Can anyone point me in the right direction?

View 6 Replies View Related

How To Find Accurate Average Based On Data Points

Nov 8, 2011

I'm looking to find a accurate average based on some data points. The issue is that some service times are 0 and so are considerably larger than the norm. So...

17
18
12
13
14
12
10
5
5
0
0

Assuming the following data 12,13,14,12,10 are probably the most accurate and all other are not.

View 7 Replies View Related

Find Minimum/Maximum Excluding Zeros

Apr 5, 2009

I have inherited some legacy templates (Standard, Leave and Exception) which cannot be changed. I need to summarise them (Total) selecting the earliest start and the latest finish. (Sample attached). The templates are 90 columns wide and about fifty lines deep so named ranges isn't practicle (I think). I'm running 2003.

View 4 Replies View Related

Conditional Count (Find The Minimum Value In The Range)

Dec 29, 2009

I am trying, without success, to create a formula that will refer to a column of data and do the following in one step:

1. Find the minimum value in the range, and then
2. From that minimum value, count back “up” the column the number of occurrences, including the minimum value, until a zero is reached. The zero should not be counted.

For example, if the values in A1:A6 are 1, 0, 2, -1, -2, 1, the minimum value is -2 and the count would return 3. (i.e. 2, -1 and -2)

View 2 Replies View Related

Find Minimum And Maximum Numbers In Table?

Oct 17, 2011

How do I find the minimum and maximum numbers in a table if I do not know the size of the table but can assume the user will choose the first cell (upper left cell) of the table and run the macro?

View 5 Replies View Related

Find Minimum Number In Given Set Of Numbers Without Repeats

Dec 24, 2011

So i need a way to find the minimum number in a given set of numbers without there being multiple minimums. For example if you had 1,2,3,4,5,6,7 the minimum would be 1. If however you had 1, 1, 2, 3, 4, 5....i want excel to recognize there are multiple minimums (two 1's) and produce a warning (i realize this probably needs to be coupled with an if statement).

View 3 Replies View Related

Find Minimum Value In Non-successive Range Of Numbers

Nov 9, 2012

I'm looking for a formula to find the minimum value in a non successive range of numbers (excluding zero values).

My sheet contains four fields of numbers (#1, #2, #3 and #4) and than start over again with number #1, #2, #3 and #4 etc. This goes on for approx. 25 4-column blocks. A simple MIN-formula or SMALL-formula doesn't seem to do the trick as it takes all values into account, not just the #1 or #2 or #3 or #4 values.

Example (cells A1..A24):
999-999-999-999-110-120-130-140-111-121-131-141-112-122-132-142-0-0-0-0-113-123-133-143

The minimum value of #1 (excluding the zero's) would be 110, the minimum value of #2 would be 120, #3 would be 130 and #4 would be 140.

View 4 Replies View Related

Find The Minimum Values And Avoid Zeros

Feb 23, 2009

I have a range of values, (1,10,20,0,2,5)

I need to find the minimum values, but I want to avoid 0(zero)

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved