LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help: selecting rows within an equation

I am working on a program that uses the distance formula.
Example:
=SQRT((B8-B7)^2+(C8-C7)^2)

I need to find a way to substitute variables for the cell locations.
B C
X and Y
7. 64.4 25.5
8. 65.4 24.9
9. 73.6 23.5
10. 39.5 96
11. 19.5 33.6
12. 25.5 98

Reference X and Y
12.2 13.6

The Loop im trying to create will take the Reference X and Y and plu
it into the distance equation along with the first X and Y in the char
which is B7 and C7. That result will be outputed. The program with the
take the next X and Y in the chart and calculate it with the sam
reference. this loop with continue until it reaches the end of th
chart.

If anyone has any suggestions on how to do this please let me know.

Thanks
Nic

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting All Rows with Certain Data Dave F Excel Discussion (Misc queries) 0 November 29th 06 07:24 PM
after selecting 50 rows of a column i can't reference the cells in the rows Bob Salzer New Users to Excel 2 July 21st 06 10:29 PM
Selecting Rows Coolboy55 Excel Worksheet Functions 4 August 22nd 05 04:07 PM
Selecting Rows Alan Excel Programming 4 October 16th 03 09:10 PM
selecting rows CiaraG Excel Programming 0 August 8th 03 10:07 AM


All times are GMT +1. The time now is 08:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"