+ Reply to Thread
Results 1 to 11 of 11

Counting the number of items on an invoice?

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Counting the number of items on an invoice?

    Hey guys,

    I would like to know how many items on on each invoice. Unfortunately my sales report shows all the items in one big long list. Is there a formula I could use in a helper column that would work this our for me?

    Any help appreciated,

    Sample attached.

    Thanks,

    sampledata_invoicecount.xlsx

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,748

    Re: Counting the number of items on an invoice?

    you can add this to a new sheet 2 cell A2
    =INDEX(Sheet1!$A$3:$A$400, MATCH(0, COUNTIF($A1:A$1, Sheet1!$A$3:$A$400), 0))
    and use Shift+control+enter to make an array formula and get {} around the formula

    that will extract a unique value from the invoice numbers

    then in B2 put
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$E$3:$E$400,"<>Standard postage",Sheet1!$E$3:$E$400,"<>",Sheet1!$E$3:$E$400, "<>NEXT WORKING DAY - Order <2pm")

    this will count the items for each invoice number and exclude - blank lines, standard postage and next working day

    BUT i dont know how many line items you have that you want excluded - see attached
    unless theres a column thats i can use thats identifies the items you want to count

    i notice you have a category column that is showing postage (includes standard .... and next working....) - is that applicable to all other types you dont want to include - we could use that to simplify
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$C$3:$C$400,"<>postage",Sheet1!$E$3:$E$400,"<>")
    Attached Files Attached Files
    Last edited by etaf; 03-22-2013 at 10:26 AM.

  3. #3
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi thanks for the help.

    Is there a more simpler way just to count all the items on the invoice? I can just minus the 1 of this total as every invoice will have shipping on it.

    Thanks,


    Quote Originally Posted by etaf View Post
    you can add this to a new sheet 2 cell A2
    =INDEX(Sheet1!$A$3:$A$400, MATCH(0, COUNTIF($A1:A$1, Sheet1!$A$3:$A$400), 0))
    and use Shift+control+enter to make an array formula and get {} around the formula

    that will extract a unique value from the invoice numbers

    then in B2 put
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$E$3:$E$400,"<>Standard postage",Sheet1!$E$3:$E$400,"<>",Sheet1!$E$3:$E$400, "<>NEXT WORKING DAY - Order <2pm")

    this will count the items for each invoice number and exclude - blank lines, standard postage and next working day

    BUT i dont know how many line items you have that you want excluded - see attached
    unless theres a column thats i can use thats identifies the items you want to count

    i notice you have a category column that is showing postage (includes standard .... and next working....) - is that applicable to all other types you dont want to include - we could use that to simplify
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$C$3:$C$400,"<>postage",Sheet1!$E$3:$E$400,"<>")

  4. #4
    Registered User
    Join Date
    01-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Counting the number of items on an invoice?

    Hello ,

    You can just use pivot function to know the invoice details as shown in the attached excel. Let me know if you need any further assistance.

    Regards
    Harini.S

  5. #5
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi thanks for the help.

    Is there a more simpler way just to count all the items on the invoice? I can just minus the 1 of this total as every invoice will have shipping on it.

    Thanks,


    Quote Originally Posted by etaf View Post
    you can add this to a new sheet 2 cell A2
    =INDEX(Sheet1!$A$3:$A$400, MATCH(0, COUNTIF($A1:A$1, Sheet1!$A$3:$A$400), 0))
    and use Shift+control+enter to make an array formula and get {} around the formula

    that will extract a unique value from the invoice numbers

    then in B2 put
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$E$3:$E$400,"<>Standard postage",Sheet1!$E$3:$E$400,"<>",Sheet1!$E$3:$E$400, "<>NEXT WORKING DAY - Order <2pm")

    this will count the items for each invoice number and exclude - blank lines, standard postage and next working day

    BUT i dont know how many line items you have that you want excluded - see attached
    unless theres a column thats i can use thats identifies the items you want to count

    i notice you have a category column that is showing postage (includes standard .... and next working....) - is that applicable to all other types you dont want to include - we could use that to simplify
    =COUNTIFS(Sheet1!$A$3:$A$400,Sheet2!A2,Sheet1!$C$3:$C$400,"<>postage",Sheet1!$E$3:$E$400,"<>")

  6. #6
    Registered User
    Join Date
    01-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Counting the number of items on an invoice?

    hello,

    let me know whether count formula works over? Please find the formula updated in the "data" tab in the cell A27. If this is not what you want could you please let me know what you want exactly to work over?

  7. #7
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,748

    Re: Counting the number of items on an invoice?

    Is there a more simpler way just to count all the items on the invoice
    what do you mean by simpler??

  8. #8
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hey, that is just counting the transaction numbers. Not what I need unfortunately. Thanks anyway.

    Quote Originally Posted by Harini_Tiger View Post
    hello,

    let me know whether count formula works over? Please find the formula updated in the "data" tab in the cell A27. If this is not what you want could you please let me know what you want exactly to work over?

  9. #9
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi, whenever I paste that formula into Cell A2 on the real report (=INDEX(Sheet1!$A$3:$A$400, MATCH(0, COUNTIF($A1:A$1, Sheet1!$A$3:$A$400), 0))

    Excel wants me to open a new file? No idea why.

    Quote Originally Posted by etaf View Post
    what do you mean by simpler??

  10. #10
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi, whenever I paste that formula into Cell A2 on the real report (=INDEX(Sheet1!$A$3:$A$400, MATCH(0, COUNTIF($A1:A$1, Sheet1!$A$3:$A$400), 0))

    Excel wants me to open a new file? No idea why.

    Quote Originally Posted by etaf View Post
    what do you mean by simpler??

  11. #11
    Registered User
    Join Date
    01-08-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Counting the number of items on an invoice?

    In the sheet which i send over to you previously does not have sheet 1. if the file which you have does not have sheet 1 then obviously it will open a new file.

  12. #12
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi Tiger,

    I was missing something blatantly obvious, there is a qty field in the actual report so I've just used match formula to link it up with the corresponding transaction. =IF($C4="","",INDEX('RMS Sales'!$F:$F,MATCH($C4,'RMS Sales'!$Q:$Q,0),1))

    Works a treat. Thanks for you help though.


  13. #13
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2013
    Posts
    138

    Re: Counting the number of items on an invoice?

    Hi Tiger,

    I was missing something blatantly obvious, there is a qty field in the actual report so I've just used match formula to link it up with the corresponding transaction. =IF($C4="","",INDEX('RMS Sales'!$F:$F,MATCH($C4,'RMS Sales'!$Q:$Q,0),1))

    Works a treat. Thanks for you help though.


+ 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