+ Reply to Thread
Results 1 to 5 of 5

Do I use a permutation or array to solve this?

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    56

    Do I use a permutation or array to solve this?

    I am building a spreadsheet to help me quote decks. For a given deck size I know I need 6x6 posts every 8'. I know how to figure that for the perimeter but how do I calculate that for the interior posts? For example, a 8' x 8' free standing deck only needs 4 posts, one at each corner. But a 10' by 10' free standing deck needs one at each corner, plus one in the middle of each side, plus one in the middle (going with symetrical spacing), for a total of 9 posts.

    Small evenly shaped decks like this are easy to figure in my head, but when I get into a large or non-square one (30 x 45 for example) a formula would be better.

    Any ideas?

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Do I use a permutation or array to solve this?

    Irregular decks would require some programming and some smarts on how to aesthetically 'balance' out the posts between the sections. But for a basic rectangle, I think this works:
    =(INT((length)/6)+IF(MOD(length,6)=0,1,2))*(INT((width)/6)+IF(MOD(width,6)=0,1,2))

    Note that this can be used for some of the irregular shapes, but you would have to do it in sections and remove any double counted posts along shared sides.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Do I use a permutation or array to solve this?

    Thanks Pauley, but yhis is apparently not right. Your formula used with a basic 8' x 8' deck produces 9 posts required, and I know that with 8' spacing only 4 are needed.

  4. #4
    Registered User
    Join Date
    03-20-2009
    Location
    Phila, PA
    MS-Off Ver
    Excel 2003
    Posts
    56

    Re: Do I use a permutation or array to solve this?

    Works perfect, even for a 220' x 148' deck!

  5. #5
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Do I use a permutation or array to solve this?

    Sorry, the 6x6 had me thinking a post every 6'. Use this:
    =(INT((length)/8)+IF(MOD(length,8)=0,1,2))*(INT((width)/8)+IF(MOD(width,8)=0,1,2))

    That should change the number for the 220'x148' which makes me wonder about how the previous one worked perfectly... Try this one out and see if it does better.

+ 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