+ Reply to Thread
Results 1 to 13 of 13

sumif countif

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    sumif countif

    Hello,
    I am working with a sheet of freight data.

    I need to know a few things -
    How many times we used a carrier, how much weight was shipped and
    how much money we paid that carrier.

    furthermore, I then to need to separate by inbound or outbound (mode) and total it.

    My data is:
    Column K Column L Column M Column N
    CARRIER NAME AMT $PAID SHIP WGT. MODE
    AMERICAN 900.00 6100 O

    The rows run until 1400.

    I used =SUMIF(K1:K1500,"AMERICAN",L1:L1500) in Column O to get the total amount paid by carrier (I put 1500 to be safe to include all)

    So do I have to manually type in each carrier for this?

    Thank you
    Attached Files Attached Files
    Last edited by sabrinigreen; 10-18-2011 at 01:51 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: sumif countif

    Probably easiest to use a Pivot Table

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: sumif countif

    Have you considered using a pivot table? Quick, easy, and very customizable. Click anywhere in your data, click insert pivot table, choose your data range (by default it will grab the current region of whatever active cell you chose), choose a location, add fields, choose which fields you want to total, and voila - you're done!
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: sumif countif

    Upload a sample if you can, it will be easier but yeas for the Sumif you will need a different name input for each carrier
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Not sure how to upload something here. But I will try a pivot table. Never used it before. Let's see how this goes.

    CARRIER NAME AMT $PAID SHIP WGT. LBS. MODE
    AMERICAN TRANSPORT GROUP, LLC 375.00 1000 T
    AVALON EXPRESS INC. 220.77 1000 O
    AVALON EXPRESS INC. 224.78 1000 O
    C.H. ROBINSON CO 150.00 1000 O
    J & L 150.00 1000 O

  6. #6
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Holy Cow, the pivot table is awesome!!!!!
    Thank you!

  7. #7
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Okay, what the pivot table doesn't do, though, is tell me how many times we used each carrier.

    And can I divide it by date, for example, adding July - September only?

  8. #8
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Cool, what the pivot table doesn't do is tell us how many time we used each carrier and I also need to know how many times we used each carrier outbound and inbound (mode).

    Thanks!

  9. #9
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: sumif countif

    use the date as a report filter. Drag the carrier into the sum area and it will give a count. Make sure to leave the carrier in the row label area for flagging your data. You could add row labels for whatever field tracks outbound/inbound, and drag that into the sum area as well. If that's not too clear, try uploading a sample book and one of use will play with it.

  10. #10
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: sumif countif

    You're welcome. Thanks for the rep.

    By default, a Pivot Table sums numeric values but I'm pretty sure you can also get it to count them.

    Pivot Tables and their capabilities are not a strength of mine but you should be able to do it.

    Post a sample workbook if you need more assistance.

    Regards

  11. #11
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Okay, I added a sample database to my first post - I can't seem to 'drag' the carrier to the sum area.

  12. #12
    Registered User
    Join Date
    09-28-2011
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: sumif countif

    Okay, I figured out how to drag the carrier to the sum box.
    I figured out how to show only inbound or outbound or both.
    Now is there anyway to get it in the same row? Or if I do it separately, like here only using outbound, can I get rid of this duplicate row?
    Attached Files Attached Files

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,377

    Re: sumif countif

    See attached
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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