Posts by srands

    Re: VBA loop rows excluding header, until blank rows


    Another feature of same spreadsheet EXCEL EMAIL! www.srands.co.uk/ExcelEmail (aka exoftable4.xls)

    Great spreadsheet, to send Email automatically from Excel based on meeting certain criteria!

    Open in Excel, not Internet Explorer, to use the special code (Macro).

    Further Instructions:
    On opening file 'Enable Macro's. (ONLY in EXCEL as AUTO MACRO will NOT work in Internet Explorer.)

    NOTE: To lower macro security:
    TOOLS, OPTIONS, MACRO SECURITY, MEDIUM, then close EXCEL, then re-open file.

    Left CLICK the 'RESULTS' tab (A summary of entries that meet all criteria set in 'WORKSHEET' tab, Column U).
    View, ToolBars, left click VISUAL BASIC if NOT already ticked.
    The in VISUAL BASIC toolbar, left click RUN symbol (R/H arrow symbol), then
    Left click RUN macro 'EMailRESULTS', then Emails will be automatically generated!

    HOW TO EDIT visual basic (VBA) of the CODE USED in the spreadsheet for your own purposes:

    Left CLICK the 'RESULTS' tab (A summary of entries that meet all criteria set in 'WORKSHEET' tab, Column U).

    View, ToolBars, left click VISUAL BASIC if NOT already ticked.
    The in VISUAL BASIC toolbar, left click RUN symbol (R/H arrow symbol), then
    Left click either STEP INTO or EDIT.
    Making your changes, once finished editing, click SAVE, then FILE, CLOSE & RETURN TO EXCEL.

    Re: VBA loop rows excluding header, until blank rows


    [INDENT]The same spreadsheet has other features too:


    MAIL MERGE in WORD using EXCEL RESULTS as database


    http://www.srands.co.uk/Word&ExcelMailMerge.zip


    The spreadsheet needs a specific word file exoftable4~MailMergeLetter.doc:OPEN ZIP FILE and EXTRACT to chosen FOLDER:
    ~ on opening the WORD file exoftable4~MailMergeLetter.doc,
    ~ select correct excel file: 'exoftable4.xls' ,
    i.e: Pointing to the correct FOLDER that the EXCEL file is now saved in, as opposed to the FILE DIRECTORY LOCATION when last saved/created.


    OPEN CREATED WORD MAIL MERGE DOCUMENT:
    YES to open selected data, DATA LINK PROPERTIES, CONNECTION will appear
    In 1. Browse all FILE TYPES, and browse to folder, where files are saved to: 'exoftable4.xls', OK.
    VIEW, TOOL BARS, MAIL MERGE (Tick if NOT ticked), <<ABC>>, to toggle between FIELDS and ACTUAL DATA.


    VIEW MAIL MERGE:
    When finished to toggle between CODE and ACTUAL FIELDS, press the MAIL MERGE ICON <<ABC>> 'VIEW MERGED DATA'.
    |< Start of records
    < Backwards through records
    > Forwards through records
    |> Finish of records


    OR


    CREATE YOUR ON MAIL MERGE LETTER from any EXCEL WORKBOOK or ACCESS db:
    TOOLS, LETTERS and MAILINGS, MAIL MERGE, LETTERS, NEXT, USE CURRENT DOCUMENT,
    NEXT, SELECT RECIPIENTS, USE AN EXISTING LIST, BROWSE, SELECT EXCEL WORKBOOK,
    SELECT EXCEL TAB within WORKBOOK, select 1ST COLUMN, NON BLANKS, SELECT ALL, OK.


    VIEW, TOOL BARS, MAIL MERGE (Tick if NOT ticked), INSERT MERGE FIELDS (A4 icon), DATAFIELDS, then select your chosen EXCEL HEADINGS, 1 field at a time!


    MAIL MERGE RESULTS:
    Press the MERGE TO NEW DOCUMENTS icon or MERGE TO PRINT. [/INDENT]

    Re: VBA loop rows excluding header, until blank rows


    Here is the new link for the working SPEECH loop SPREADSHEET:


    http://www.srands.co.uk/exoftable4.xls


    To use XL speech feature that the macro uses, you will need optional SPEECH TEXT:
    VIEW, TOOLBARS, TEXT to SPEECH.


    To play MACRO:
    Start on the LETTER tab
    VIEW, TOOLBARS, VISUAL BASIC, then press PLAY (Run macro), then select:
    SPEAKletter, then RUN.


    Also repeating WAV file, works but need to close SND PLAYER after wav has finished each time:
    http://www.srands.co.uk/XLwithWAVtoREPEAT.xls

    Re: WORD/EXCEL MailMerge


    Talking of CODES, sometimes when trying to piece together the right VBA, I wonder if any of the VBA codes:
    ~ Works, at all.
    ~ That the VB codes are not really the revised new working vba code, but the old not working vba code!


    Then on reflecting maybe it is the code I need, it might just need a few edits, reading through the VBA codes, I think:
    What purpose do this serve?
    What do I need again?
    I think that might be what I'm looking for.

    Re: WORD/EXCEL MailMerge


    NOTE: WORD -> EXCEL not the other way round? You might ask if the database is EXCEL, surely you'd open EXCEL first, NO.


    SINCE WORD DOCUMENTS, are easier to EDIT in WORD (Would take too long to EXCEL VBA code WORD document with word headers, word footers, page set up, different fonts, correct spaces/paragraphs, etc), open with the WORD DOCUMENT first, then the WORD DOCUMENT connects with the EXCEL SPREADSHEET, with a prompt for FOLDER/FILE location.


    TEMPLATES are better then starting from fresh, they are easier to use, a method that works and using them looks consistent. However many like to start from FRESH, if you like this style, here is what I did:
    ~ EXCEL SPREADHSHEET/DATABASE with HEADERS (Name, Address1, etc)
    ~ WORD DOCUMENT with HEADER/FOOTER, then MAIL MERGED with EXCEL SPREADSHEET.

    Re: WORD/EXCEL MailMerge


    GREAT stuff:


    WORD 'N' EXCEL MAIL MERGE www.srands.co.uk/Word&ExcelMailMerge.zip

    EMAIL
    'N' EXCEL AUTO GENERATED www.srands.co.uk/ExcelEmail


    Working on a:
    VOICE 'N' EXCEL spreadsheet, looking for a decent simple small VBA LOOP CODE with STARTING ROW CELL, then continously adds to row number, until BLANK ROW.


    Whatever next? I think getting a microsoft phone dialler/messenging/rdc/rds program, or even skype to work with the future VOICE 'N' EXCEL file, is too much to ask, et 'esque'.


    Perhaps I'll get something else, maybe some 'embossed' loo paper, automatic roller, for the loo, an electronic toilet roll dispenser, just need some 'parts' from some old expensive laser printers, now where are those old Samsung's, etc.

    MAIL MERGE in WORD using EXCEL RESULTS as database :)


    http://www.srands.co.uk/Word&ExcelMailMerge.zip
    OPEN
    ZIP FILE and EXTRACT to chosen FOLDER, however on opening word file, select correct excel file: 'exoftable4.xls', i.e: Pointing to the correct FOLDER that the EXCEL file is now saved in, as opposed to the FILE DIRECTORY LOCATION when last saved/created.


    OPEN CREATED WORD MAIL MERGE DOCUMENT:
    YES to open selected data, DATA LINK PROPERTIES, CONNECTION will appear
    In 1. Browse all FILE TYPES, and browse to folder, where files are saved to: 'exoftable4.xls', OK.
    VIEW, TOOL BARS, MAIL MERGE (Tick if NOT ticked), <<ABC>>, to toggle between FIELDS and ACTUAL DATA. :eek:


    VIEW MAIL MERGE:
    When finished to toggle between CODE and ACTUAL FIELDS, press the MAIL MERGE ICON <<ABC>> 'VIEW MERGED DATA'.
    |< Start of records
    < Backwards through records
    > Forwards through records
    |> Finish of records
    OR
    CREATE YOUR ON MAIL MERGE LETTER from any EXCEL WORKBOOK or ACCESS db:
    TOOLS, LETTERS and MAILINGS, MAIL MERGE, LETTERS, NEXT, USE CURRENT DOCUMENT,
    NEXT, SELECT RECIPIENTS, USE AN EXISTING LIST, BROWSE, SELECT EXCEL WORKBOOK,
    SELECT EXCEL TAB within WORKBOOK, select 1ST COLUMN, NON BLANKS, SELECT ALL, OK.
    VIEW, TOOL BARS, MAIL MERGE (Tick if NOT ticked), INSERT MERGE FIELDS (A4 icon), DATAFIELDS, then select your chosen EXCEL HEADINGS, 1 field at a time!


    MAIL MERGE RESULTS:
    Press the MERGE TO NEW DOCUMENTS icon or MERGE TO PRINT.
    QUESTION 1). Is there a FORMULA and/or VB CODE way for MAIL MERGING to WORD from EXCEL? :confused: Hence a word document would be created, however I guess this would cause some issues:
    ~ If started in EXCEL instead of WORD then LETTER without elabourate HEADER, FOOTER, logos, unless all paper in printer is already LETTERHEADED.
    ~ Alternatively prompt EXCEL to use a designated TEMPLATE


    Anyway the attached sample files work.


    Crossthreads:
    http://www.mrexcel.com/forum/showthread.php?t=630308

    Re: FORUM webpages. USER PROFILES/MESSAGES? Attachments &amp; Avatars? XL db?


    Where's the EXCEL connection?


    What this comes down to, people/businesses/organisations like to use FREE/CHEAP 'HOSTING' for their website, cheap HOSTING does NOT include SQL (Structured Query Language), or as an extra at a cost.


    HOSTs that do have SQL, on your account, there would be a SQL CONTROL PANEL, since SQL is needed to setup (DSN) DATABASE NAME, USERNAME and PASSWORD.


    HENCE MY QUESTION FOR A EXCEL DATABASE USING A HTML FORUM CODE!


    Since the majority of the FORUM PROGRAMS/CODES need SQL as a pre-requisite, then like most with cheap hosting we can't setup a simple FORUM on our own websites, but a great alternatives is to get a FREE FORUM, then just HYPERLINK it on your website, no cost, and doesn't take up your hosting file capacity:


    GREAT FREE HOSTING that doesn't need SQL HOSTING:
    http://www.pnyxe.com/compare-plans Scroll to the bottom, on the FREE column select 'START NOW'.


    Then it is a 1 page code, nice and simple, unlike many others! I'll go into detail about the others below!:
    The confusion starts with many who want a FORUM for their website, the issue of setup seems relatively simple DSN (DataSourceName), username & password.
    However what isn't clearly explained in many many many instructions that 'YOUR HOSTED SITE' will need SQL (StructuredQueryLanguage) which won't even be an option on YOUR ACCOUNT for YOUR WEBSITE's CHEAP/FREE hosting.

    FORUM/BULLETIN BOARD WEBSITE PAGEs (from PROGRAM): This 'FORUM' STYLE is great, vbulletin costs though doesn't it. In summary, my question is:


    What FORUM web page editing/generating programs are like this, but free and simple to setup and use? :confused: Name a few please! I don't see a decent looking option in FRONTPAGE using EXCEL WORKBOOKS, for this, the RESULTS DATABASE, a category search of an EXCEL spreadsheet, looks rubbish, I've never once seen any website successfully use this, rubbish DSN orientated method (Database http reference is far too overcomplicated). Other CATEGORY/PRODUCT search websites such as AUTOTRADER look far more professional.


    Obviously, overtime a hosted 'FORUM' will inevitably grow in size within your 'HOST', on new additions of:
    ~ USER PROFILES, AVATARS,
    ~ MESSAGES, ATTACHMENTS, STATISTICS


    The next issue is how the website 'FORUM' stores: PROFILES/AVATARS/MESSAGES/ATTACHMENTS: I guess some 'FORUMs' will simply:
    CREATE another 'hosted file', eg: forum/users/username1.htm
    or
    ADD/EDIT to an existing 'hosted file', with an individual reference, eg: forum/users.htm#user1
    or
    ADD/EDIT a 'database' of PROFILES/MESSAGES


    Hence my point, surely there is a simply way to do this with an EXCEL spreadsheet as a 'database', such as a simple http reference to an excel workbook, eg: http://www.srands.co.uk/exoftable3.xls
    Then of course be the issue of http referencing an EXCEL ‘TAB’, within excel workbook, sure there will be many many examples that don’t work, leading inevitably towards editing everything individually, er no! And none of this ridiculous DSN or SQL SERVER! Preferably just htm/html, instead of css/php.


    I've already browsed for 'FORUM' pages/open source/programs.


    However most/all of these appear to be sarcasm revolving/centralising around the issue of 'FTP access' for purposes profile/message creation. Obviously after a 'FORUM' user joins this doesn't give them the website forum 'FTP username & password'! Or the option to browse through file directories! Or the option to add/delete/edit any files at will! I could do without all these sarcastic obstacles!


    Anyway there are many completely useless examples on the internet to download, and realise they do nothing. DOWNLOAD SITES I BROWSED THROUGH: download.cnet.com/windows/ www.rocketdownload.com


    There are some great 'FORUM' and 'PRODUCT/PROFILE' examples out there such as:
    FORUM STYLE:vBulletin (used on many Excel Forums) www.vbulletin.com
    phpBB (used on Retrobike www.retrobike.co.uk/forum/) www.phpbb.com


    PRODUCTs/PROFILEs WEBSITE PAGEs:
    AutoTrader (CATEGORY search then browse through PRODUCT SUMMARIES, click an individual summary to the FULL PAGE) www2.autotrader.co.uk/search/used/cars


    Any great FORUM program/code editor that is freeware/shareware, that works on any host, that is easy to edit, in htm/html? SUGGESTIONS? :eek:


    Crossthreads:
    http://www.excelforum.com/exce…achments-and-avatars.html
    http://www.mrexcel.com/forum/showthread.php?t=630025

    Re: Email automatic in Excel with VBA to edit


    I've solved it! :wowee:


    See my WORKING file http://www.srands.co.uk/exoftable3.xls


    Simple 1 line code change:

    Code
    For R = 2 To Range("m4") + 1


    So the full VBA code for the RESULTS page is:


    NOTE: This code is of an edit from J Walk http://spreadsheetpage.com/ind…nalized_email_from_excel/


    See my WORKING file http://www.srands.co.uk/exoftable3.xls


    This is a great working file, I wonder if it is possible to do the same with an EXCEL 2003 FORMULA? (Aka not Ron de Bruin or erlandsendata!)

    My spreadsheet needs VBA code edit, to send EMAILS to rows, that are NOT BLANK in the worksheet RESULTS, excluding the HEADER.


    See sample file http://www.srands.co.uk/exoftable3.xls


    Issue1: To get VBA code working edited (See code below, 9th line, For r = 2 To 2 'Needs editing so that data in 'not blank' rows only is included. Also r = row, not to be confused with column r) to return email for only the 2nd row (Row after HEADER) entry only, on the RESULTS page. However the number of not blank rows is a variable, and will depend upon the rows that meet the criteria in 'WORKSHEET' in column U.


    Issue2: If I expand the row range to a full page upto row 51, many BLANK emails are generated (Because of blank rows, the auto-generated fields would be BLANK).
    I don't know what VBA code to use instead though. :0ops:
    In formula's for the 'RESULTS' page I would use a command that checks if the row is not blank, something like =IF(AND(A2=0),"",'email command') WHAT IS THE VB EQUIVALENT OF SOMETHING LIKE THIS?
    For this spreadsheet the number of RESULTS will be unknown depending on the information/data available, hence I want to include NOT BLANK entries from rows 2 to 51.


    PURPOSE OF DESIRED SOLUTION:
    CODE NEEDS EDITING, JUST TO COUNT NOT BLANK ROWS IN THE WORKSHEET 'RESULTS':



    See sample file http://www.srands.co.uk/exoftable3.xls


    TheWORKSHEET 'RESULTS', has the VISUAL BASIC code called 'Send EMail'. Obviously to view 'RESULTS' worksheet VISUAL BASIC code, View, Tools Bars, Visual Basic, then on the Toolbar press the play symbol (R/H arrow), Step into.


    Or to play the MACRO of the rows that meet all criteria in 'WORKSHEET', shown in 'RESULTS', View, Tools Bars, Visual Basic, then on the Toolbar press the play symbol (R/H arrow), Run.


    Cheers


    Stephan


    Cross threads:
    http://www.excelforum.com/exce…blank-rows.html?p=2762981
    http://www.mrexcel.com/forum/s…php?p=3122118#post3122118

    ROOM RENT paid of women, that pay me board, a spreadsheet I put together hastily.
    Sample File this hyperlink www.srands.co.uk/RoomRent2012.xls
    The code at the moment is INDEX/MATCH, perhaps other formulas would be more appropriate.


    BRIEF INTRO:
    ~ There is a SUMMARY TAB 'TOTAL's FOR JAN-DEC', that reiterates [Blocked Image: http://www.excelforum.com/images/smilies/eek.gif] the comments made, explaining why a payment was NOT made.
    ~ Simply there are SEPERATE SPREADSHEETS per MONTH that keep track of RENT PAYMENT AMOUNT.
    ~ Then PAID status is noted with either a 'Y' or 'N' in column D.
    ~ Then PAID (Cell C34) and NOT PAID (Cell C35), is totalled at the bottom of each MONTH
    ~ The H column refers to the 2 criteria's set by Y or N, in the summary tab, 'TOTAL's FOR JAN-DEC', Criteria1=B16, Criteria1=B17.


    VARIATION ON SAME THEME:
    I want the SUMMARY tab 'TOTAL's FOR JAN-DEC', which includes INDEX MATCH formula queries, to include BLANK ENTRIES from source tabs, hence then I can tell at a glance which WEEK NUMBER it is by glancing at the SUMMARY tab TITLE for the WEEK ROW, currently I have titled these REASON1, etc.
    Currently COLUMN D to I simply, note the NEXT available comment , however I want the summary tab to display the blank entries, hence these blanks are between the entries with comments! Obviously!


    EXAMPLE:
    'JAN' tab
    Comments for RENT UNPAID are made in CELLS: E3 and E17


    'TOTAL's FOR JAN-DEC' summary tab
    The 2 comments mentioned above, are listed one directly AFTER another:
    REASON1 then REASON2
    However the order they appeared in was WEEK2 (REASON2) and WEEK4 (REASON4).


    Unsure how to include blank entries in this fashion in the summary tab ('TOTAL's FOR JAN-DEC').
    Other then tedious direct cell ref like =JAN!E2 in summary tab, etc.


    Currently the formula looks like this for the summary tab for:
    JAN REASON1: =IF(ROWS($A$1:$A1)>$B$18,"",INDEX(JAN!E:E,MATCH(ROWS($A$1:$A1),JAN!$H:$H,0)))


    JAN REASON2: =IF(ROWS($A$1:$A2)>$B$18,"",INDEX(JAN!E:E,MATCH(ROWS($A$1:$A2),JAN!$H:$H,0)))


    As you can see my formula simple checks ROW by ROW for next written comment, which misses blanks entries.


    Sample File this hyperlink www.srands.co.uk/RoomRent2012.xls


    CROSSTHREAD/POSTED ELSEWHERE:
    http://www.excelforum.com/excel-gene...html?p=2735156
    http://www.mrexcel.com/forum/s…php?p=3083106#post3083106

    Re: Formula compares a VALUE, to a column, and nearest match returns the adjacent col


    Quote from mikerickson;591837

    The Formula =LOOKUP("Name", A1:A10, B1:B10) does the same thing as
    =VLOOKUP("name", A1:B10, 2).


    However =LOOKUP("name", A1:A10, B2:B11) will return the value one cell below that returned by the above formulas.


    MANY THANKS, exactly what I was looking for, the previous formula makes implied calculations of which I'm unfamiliar with, thanks for the more editable formula:


    =LOOKUP(K8, F2:F159, G3:G159)

    I want a formula (In K17 of attached SPREADSHEET), to return adjacent column, from opposite column NEAREST/CLOSEST value, to entered string.


    This attached spreadsheet has working VLOOKUP formula that was suggested elsewhere, however I wanted a formula different to VLOOKUP, something I can edit more easily, hence any other suggestions welcome:


    Q1). If I wanted a formula alternative OTHER then VLOOKUP, (Such as IF, COUNTIF or TRANSPOSE).


    Q2). The VLOOKUP formula returns ONE ROW before, when it should be the NEXT ROW.


    For example, if K8 = 10 MPG,
    then the COST per MILE (K17) should equal = £0.613 (Row 7),
    however the value returned by the VLOOKUP formula is the previous row (£0.638 Row 6), this is for the row for 9.8 MPG the nearest to 10 MPG before going over 10 MPG.
    I guess to edit the VLOOKUP will be simple enough, but I'm not familiar with the VLOOKUP formulas.


    Cheers Stephan


    CROSSTHREAD HYPERLINKS:
    http://www.excelforum.com/excel-gene...html?p=2685086
    http://www.mrexcel.com/forum/showthread.php?t=606409

    Re: Calculate amperage based on variables wire length and max amps at sockets


    SEE HERE FOR FINISHED ARTICLE http://www.ozgrid.com/forum/showthread.php?t=157039


    Cheers


    Stephan Rands

    www.srands.co.uk

    MPG autocalc

    [URL="http://www.srands.co.uk/Weight,Length,Temperature,Speed&MetresM2_AutoCalc.xls"]METRIC autocalc[/URL]

    MTB routes in/near Hull, Humberside

    ELEC GAS WATER autocalc: 1st tab, scroll down


    FUSEBOX MCB autocalc: 3rd & 4th tab


    RING AMP autocalc: 1st tab

    XL spreadsheet intended recipients: ELECTRICIANS and/or ELECTRICIANS DIYERS


    XL spreadsheet purpose: To calculate approx SOCKET WIRE diameter (EG 2.5mm or 4.5mm) to use in a RING ELECTRICAL CIRCUIT, from approx "calculated" amps drawn through socket wire from appliances / electrical sockets, in that RING ELECTRICAL CIRCUIT (Eg: KITCHEN).


    NOTE: ELEC current is drawn from nearest source, hence current amps is highly unlikely to be drawn consistently through socket wire, hence the need for this calculation.


    Also RINGing a CIRCUIT (Definition below) as some may presume INCORRECTLY, that this DOUBLEs the AMPs (Or to put in other words halves the AMPs drawn through the RINGed circuit socket wire) that can be drawn through the RINGED CIRCUIT, that is NOT RIGHT. RINGing is not consistent like this in reducing AMPAGE drawn through the RINGED CIRCUIT, hence the need for this calculation, "commonly" known as the KIRCHOFF [Blocked Image: http://www.electriciansforums.co.uk/images/smilies/wink.png]equation.


    RING DEFINITION: In electrical circuits of significant load, such as KITCHEN, normally socket wire is supplied from main fusebox to kitchen sockets/appliances, then onto the NEXT kitchen sockets/appliances, then FROM LAST SOCKET/APPLIANCE in KITCHEN ELEC CIRCUIT a length of socket wire is connected back to the fuse box socket, the purpose of this is to distribute the electrical load. You might think why not use thicker socket wire, INSTEAD of RING circuit, well for a number of reasons: UK 3 pin plugs terminal holes could only accommodate 1.5mm to 2.5mm, and also the terminals of appliances without leads the terminal hole is normally between 2.5mm to 4mm, at the most. The only terminal holes greater then this are cooker switch sockets, and obviously commercial switches.


    Hi ELECTRICIAN DIYers, the following are equations/xl formulas (SPREADSHEET [Blocked Image: http://www.electriciansforums.…mages/smilies/biggrin.png]) of what SKT WIRE would you use for RING MAIN example with a known MAX in AMPS (Given recognised KIRCHOFF equation with 3 SKT EXAMPLE1 below, D is the SUPPLY/SOURCE/START of CIRCUIT/FUSEBOX MCB).


    As per the example given in the NICEIC TECHNICAL MANUAL [Blocked Image: http://www.electriciansforums.…ages/smilies/rolleyes.png], of a RING circuit, calculated using the KIRCHOFF [Blocked Image: http://www.electriciansforums.co.uk/images/smilies/wink.png]equation.


    Here is a SPREADSHEET with formulas for the example in the NICEIC TECHNICAL MANUAL.


    EXAMPLE1:


    SKT D to A: 32A(TOTAL OF A+B+C), 20m's
    SKT A: 12A, AtoB 15m's
    SKT B: 14A, BtoC 20m's
    SKT C: 6A, CtoD 5m's


    SIMPLY, "IF" this was a RADIAL CIRCUIT were the WATTS/AMPS MAXIMUM was known (32A), the SKT WITE to be used/spec'd would suggest 4mm SKT WIRE.


    Obviously the KIRCHOFF equation doesn't actually reduce the actual WATTS/AMPS used, it calculates the AMPAGE spread over the RING MAIN, as an approximate. But isn't the KIRCHOFF equation the recognised standard equation for calculating a RING MAIN.


    ALSO I realise in addition to KIRCHOFF, the IEE 17th Edition Pg44 quotes something like:
    1.5mm (20A not ringed) or 2.5mm (27A not ringed) is approx 32A Ringed, <less then 100m's (# 20A x 1.6 or 27A x 1.2).
    Hence on the 3rd tab of the spreadsheet, I guess this is how IEE reached 32A, or a sliding scale of multiplication as you can see in the pattern #, or unless they destructively tested socket wire in collaboration with socket wire manufactures such as Prysmian, and the suggested figures were thought reasonable for permanent use for a great many years, well socket wire isn't going to twist and bend behind plastered walls.



    LONG HAND OF EXAMPLE1 with KIRCHOFF short hand:
    SKT D to A: 32A(TOTAL OF A+B+C), 20m's, Cumlative Count 0A
    SKT A: 12A, AtoB 15m's, Cumulative Count 12A
    SKT B: 14A, BtoC 20m's, Cumulative Count 26A
    SKT C: 6A, CtoD 5m's, Cumulative Count 32A


    i) Metres of Skt wire X Cumulative Count of AMPs from skts in circuit:
    20 X 0 = 0
    15 X 12 = 180
    20 X 26 = 520
    5 X 32 = 160
    0+180+520+160=860


    TOTAL i) / LENGTH TOTAL - Cumulative Count of Amps in circuit = AMPs of SKT LENGTH
    D to A = 860 / (20+15+20+5) - 0 = 14.33A
    A to B = 860 / (20+15+20+5) - 12 = 2.33
    B to C = 860 / (20+15+20+5) - 26 = -11.67
    C to D = 860 / (20+15+20+5) - 32 = -17.67


    SEE NICEIC TECHNICAL MANUAL Pg 5

    Given this example if RADIAL then 32A would use 4mm SKT WIRE. So if RING circuit what SKT WIRE would you use, given the above? Please show workings.


    If the above are totalled together: 14.33A + 2.33A + -11.67A + -17.67A = 19.3A
    Does this equate to the AMPAGE spread over the SKT WIRE?
    Hence 1.5mm SKT WIRE? 1.5mm SKT WIRE is rated to 20A. OR since the figure is very 20A, then the next biggest 2.5mm SKT WIRE which is rated to 27A? (Bigger is always better). [Blocked Image: http://www.electriciansforums.co.uk/images/smilies/cool.png]


    Cheers


    Stephan Rands


    www.srands.co.uk


    MPG autocalc


    [URL="http://www.srands.co.uk/Weight,Length,Temperature,Speed&MetresM2_AutoCalc.xls"]METRIC autocalc[/URL]


    MTB routes in/near Hull, Humberside


    ELEC GAS WATER autocalc: 1st tab, scroll down


    FUSEBOX MCB autocalc: 3rd & 4th tab


    RING AMP autocalc: 1st tab

    MPG (Miles Per Gallon) auto calc EXCEL spreadsheet, for Car Drivers


    http://www.srands.co.uk/fuelMPGautocalc.xls

    The auto calc even calc’s your MPL (Miles Per Litre), KPG (Kilometers Per Gallon) and KPL (Kilometers Per Litre) !


    The spreadsheet is already populated with data, to give you an idea how it all works, it's simple really, but here are the instructions below:


    FILLING UP
    To use, once filled up with fuel, then on spreadsheet enter:
    START MILES
    LITRES of FUEL bought
    DATE FUEL bought
    p/p/l
    £

    NOTES:
    ~ The above will be on your fuel receipt, apart from your 'START MILES', so make a note of this on your fuel receipt (Or on your mobile phone, as you may NOT have pen & paper to hand).
    ~ The completed autocalcs on the spreadsheet are genuine examples.
    ~ The auto calc is only completed once there are START and FINISH miles and dates, so values are only accurate when such cells have a value entered, hence references to ‘#DIV/0’, ‘FALSE’ and ‘#NUM!’.


    EMPTY TANK
    Once that fuel tank is empty (Petrol light) & you refuel again enter:
    Finish Miles
    Date Finish Miles


    THEN the AUTO CALC will calculate:
    ~ Gallons
    ~ Total number of months and days between filling up & empty tank
    ~ Miles Per Tank
    ~ Cost per mile
    ~ MPG (Miles Per Gallon)
    ~ MPL (Miles Per Litre)
    ~ KPG (Kilometres Per Gallon)
    ~ KPL (Kilometres Per Litre)
    ~ Cost per kilometre


    OTHER NOTES:
    ~ For the workings of most of the auto calcs, scroll to the right of the spreadsheet, look for the heading 'CALCULATIONS'.
    ~ Included also is SPEED CONVERSIONS:
    MPH to KPH
    KPH to MPH


    Any questions just ask me, &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;[/email]

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    &amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;&amp;amp;amp;quot;[email protected]&amp;amp;amp;quot;

    [URL="http://www.srands.co.uk/Weight,Length,Temperature,Speed&MetresM2_AutoCalc.xls"][ATTACH=CONFIG]40326[/ATTACH]METRIC autocalc spreedsheet[/URL] for excellent quick conversion figures.


    http://www.srands.co.uk/Weight…eed&MetresM2_AutoCalc.xls


    CALCULATES metric conversions:


    LENGTH:
    Metres, CM's, MM's, inches, Feet, Yard


    WEIGHT:
    St, Kg, G, Lbs


    SPEED:
    Mph & Kph


    TEMPERATURE:
    Celsius & Fahrenheit


    Great for quick approximate conversions, better than trawling endless billions of related websites for a converter that is semi-accurate.


    Do not mistake this spreadsheet, for a currency converter, it is NOT an MONEY EXCHANGE RATE spreedsheet, or anything like that, at all.
    If you want a converter for currency, use a website or 1 of your local branches, from "reputable" BANKs (UK) or TRAVEL AGENTs (UK), for their current EXCHANGE RATEs
    .


    JUST TO REITERATE the real designated purpose of MY SPREEDSHEET, to CONVERT METRIC LENGTHs or WEIGHTs or SPEEDs or TEMPERATUREs (HYPERLINKS for same single spreedsheet see immediately below):


    [URL="http://www.srands.co.uk/Weight,Length,Temperature,Speed&MetresM2_AutoCalc.xls"]METRIC autocalc spreedsheet[/URL] for excellent quick conversion figures.


    http://www.srands.co.uk/Weight…eed&MetresM2_AutoCalc.xls


    Any questions, comments or suggestions to make this a even more comprehensive spreedsheet, just post to this message thread.


    Cheers


    Stephan Rands


    www.srands.co.uk


    [URL="http://www.srands.co.uk/Weight,Length,Temperature,Speed&MetresM2_AutoCalc.xls"]METRIC autocalc[/URL]


    MPG autocalc


    MTB routes in/near Hull, Humberside


    ELEC GAS WATER autocalc: 1st tab, scroll down


    FUSEBOX MCB autocalc: 3rd & 4th tab


    RING AMP autocalc: 1st tab

    Re: Calculate amperage based on variables wire length and max amps at sockets


    Hi Pangolin, PDF zip file of my recent xls file to you, attached.

    The equation in your recent files weren't visible when I converted the file to xls.

    Simply, at the end equation after Kirchoff I want to calc the distributed/spreaded AMPAGE of the RING CIRCUIT, as "A" single total.

    Q. CAN YOU SHOW A SIMPLE CALC/FORMULA for distributed/spreaded AMPAGE? That is what equation, is needed to follow the Kirchoff end values/figures (14.33,2.33,-11.67,-17.67), that was in your original spreadsheet.

    In the example the total amps is 32A, which would normally need 4mm SKT WIRE in a RADIAL circuit.
    If for example the end conversion was an AMPAGE of say 20A, then either RINGED CIRCUIT of 1.5mm SKT WIRE or RINGED CIRCUIT of 2.5mm SKT WIRE.

    Understand?

    CABLE/WIRE GUIDE OF SKT WIRE (TWIN & EARTH):
    SOCKET WIRE REFERENCE GUIDE for AC 240V1mm15A3600w1.5mm20A4800w2.5mm27A6480w4mm36A8640w6mm46A11040w10mm63A15120w16mm85A20400w

    Cheers

    Stephan


    Cheers

    Stephan

    Re: Calculate amperage based on variables wire length and max amps at sockets


    Hi Pangolin, file attached. Yes I agree the Kirchoff does need some optimisation techniques! An end equation because the end figures of the Kirchoff equation, not too sure what to do next with these!

    Really looking for an end calc for the KIRCHOFF per skt ampages as per btm of pg4 of niceic tech manual) for RING mains to establish which socket wire to use! When:
    ~ AMPAGE maximum per socket is known and

    ~ METRES length between sockets is known.


    Obviously spreading the AMPAGE load over a RING CIRCUIT, in theory in comparison to RADIAL, the RING circuit should be distributing the load. So lets say the IEE 17th Edition Pg44 was unknown, could you show your workings for 32A total in this example (see Spreadsheet example, see 1st tab), the only equation/formula/calculation that is referred to that I can see is KIRCHOFF, but given the instance in the NICEIC Tech Manual (At the end of Pg4) , this doesn't appear to be complete, that is how to calculate the AMPAGE TOTAL distributed equivalent? I have calculated 20A in cell B20, can you comment on this?


    As I said above, I know the KIRCHOFF equation (see Spreadsheet example, see 1st tab), but surely this equation isn't complete, the end equation per skt includes NEGATIVE figures. If these KIRCHOFF end equation skt ampages, are added together, the TOTAL AMPAGE is less then the original total AMPAGE of all skts, is this AMPAGE figure thought to be the AMPAGE that the SKT WIRE is specified to? Obviously the electricity in WATTS or KILOWATTS consumed isn't less, but the flow of electric (The not visible electrons: anions - and cations +) is distributed over the skt circuit length and the ring return skt wire length. Hence the load may be less on the individual skt wires, hence in the example instead of using 4mm, possibly 2.5mm?


    Also RING CIRCUITS, METRE LENGTH between SKTS maybe known, but for many circuits the AMPAGE TOTAL will be unknown, I guess an "AVERAGE" AMPAGE MAXIMUM PER SKT, instead of an actual figure.
    Or how do you (or your offices calculate what skt wire to use in a RING circuit when AMPAGE MAXIMUM PER SKT is unknown? When I ask electricians they say they don't do that, the office does it all for them with a program, so they don't have to do any calcs onsite, so they say.


    Many thanks.

    Cheers


    Stephan

    SPREADSHEET