+ Reply to Thread
Results 1 to 9 of 9

Counting the number of times an item was sold but only if it has been paid for

  1. #1
    Registered User
    Join Date
    11-12-2018
    Location
    Portsmouth, England
    MS-Off Ver
    2019
    Posts
    12

    Counting the number of times an item was sold but only if it has been paid for

    I'm trying to count the number of times an individual item was sold by using countif. I have a countif formula which returns all the times the items were used in the table but now I want it to only count them if the corresponding cell in the paid? column returns true.

    unfortunately I am not able to show pictures of this or use any link to help solve my problem so sorry if my description is lacklustre and please feel free to ask me any questions

    thank you for the help,

    Michael
    Last edited by JustMike; 04-27-2019 at 10:15 AM.

  2. #2
    Registered User
    Join Date
    11-12-2018
    Location
    Portsmouth, England
    MS-Off Ver
    2019
    Posts
    12

    Re: Counting the number of times an item was sold but only if it has been paid for

    I guess it lets me submit images through a reply though...

    Attachment 621731

    Attachment 621732

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Counting the number of times an item was sold but only if it has been paid for

    You can use COUNTIFS with 2 criteria - one criterion is the item, the other criterion is if the paid column is TRUE.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    11-12-2018
    Location
    Portsmouth, England
    MS-Off Ver
    2019
    Posts
    12

    Re: Counting the number of times an item was sold but only if it has been paid for

    Quote Originally Posted by Pete_UK View Post
    You can use COUNTIFS with 2 criteria - one criterion is the item, the other criterion is if the paid column is TRUE.

    Hope this helps.

    Pete
    thanks Pete, I did try this but it just came up with an error

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,518

    Re: Counting the number of times an item was sold but only if it has been paid for

    What Pete mentioned should work, I know I can't open either of your attachments, when I click on them I get an "invalid attachment" note. You should be able to set up a small representative sample workbook WITH expected results and upload it using the "Go Advanced" button under this window. Then scroll down and click on the blue "manage attachments" and it will open a window for you to browse to the workbook and upload it, then close the window and submit reply.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  6. #6
    Registered User
    Join Date
    11-12-2018
    Location
    Portsmouth, England
    MS-Off Ver
    2019
    Posts
    12

    Re: Counting the number of times an item was sold but only if it has been paid for

    Alright, I hope this has worked. to repeat my question again for clarity, I am trying to only get the names to count when the corresponding Paid? column is true.

    Thank you
    Attached Files Attached Files

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,518

    Re: Counting the number of times an item was sold but only if it has been paid for

    this is one way...
    =COUNTIFS($G$6:$G$21,C7,$F$6:$F$21,TRUE)+COUNTIFS($H$6:$H$21,C7,$F$6:$F$21,TRUE)+COUNTIFS($I$6:$I$21,C7,$F$6:$F$21,TRUE)+COUNTIFS($J$6:$J$21,C7,$F$6:$F$21,TRUE)
    I know there is an easier way but I'm working from the iMac version of excel which isn't as flexible as excel for PC.

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,504

    Re: Counting the number of times an item was sold but only if it has been paid for

    Try SUMPRODUCT:
    Please Login or Register  to view this content.
    Quang PT

  9. #9
    Registered User
    Join Date
    11-12-2018
    Location
    Portsmouth, England
    MS-Off Ver
    2019
    Posts
    12

    Re: Counting the number of times an item was sold but only if it has been paid for

    Thank you for you're replies, Sambo kid and bebo021999. Both of your solutions worked but the sumproduct is more efficient so ill be using that.

    Thank you again

+ 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: 5
    Last Post: 03-01-2017, 05:41 PM
  2. Auto decrease quantity of an item when the item is sold.
    By acidust in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-11-2016, 07:46 PM
  3. [SOLVED] The number of times this product sold monthly
    By makinmomb in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-23-2014, 08:00 AM
  4. Replies: 1
    Last Post: 11-01-2012, 08:37 AM
  5. Counting how many times each item appearss in a Column
    By Aiden_C in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2012, 07:01 PM
  6. [SOLVED] Counting # of Times an Item Shows Up in a Table
    By Ralph in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-18-2005, 10:30 AM
  7. Counting the Number of Unique Items Sold by Each Salesperson
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 06:14 AM

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