+ Reply to Thread
Results 1 to 5 of 5

Help with Excel Formulas

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    Buna
    MS-Off Ver
    2010
    Posts
    8

    Help with Excel Formulas

    I am creating a spreadsheet to help me quote electrical underground work. The spreadsheet allows me to enter information about all of the electrical conduit that will be in the ground (length, depth, pipe size, etc.), which is all important information and needed for accurate pricing. The problem I can't seem to figure out is that multiple rows can be in the same trench so I only need to use the longest run (all others will use same hole), but I need most of the other information in those rows. If anyone can help me with a formula that can look at matching values in "Trench Number" column, then take highest value in "Trench/Hole Length" column and delete or zero out any other values with same "Trench Number". If you can offer any help, I greatly appreciate it!

    Area Trench Number Trench/Hole Length Depth-Inches

    I have attached a sample spreadsheet for review.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,279

    Re: Help with Excel Formulas

    I would use a column of formulas to find the longest run for each trench - here is a working column of formulas:

    =MAX(IF(B:B=B3,C:C))

    There are array formulas that are entered using Ctrl-Shift-Enter
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,943

    Re: Help with Excel Formulas

    Named Ranges:

    CostPerFoot: =Sheet1!$F$2:$F$41
    Depth: =Sheet1!$E$2:$E$41
    PricingLength: =Sheet1!$D$2:$D$41
    TrenchHours: =Sheet1!$H$2:$H$41
    TrenchLength: =Sheet1!$C$2:$C$41
    TrenchNumber: =Sheet1!$B$2:$B$41
    TrenchTotal: =Sheet1!$G$2:$G$41
    WorkArea: =Sheet1!$A$2:$A$41

    Replace cost/ft
    =IF(E4=$AC$3,$AD$3,IF(E4=$AC$4,$AD$4,IF(E4=$AC$5,$AD$5,IF(E4=$AC$6,$AD$6,IF(E4=$AC$7,$AD$7,0)))))
    with:
    Please Login or Register  to view this content.
    max lenght per trench using array formula in inserted helper column D:
    Please Login or Register  to view this content.
    I don't know how you will calculate trench total, either trench/hole length (col c) * col f, or, pricing length (helper col d) * col f?
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    04-19-2017
    Location
    Buna
    MS-Off Ver
    2010
    Posts
    8

    Re: Help with Excel Formulas

    Wow! I really appreciate the help! Thank you very much! I will try these tonight.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Help with Excel Formulas

    Hello Kbass & Welcome to the Forum,

    Administrative Note:
    • We would love to continue to help you with your query, but first, before we can proceed…
    • Please see Forum Rule #1 about proper thread titles and adjust accordingly...
    HTH
    Regards, Jeff

+ 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: 11-01-2014, 09:34 PM
  2. [SOLVED] Excel 2003 formulas not working in later excel versions
    By jumonjii in forum Excel General
    Replies: 14
    Last Post: 04-16-2014, 10:44 PM
  3. Replies: 10
    Last Post: 08-20-2013, 01:02 PM
  4. Replies: 2
    Last Post: 07-12-2013, 02:34 AM
  5. Replies: 1
    Last Post: 04-15-2013, 01:30 AM
  6. Needed help-German Excel 2010 Formulas vs. English Excel 2007
    By excelianer in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-29-2012, 05:28 AM
  7. [SOLVED] Excel 2007 : Excel copies only text values, no formulas or format
    By tuscan in forum Excel General
    Replies: 3
    Last Post: 08-03-2012, 06:55 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