+ Reply to Thread
Results 1 to 10 of 10

Sumif & counta combined

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Sumif & counta combined

    Hi,

    I have a situation where I want to count number of products produced by each factory in Period to date, Last year to date and budgets.....

    Column A contains name of product, Column B contains name of Factory where individual product produced. Column C to E contains the volume produced in each factory in month to date, last year to date & budget.

    The problem I have is some products produced in current month but not necessary produced in last year therefore column C & D have variable blank cells.

    I want to create a table that shows no of products produced by each factory in MTD, YTD & so on...

    I think COUNTA & SUMIF combined formula can work.

    Is there any one can help

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumif & counta combined

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: Sumif & counta combined

    I can't upload the file from my work PC, it is restricted for security reasons...Is there anything you can help without having the sample file? otherwise I will attach the mock spread sheet when I go home in the evening.

    Thanks

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif & counta combined

    Hi,

    Have you tried a Pivot Table?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: Sumif & counta combined

    Yes, I have tried Pivot table. It's very manual process as there are so many factories, I have to filter each factory on the pivot table and enter the amount in my table manually for MTD, LYTD & Budgets to date figures. I need more automated results.

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumif & counta combined

    In that case, best to wait for this mock spreadsheet as it will be very difficult to give you an answer without seeing the layout.

    Regards

  7. #7
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: Sumif & counta combined

    okay thanks...

  8. #8
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: Sumif & counta combined

    Hi,

    I have attached the mock spread sheet. I want that excel match the factory name in column B in data tab to the factory name in Column A in Summary tab, count the number of non blank cells in column C and return the result in column B in summary tab.

    Thanks in advance for the help.
    Attached Files Attached Files

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sumif & counta combined

    is this when the filter is on or off? ps there is no sheet called data!

  10. #10
    Registered User
    Join Date
    06-27-2012
    Location
    Dublin
    MS-Off Ver
    Excel 2016
    Posts
    40

    Re: Sumif & counta combined

    The spread sheet I attached is has sheet3 instead of data sheet. You can take the filters out. Excel formula should returns the same results as if I use the filters on column B. For example If I filter column B by Factory A and use the formula CountA(C:C) the result would be 39.

+ 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