+ Reply to Thread
Results 1 to 5 of 5

Returning the sum of all values for multiple instances of a column search

Hybrid View

david.frame Returning the sum of all... 10-05-2012, 12:12 PM
alansidman Re: Returning the sum of all... 10-05-2012, 12:24 PM
david.frame Re: Returning the sum of all... 10-05-2012, 12:28 PM
Econocrat Re: Returning the sum of all... 10-06-2012, 01:11 AM
david.frame Re: Returning the sum of all... 10-06-2012, 08:25 AM
  1. #1
    Registered User
    Join Date
    09-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    9

    Returning the sum of all values for multiple instances of a column search

    Sorry guys I bet that title was confusing. What I'm trying to do is search a column for all instances of a value. This is very difficult for me to explain in writing so I am attaching a sample spreadsheet.

    What i need is to search a through a database of cables. each row entry has a "routing length" and a "cable type". I want to search for a particular "cable type" and sum up all of the "routing lengths" that have that type. I am doing it by hand right now by applying a filter to the "cable type", copying the filtered results into a separate table, and then summing the "routing lengths" column.

    Is there any way I can do this with a formula?

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: Returning the sum of all values for multiple instances of a column search

    There is no attachment. But if I understand correctly, you should be able to do this using either SumIfs or SumIf formulae.

    Look here for a short tutorial.

    http://www.techonthenet.com/excel/formulas/sumif.php
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Returning the sum of all values for multiple instances of a column search

    Sorry about that. I got distracted at work and forgot to upload the sample.

    Thanks for the link i'll check that out!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-17-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Returning the sum of all values for multiple instances of a column search

    It sounds like you want to use the countif function. For example, in AH2 I used the CountIf to find the instances of "BK-1 (BN)"

    =COUNTIF(C1:C27,"BK-1 (BN)")

    =7
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-28-2012
    Location
    Atlanta
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Returning the sum of all values for multiple instances of a column search

    sumif was successful. Prolem solved!

    Thanks for the help guys!

+ 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