+ Reply to Thread
Results 1 to 6 of 6

SUMIF formula that counts

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2015
    Location
    Concord, CA
    MS-Off Ver
    2013
    Posts
    55

    SUMIF formula that counts

    I am trying to structure a formula that will count and sum specific values. More details in the spreadsheet attached.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIF formula that counts

    I'd combine COUNTIF, SUMIF, and maybe some SUMPRODUCT.

    I used some code to kill all the subtotals first. Data and it's summaries should be separate.


    Sub deleter()
    For i = 3173 To 6 Step -1
        If Cells(i, 1) = "" Then Range(Cells(i, 1), Cells(i, 5)).Delete Shift:=xlUp
    Next
    End Sub
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    06-22-2015
    Location
    Concord, CA
    MS-Off Ver
    2013
    Posts
    55

    Re: SUMIF formula that counts

    How do I use the same code you did?

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIF formula that counts

    Go to VB Editor with Alt+F11, Insert->Module, paste the code there, close that window, Alt+F8, and run it.

    I just slapped that code together to make short work of clearing all of the spaces in between your data.

  5. #5
    Registered User
    Join Date
    06-22-2015
    Location
    Concord, CA
    MS-Off Ver
    2013
    Posts
    55

    Re: SUMIF formula that counts

    Thank you. The VBA and formulas work great. Rep Added!

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: SUMIF formula that counts

    Thank you. Glad I could help out.

+ 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. [SOLVED] I need to add additional criteria to an array Sumif that counts individual values
    By dc0822 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-20-2015, 04:24 PM
  2. [SOLVED] Formula that counts same value
    By Oeysbrei in forum Excel General
    Replies: 8
    Last Post: 04-29-2012, 01:01 AM
  3. Replies: 9
    Last Post: 03-16-2010, 03:34 PM
  4. formula that counts
    By excellentexcel in forum Excel General
    Replies: 6
    Last Post: 01-13-2009, 09:48 AM
  5. [SOLVED] Need a formula that counts orders
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM
  6. [SOLVED] Need a formula that counts orders
    By Watercolor artist in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. Need a formula that counts orders
    By Watercolor artist in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-24-2005, 12:05 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