+ Reply to Thread
Results 1 to 15 of 15

Using excel to write wiring connection plan

  1. #1
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Using excel to write wiring connection plan

    He there, hope this is not going to be a too long post but will try to minimize it.

    I'm trying to write wiring plan of connections in excel.
    Have been able to manage data sort in the way I need to once I have all data in one huge table. But, now I'm stuck with automatically filling data table from sheet with wiring connections.

    Here is an example(just one bit of it) what it looks like(picture)


    http://www.deviantpics.com/hbZ


    Ok, this was drawn in autocad, but I will make a table and do that in excel. It will contain only data in numbers and text.
    As you see, this tell you destination A and B of one cable, type of cable, and its name.

    And the most important thing, on the first sheet there is various number of these tables, all king of terminal blocks. X100,X110..x200. And for every single one, I want excel to create on its on sheet name of terminal block the table described below.

    I want to export that data to another sheet in excel that will have name of terminal block: "X220". And on that sheet will be create table like this one(picture):

    http://www.deviantpics.com/hbo


    Can it be done?
    Last edited by caplja; 10-02-2016 at 08:08 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    No-one is going to want to re-type all that stuff.

    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    I understand, hoing to write a sample workbook asap.
    thank you

  4. #4
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    OK, so here it is

    On sheet terminal block there is three A3 paper with specific data. Only data that is process to sheet "table of connections" is in gray area.

    Hope i have make everything clear. There can be done some modification to this table if it is going to make it easier.

    To clarify, I need the sheet like "table of connections" to to create itself automatically when I enter data on first sheet.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    Brr. That took a while. Try this. there are a lot of complex array formulae here. BUT, so far as I can see it reproduces your example. here's hoping that it was representative of the real thing.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

    I also had to create a helper column on the first sheet to get it to work. it can be hidden, of course.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    I should have added that I corrected a couple of spelling errors (tarminal instead of terminal...). I hope you don't mind!!

  7. #7
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    Quote Originally Posted by Glenn Kennedy View Post
    Brr. That took a while. Try this. there are a lot of complex array formulae here. BUT, so far as I can see it reproduces your example. here's hoping that it was representative of the real thing.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...

    I also had to create a helper column on the first sheet to get it to work. it can be hidden, of course.
    O my, I'm grateful to you so much! have been struggling for days with array formulas.

    I'm new to "advanced" excel and have been able to pull out data from this kind of table that you have now created.
    This is only part of project but it means a lot to me, thank you.

    Have tried to input some extra data and works just fine.

    Only one thing I need to correct, In column D and H on sheet3. Terminals a shown only if they are number, it can happend that for some kind of apparatus terminal is combination of letter and number, example: "A1" or "Y+".
    I guess all I need to do is to make same rule under column D and H as it is on C and G to do that.

    Thank you again, will analyze those formulas as much as I can and try to learn from it.
    You helped me a lot. Wish I could sent you a beer

    All best,
    Caplja
    Last edited by caplja; 10-02-2016 at 11:57 AM.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    No. It's a bit more than that. See the revised sheet.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    I apologize, I have complicated it for you.
    Must have been said it wrong. I was telling about other two columns, not the main one.
    There is always a number in that one (N-column) .

    Now, I painted the example in red. You see, those terminals are not shown in sheet 3.
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    OK. Back to the original formulae (much less ugly looking). In the "terminal" column, I had applied a "trick" to suppress zeros in a column returning numeric data (another,different, "trick" has been applied to do the same in columns G & K - columns returning text). Since you have a formula returning mixed text and numbers, I used a custom format to hide the zeros.

    It should be OK now??? !!!!
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    Wow, super fast.
    Yes, this is it.

    Going to work on it now.
    Thank you a lot.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    Woo Hoo!

    I've earned a beer.

  13. #13
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan


    To be precise I owe you as much beer as you can drink if we are going to measure time you have saved me.

    Hope I'm going to analyze and learn what have you done here so I can repeat it.

    I'm testing it right now and it works just fine.
    Have managed to input twice as more "tables" on terminal block sheet. Have edited the range of formula and it works like a charm.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Using excel to write wiring connection plan

    I warn you...I'm Irish, so that's a lot of beer...

  15. #15
    Registered User
    Join Date
    10-02-2016
    Location
    Croatia
    MS-Off Ver
    2007
    Posts
    8

    Re: Using excel to write wiring connection plan

    Have notice that on first post, so knew to offer a beer!
    challenge accepted

    thank you again

+ 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. Replies: 2
    Last Post: 05-15-2015, 04:12 PM
  2. Excel External Connection Dropping Password from Connection String?
    By mar0isa in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-06-2015, 10:35 AM
  3. Replies: 0
    Last Post: 03-26-2014, 05:23 AM
  4. MLM matrix plan plan 4x4 coding/formula
    By ncsvapi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2013, 08:23 AM
  5. Activex connection problems, connection jumps if a second Excel file is opened.
    By rdl201 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2013, 09:45 AM
  6. Replies: 10
    Last Post: 05-11-2012, 02:14 AM
  7. Excel VBA makes ODBC connection to Access-How do you close the connection?
    By MrHockey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2010, 06:29 PM
  8. Excel 2007 data connection not using connection file
    By algilstrap in forum Excel General
    Replies: 0
    Last Post: 06-09-2009, 03:01 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