+ Reply to Thread
Results 1 to 17 of 17

Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

  1. #1
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    This is an extension of this thread...
    http://www.excelforum.com/showthread.php?t=1086927

    Used that formula "snippet" to assign certain circuit numbers when a certain condition applied (one space circuit). Where that condition does not apply, I want to assign lowest circuit numbers. On there own, my formula parts work, but because using the formula "snippet" from the other thread skips space numbers, it leaves unused "voids" in consecutive odd or even space numbers. As a result, my "normal" formula either skips a space(s), or it's assignments overlap already used spaces.

    Please see attached example file for more detail...
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Hi again.

    I'm afraid I cannot understand at all what you are trying to do here. Apologies.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Refer to this picture as a depiction of the physical...

    501ecm31fig1.jpg

    Each of the larger wires (2 each of black [ØA], orange [ØB], and blue [ØC]) goes to what is called a bus. The breakers are arranged below that, left and right. Each wire coming into a breaker from the respective side represents the same Ø by color. Each of those smaller wires represent a breaker space, numbered odd left, even right, top down.

    A circuit can be 1-, 2-, or 3-pole. Each pole of that circuit requires one breaker space. If the circuit is 1-pole (as indicated by CONNECTION column in my Table), it can only be connected to a breaker in a black- or blue- wired space.

    I want to automatically number the circuits in my Table giving them top down priority so that it provides the least unused spaces in the breaker panel.

    Hope that helps. let me know if you (all) need more explanation.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Can you not translate that rather practical, esoteric explanation into a more theoretical, Excel-specific one, much as you did in your previous post?

    Sometimes it's difficult to understand such requests without a thorough knowledge of the branch of science in question.

    Regards

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Top data row in my Table, left-most cell (B4) will always be CKT #1. If it has 1 in [CONNECTION], [##] and [###] columns will be blank. If [CONNECTION] is 2, [##] will be 3 and [###] will be blank. If [CONNECTION] is 3, [##] will be 3 and [###] will be 5. These represent assigned breaker spaces by number.

    Second row must use the numbers above in those three columns to determine what breaker spaces are available. There will never be more breaker spaces than the rows(first:current) times columns(first:third), so at this stage, a total max possible spaces is 6. The available spaces should be 2,3,4,5,6, with 3 and 5 availability determined by the row above. The lowest available space number for second row is 2. Depending on what is in [CONNECTION], the left 3 columns will be 2,"","", or 2,4,"" or 2,4,6.

    AFAIK, everything is good through second row. Third row (and thereafter) is the earliest the problem starts...

    Say for example rows one and two have a [CONNECTION] of 1... those rows would be 1,"","" and 2,"","" respectively. If row three has a [CONNECTION] of 1, it'll skip {3,4} and assign 5.

    Or for example rows one and two are 1,3,5 and 2,"","" respectively... row three will skip {4} and assign 6.***

    Now it is feasible that the number of "required" spaces could exceed rows time columns (3×3) because of the skipping. I have anticipated this, but have yet to modify the formula... working one problem at a time ...and that should be a relatively easy fix.

    Any way, because each new row three or later may have skipped spaces above, the latter part of my formula needs to "anticipate" all three columns number assignment so it doesn't duplicate an already used space. Continuing last example (***), row four will want to assign 4 in [CKT#] column if [CONNECTION] is 2 or 3... but it'll assign 6 in [##]... which will duplicate the 6 in row three.

    Does this help?

  6. #6
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Bump.......

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Can't you just place all 3-ph breakers first, then the 2-ph breakers in positions that include ph B, and then the 1-ph breakers in the gaps?
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    That is one possible way in the physical world. Another method of placing breakers is to place the ones with the highest ampere rating towards the top, so the lesser-rated thermal magnetic breakers aren't above them getting the heat generated by higher-rated breakers below them.

    That is in the physical world, and that could be done in the Excel arrangement... but I want that left as a user choice, by rearranging the rows manually or sorting them by other columns. No matter how the user decides to arrange them, I just want Excel to automatically assign circuit numbers in left, right, top down priority with minimal unused spaces (or space numbers) in between and no duplicates.

    In my mind it is not all that hard to do... but so far getting Excel to do it results in pulled hairs and no joy.
    Last edited by jhren; 06-08-2015 at 09:13 PM.

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    One way or another, you need an algorithm.

    It would be pure happystance if someone here could do that for you.
    Last edited by shg; 06-09-2015 at 01:19 AM.

  10. #10
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    That was the notion when I typed up the thread title...

  11. #11
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    I guess that someone was me...

    Finally got it AFAICT...
    Attached Files Attached Files

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    My point was, it's not an Excel question, it's a question for an electrician: How do you populate a breaker box?

    Then that subject-matter expertise could be reduced to a formula- or VBA-based solution in Excel.

    EDIT: Just saw your last post. Glad you got it sorted.
    Last edited by shg; 06-09-2015 at 10:27 AM.

  13. #13
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Well, I was looking for Excel expertise. I possess the electrician expertise. I know how to populate a breaker box (aka panelboard). I attempted to relate in post #3. In post #8, I mentioned a popular premise, but it is not required. Actual requirements were described in post #3 in association with the first example file.

    As I said, in my mind it is easy to do. I needed the Excel expertise to implement it in Excel... so I guess it isn't as easy as I think it is? I surmise that comes from being an electrician (among other things).
    Last edited by jhren; 06-09-2015 at 10:45 AM.

  14. #14
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    That's the part I never got. I was looking for something like this:

    You have a panel and a handful of 1-, 2- and 3-ph breakers to install, which you do by:

    1. Installing all the 3-ph breakers, alternating left-right, each spanning A-B-C

    2. Installing all the 2-ph breakers, alternating left-right, each spanning A-B or B-C (why not C-A?)

    3. Installing the 1-ph breakers in the gaps, on ph A or C only (why?)

    What about attempting to balance the load across phases, considering breaker ratings?

    The questions are just out of interest, but it's the rules that I never grokked from your posts, and didn't (and don't) understand the workbooks at all.
    Last edited by shg; 06-09-2015 at 12:03 PM.

  15. #15
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    First, that's your (also others) method of installing the breakers. It is not the only way to do it.

    2-pole breakers can be installed AB, BC, or CA. If you do not install in one of those, it is to help balance the load, but just doing it that way isn't an assurance that it balances the load. basically a make-shift method of balancing without doing a panel load calculation (i.e. the lazy or a hack's way, if you'll pardon the implication). 1-pole breakers can only be on A and C lines (technically inaccurate to call them phases) because those are the only lines with 120V to neutral (the white wires in the diagram of post #3). Line B to neutral is 208V and not intended to be used for 208V loads (I can explain further if you want).

    For this discussion, I am using a 240/120V 3Ø 4-wire system. A 480/240V 3Ø 4W system typically does not use 1-pole breakers. And then there's 208/120V and 480/277 3Ø 4W systems, but 1-pole breakers on those systems can be installed in any space.

    Anyway, you're only seeing part of the operation if you opened either of the example files. The actual file includes the panel load calculation per line (conventional and vector) and offers balancing by manually rearranging the rows (it would take a VBA routine to balance it automatically, and judging by writing this numbering formula, I'm imagining that would be an even more daunting task ). Anyway, that's why I wanted automated circuit numbering. Balancing the load takes a higher priority than just putting in breakers where they fit best (at least it does for the true professional).

  16. #16
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    First, that's your (also others) method of installing the breakers.
    Not mine; I just invented that, unburdened by any knowledge, and if it's the way some people actually do it, it's purely coincidental. I was trying to give an example of an algorithm in words I could understand, unrelated to whatever complexity drives it.

    Anyway, good luck.

  17. #17
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Automatically assign circuit numbers. Perplexing, so ALL GURUS WELCOME.

    Regardless, I appreciate both your interest and well wishes...

+ 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. Calling all gurus: Automatic waypoint numbers from cell colors!
    By Scott_Dreppan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-07-2013, 03:54 AM
  2. [SOLVED] Please Help - automating summing circuit counts
    By jhauger22 in forum Excel General
    Replies: 6
    Last Post: 11-18-2012, 10:12 PM
  3. Column Name is Perplexing
    By 2709236 in forum Access Tables & Databases
    Replies: 4
    Last Post: 01-12-2012, 07:20 AM
  4. Perplexing Excel question
    By Valiantlyon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2007, 11:15 PM
  5. [SOLVED] Perplexing sheets.
    By ben in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2005, 03:05 PM

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