+ Reply to Thread
Results 1 to 4 of 4

How to create dynamic output tables

  1. #1
    Registered User
    Join Date
    11-02-2017
    Location
    norway
    MS-Off Ver
    365
    Posts
    2

    How to create dynamic output tables

    I'm looking for help to make a program that will allow me to spend less time with a pen and a calculator for my school work.

    The calculations will basically be starting with the coordinates of two or more points and working out all their directional angles and distances relative to eachother.



    Example:

    A: 75612.502 N , 1412.162 E

    B: 75637.421 N , 1422.692 E



    Directional angle of AB = ArcTan( (1422.692-1412.162) / (75637.421-75612.502) ) = 25.4527 Gradian (22.9074 degrees)

    Directional angle of AB = ArcTan( (Be-Ae) / (Bn-An)



    Distance AB = Square root of ( (1412.162-1422.692)^2 + (75637.421-75612.502)^2 = 27.0525

    Distance AB = Square root of ( (Ae-Be)^2 + (An-Bn)^2 )



    I'm mostly using gradian instead of degree. 400 units instead of 360 units in a full circle. 1:0.9 ratio

    There is also the four quadrants to take into consideration, if delta N or E is negative the angle output needs some more work.

    If both delta N and delta E are positive the formula gives the right answer, if dN is negative add 200g(180°), if dN and dE are negative add 200g(180°), if dE is negative add 400g(360°)
    59fb06790eeae_inputoutput.jpg.13bbea6feb7a0b0f16df8105860dee93.jpg

    I want to adjust automatically for the number of points I need to calculate. Like how giving it 2 points gives me 1 line of output 4 points give 6lines of output and giving it 20 points somewhere around 200. The output field would be huge sometimes (and that's mostly the reason I want to make this in the first place) but not always.
    I think I can manage the formula and get the correct output for two points manually but I want it detect how many points there are then output each calculated relation dynamically.

    Is this done by having one huge cell full of IF's, AND's THEN's that output to an area perhaps?
    As someone who a few hours ago only used excel to make non interactive information lookuptables I must admit there might be a slight need for spoonfeeding me information.

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to create dynamic output tables

    Hi
    See this
    In the range 'Pts'!B3:D8 put the Name, North and East coordinates of the points.

    In a new sheet Angle use this approach (table with two entries)

    B3:B8 -> names of the points
    C2:H2 -> names of the points

    Use this formula in C3 and copy forward and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Use the same approach to get the distances with the following formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See the file
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-02-2017
    Location
    norway
    MS-Off Ver
    365
    Posts
    2

    Re: How to create dynamic output tables

    That is a great solution! I'm not sure if I'm just really new to tables but I was a bit blown away when I realized the approach you had taken to the output tables! Beauitful! THANK YOU!!!!

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: How to create dynamic output tables

    You are welcome.

    Do not forget to mark this thread as solved.

+ 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. Compare two tables and have an output
    By yatari in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2016, 01:03 PM
  2. macro to Create 3 tables from tables in the attached sheet
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2015, 08:13 AM
  3. Create dynamic tables from datasheet
    By swiftrain in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2013, 08:44 AM
  4. How to create macro to sort multiple tables in dynamic range?
    By munnie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 09:57 PM
  5. Comparing Two Tables - Output Changes
    By Fishbone in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-10-2011, 06:32 PM
  6. Replies: 0
    Last Post: 01-19-2005, 06:34 AM

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