How to Get Number of Invoices each Vendor

aamirgee

New Member
Joined
Jul 3, 2023
Messages
18
Office Version
  1. 2021
Platform
  1. Windows
1729677659167.png

Hello! I want to count total Number of Invoices for each Vendors & also want to count how many invoices have payment method Cash, Transfer and Others.

Help me. (This is my 1st Question)
 
Thanks for getting XL2BB going and providing some sample data. I'm wondering why it is missing column A. Isn't that an important column in relation to your question?

Also, unless your question has now been resolved, it might help if you addressed my earlier question ..
I am surprised Column A missed. Please check now.

INV#DATEITEM DESCRIPTIONQTYRATETOTALVENDORP.METHODVENDOR# INVOICESCASHTRANSFER
N-3528903/06/2024HP Cartridge 912(BLK)1155.00155.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(CYN)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(YLW)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(MGN)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 650(CLR)150.3150.31Universal ComputersCASH
N-3528903/06/2024HP Cartridge 650(BLK)157.2157.21Universal ComputersCASH
2.3E+0720/05/2024POSBYTZ Additional User for POS3450.001350.00MYTM Information Tech LLCTRANSFER
N-3584123/06/2024HP Cartridge 912(BLK)1154.97154.97Universal ComputersCASH
N-3584123/06/2024HP Cartridge 912(CYN)178.1978.19Universal ComputersCASH
N-3599130/06/2024HDD CASE M.2 2 IN 1 MD08ME169.0069.00Universal ComputersCASH
N-3613107/03/2024LAPTOP RAM DDR3 8GB1115.00115.00Universal ComputersCASH
N-3612007/03/2024LAPTOP HP Ci7-1355 16GB/512SSD/13th Gen12650.002650.00Universal ComputersCASH
2.3E+0709/09/2024POSBYTZ Billing Software 6 months11725.001725.00MYTM Information Tech LLCTRANSFER
351529/07/2024Microsoft Exchange Online (PLAN1)163.2563.25Modern Gates Co. Ltd.TRANSFERNow I want first filter Vendors and copy to K3. 2nd Number of Invoces for each Vendor. 3rd Number of Invoces in Cash OR Transfer
368209/09/2024Microsoft Exchange Online (PLAN1)134.5034.50Modern Gates Co. Ltd.TRANSFER
24-200-00002826/09/2024PRINTER REPAIRING1270.00270.00Afzal Computers JeddahCASH
24-200-00002926/09/2024EZI PRINT 150A TONER190.8590.85Afzal Computers JeddahCASH
N-3949330/09/2024HP Cartridge 903(B)1185.00185.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(Y)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(C)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(M)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(BLK)1149.50149.50Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(CYN)178.2078.20Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(YLW)178.2078.20Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(MGN)178.2078.20Universal ComputersCASH
N-3949330/09/2024PRINTCO TONER 17A BLK240.0080.00Universal ComputersCASH
N-3949330/09/2024PRINTCO TONER 05A/80A139.8839.88Universal ComputersCASH
S24-8815/10/2024Microsoft Exchange Online (PLAN1)113724.1013724.10Comlab Information TechnologyTRANSFER
391817/10/2024HP Cartridge 650(CLR)260.00120.00Aalam Bila HadoodCASH
391817/10/2024HP Cartridge 650(BLK)165.0065.00Aalam Bila HadoodCASH
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You can try :
Book3
BCDEFGHIJKLMN
2DATEITEM DESCRIPTIONQTYRATETOTALVENDORP.METHODVENDOR# INVOICESCASHTRANSFER
303/06/2024HP Cartridge 912(BLK)1155155Universal ComputersCASHAalam Bila Hadood22
403/06/2024HP Cartridge 912(CYN)17878Universal ComputersCASHAfzal Computers Jeddah22
503/06/2024HP Cartridge 912(YLW)17878Universal ComputersCASHComlab Information Technology11
603/06/2024HP Cartridge 912(MGN)17878Universal ComputersCASHModern Gates Co. Ltd.22
703/06/2024HP Cartridge 650(CLR)150.3150.31Universal ComputersCASHMYTM Information Tech LLC22
803/06/2024HP Cartridge 650(BLK)157.2157.21Universal ComputersCASHUniversal Computers2121
920/05/2024POSBYTZ Additional User for POS34501350MYTM Information Tech LLCTRANSFERTOTAL30255
1023/06/2024HP Cartridge 912(BLK)1154.97154.97Universal ComputersCASH
1123/06/2024HP Cartridge 912(CYN)178.1978.19Universal ComputersCASH
1230/06/2024HDD CASE M.2 2 IN 1 MD08ME16969Universal ComputersCASH
1307/03/2024LAPTOP RAM DDR3 8GB1115115Universal ComputersCASH
1407/03/2024LAPTOP HP Ci7-1355 16GB/512SSD/13th Gen126502650Universal ComputersCASH
1509/09/2024POSBYTZ Billing Software 6 months117251725MYTM Information Tech LLCTRANSFER
1629/07/2024Microsoft Exchange Online (PLAN1)163.2563.25Modern Gates Co. Ltd.TRANSFER
1709/09/2024Microsoft Exchange Online (PLAN1)134.534.5Modern Gates Co. Ltd.TRANSFER
1826/09/2024PRINTER REPAIRING1270270Afzal Computers JeddahCASH
1926/09/2024EZI PRINT 150A TONER190.8590.85Afzal Computers JeddahCASH
2030/09/2024HP Cartridge 903(B)1185185Universal ComputersCASH
2130/09/2024HP Cartridge 903(Y)18080Universal ComputersCASH
2230/09/2024HP Cartridge 903(C)18080Universal ComputersCASH
2330/09/2024HP Cartridge 903(M)18080Universal ComputersCASH
2430/09/2024HP Cartridge 912(BLK)1149.5149.5Universal ComputersCASH
2530/09/2024HP Cartridge 912(CYN)178.278.2Universal ComputersCASH
2630/09/2024HP Cartridge 912(YLW)178.278.2Universal ComputersCASH
2730/09/2024HP Cartridge 912(MGN)178.278.2Universal ComputersCASH
2830/09/2024PRINTCO TONER 17A BLK24080Universal ComputersCASH
2930/09/2024PRINTCO TONER 05A/80A139.8839.88Universal ComputersCASH
3015/10/2024Microsoft Exchange Online (PLAN1)11372413724Comlab Information TechnologyTRANSFER
3117/10/2024HP Cartridge 650(CLR)260120Aalam Bila HadoodCASH
3217/10/2024HP Cartridge 650(BLK)16565Aalam Bila HadoodCASH
Sheet1
Cell Formulas
RangeFormula
K3:N8K3=LET(vend_list,G3:G32,vendor,SORT(UNIQUE(vend_list)),Pay_Method,H3:H32,HSTACK(vendor,COUNTIF(vend_list,vendor),COUNTIFS(vend_list,vendor,Pay_Method,M2),COUNTIFS(vend_list,vendor,Pay_Method,N2)))
L9:N9L9=SUM(L3:L8)
Dynamic array formulas.
sorry i missed the Invoice Column .
INV#DATEITEM DESCRIPTIONQTYRATETOTALVENDORP.METHODVENDOR# INVOICESCASHTRANSFER
N-3528903/06/2024HP Cartridge 912(BLK)1155.00155.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(CYN)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(YLW)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 912(MGN)178.0078.00Universal ComputersCASH
N-3528903/06/2024HP Cartridge 650(CLR)150.3150.31Universal ComputersCASH
N-3528903/06/2024HP Cartridge 650(BLK)157.2157.21Universal ComputersCASH
2.3E+0720/05/2024POSBYTZ Additional User for POS3450.001350.00MYTM Information Tech LLCTRANSFER
N-3584123/06/2024HP Cartridge 912(BLK)1154.97154.97Universal ComputersCASH
N-3584123/06/2024HP Cartridge 912(CYN)178.1978.19Universal ComputersCASH
N-3599130/06/2024HDD CASE M.2 2 IN 1 MD08ME169.0069.00Universal ComputersCASH
N-3613107/03/2024LAPTOP RAM DDR3 8GB1115.00115.00Universal ComputersCASH
N-3612007/03/2024LAPTOP HP Ci7-1355 16GB/512SSD/13th Gen12650.002650.00Universal ComputersCASH
2.3E+0709/09/2024POSBYTZ Billing Software 6 months11725.001725.00MYTM Information Tech LLCTRANSFER
351529/07/2024Microsoft Exchange Online (PLAN1)163.2563.25Modern Gates Co. Ltd.TRANSFERNow I want first filter Vendors and copy to K3. 2nd Number of Invoces for each Vendor. 3rd Number of Invoces in Cash OR Transfer
368209/09/2024Microsoft Exchange Online (PLAN1)134.5034.50Modern Gates Co. Ltd.TRANSFER
24-200-00002826/09/2024PRINTER REPAIRING1270.00270.00Afzal Computers JeddahCASH
24-200-00002926/09/2024EZI PRINT 150A TONER190.8590.85Afzal Computers JeddahCASH
N-3949330/09/2024HP Cartridge 903(B)1185.00185.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(Y)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(C)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 903(M)180.0080.00Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(BLK)1149.50149.50Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(CYN)178.2078.20Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(YLW)178.2078.20Universal ComputersCASH
N-3949330/09/2024HP Cartridge 912(MGN)178.2078.20Universal ComputersCASH
N-3949330/09/2024PRINTCO TONER 17A BLK240.0080.00Universal ComputersCASH
N-3949330/09/2024PRINTCO TONER 05A/80A139.8839.88Universal ComputersCASH
S24-8815/10/2024Microsoft Exchange Online (PLAN1)113724.1013724.10Comlab Information TechnologyTRANSFER
391817/10/2024HP Cartridge 650(CLR)260.00120.00Aalam Bila HadoodCASH
391817/10/2024HP Cartridge 650(BLK)165.0065.00Aalam Bila HadoodCASH
 
Upvote 0
I am surprised Column A missed. Please check now.
Yes, got column A as well now. (y)

But ..
  1. Better to use Mini Sheet than Table Only as we can then see column letters, rows numbers, any formulas etc.

  2. Still no answer to the question that I have now asked twice. :(
 
Upvote 0
Thanks for getting XL2BB going and providing some sample data. I'm wondering why it is missing column A. Isn't that an important column in relation to your question?

Also, unless your question has now been resolved, it might help if you addressed my earlier question ..
yes , Universal computer 6 rows with same invoice # count as 1 Invoice.
 
Upvote 0
yes , Universal computer 6 rows with same invoice # count as 1 Invoice.
Thanks.
See if this does what you want.

24 10 24.xlsm
AGHIJKLMN
1
2INV#VENDORP.METHODVENDOR# INVOICESCASHTRANSFER
3N-35289Universal ComputersCASHUniversal Computers660
4N-35289Universal ComputersCASHMYTM Information Tech LLC101
5N-35289Universal ComputersCASHModern Gates Co. Ltd.202
6N-35289Universal ComputersCASHAfzal Computers Jeddah220
7N-35289Universal ComputersCASHComlab Information Technology101
8N-35289Universal ComputersCASHAalam Bila Hadood110
92.30E+07MYTM Information Tech LLCTRANSFER
10N-35841Universal ComputersCASH
11N-35841Universal ComputersCASH
12N-35991Universal ComputersCASH
13N-36131Universal ComputersCASH
14N-36120Universal ComputersCASH
152.30E+07MYTM Information Tech LLCTRANSFER
163515Modern Gates Co. Ltd.TRANSFER
173682Modern Gates Co. Ltd.TRANSFER
1824-200-000028Afzal Computers JeddahCASH
1924-200-000029Afzal Computers JeddahCASH
20N-39493Universal ComputersCASH
21N-39493Universal ComputersCASH
22N-39493Universal ComputersCASH
23N-39493Universal ComputersCASH
24N-39493Universal ComputersCASH
25N-39493Universal ComputersCASH
26N-39493Universal ComputersCASH
27N-39493Universal ComputersCASH
28N-39493Universal ComputersCASH
29N-39493Universal ComputersCASH
30S24-88Comlab Information TechnologyTRANSFER
313918Aalam Bila HadoodCASH
323918Aalam Bila HadoodCASH
Invoices
Cell Formulas
RangeFormula
K3:K8K3=UNIQUE(G3:G32)
L3:L8L3=BYROW(K3#,LAMBDA(r,ROWS(UNIQUE(FILTER(A3:A32,G3:G32=r)))))
M3:N8M3=LET(c,CHOOSECOLS($A3:$H32,1,7),BYROW($K3#,LAMBDA(r,IFNA(ROWS(UNIQUE(FILTER(c,($G3:$G32=r)*($H3:$H32=M2),NA()))),0))))
Dynamic array formulas.
 
Upvote 0
LET(c,CHOOSECOLS($A3:$H32,1,7),BYROW($K3#,LAMBDA(r,IFNA(ROWS(UNIQUE(FILTER(c,($G3:$G32=r)*($H3:$H32=M2),NA()))),0))))
When i put the formula in column L It gives the error
 

Attachments

  • INV.JPG
    INV.JPG
    77 KB · Views: 5
Upvote 0
In a blank cell, which of these formulas gives a result of 3 for you?
=SUM(1,2)
=SUM(1;2)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top