+ Reply to Thread
Results 1 to 2 of 2

program for two measurements that are dependent on eachother

  1. #1
    Registered User
    Join Date
    01-23-2017
    Location
    Long Island, NY
    MS-Off Ver
    2007
    Posts
    5

    program for two measurements that are dependent on eachother

    I often need to make AutoCAD drawings of custom fabricated bar grilles for HVAC applications. Given a frame, say 24x4", I need to figure out how many vertical crossbars should go into that 24" length and how far apart they should be from each other and from the edge of the frame.

    The parameters I like to stay in are these: the crossbars may be anywhere from 0.75" to 2" away from the ends and between 4" and 9" away from each other. The thing is that for the second range I gave, I can only allow 0.25" increments. So to reduce material usage naturally we would like to see if a 9" spacing is possible given the end parameters before trying 8.75, 8.5, etc. all the way to a minimum of 4". The first combination of crossbar quantity and spacing that meets these criteria is usually the one I go with for my drawing and the paperwork I send to the cutting department.

    I'm pretty sure this can't be done with regular excel formulas. I have no experience with VBA but I'd like to start learning by using it to solve this issue. Would anyone on this forum be able to help?

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: program for two measurements that are dependent on eachother

    I have made a basic spreadsheet that I think approximates what you need... It does assume that the space from the edge of the frame is the same on both ends, and that the thickness of the crossbar needs to be taken into account.

    Of course you can set crossbar thickness to 0 if I've assumed wrong on that.
    Attached Files Attached Files
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

+ 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. VBA holding eachother up?
    By horsefish01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2015, 11:40 AM
  2. [SOLVED] Two codes conflict with eachother. How to resolve them
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 04-01-2013, 09:28 AM
  3. Stacked Graphs next to eachother
    By ajmarti82 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-14-2013, 03:13 PM
  4. 2 identical sheets , linked to eachother?
    By stevnb in forum Excel General
    Replies: 4
    Last Post: 12-14-2012, 07:44 AM
  5. Is it possible to add two types of graphs too eachother?
    By persson121 in forum Excel General
    Replies: 3
    Last Post: 06-30-2012, 08:38 PM
  6. Eliminate DataLabels upon eachother not readable?
    By Marie J-son in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-01-2006, 01:40 AM
  7. How to program dependent list in Excel using VBA?
    By swu012 in forum Excel General
    Replies: 2
    Last Post: 08-16-2005, 01:05 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