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)
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Pl upload a sample file with few rows(15 to 20rows). I will check .
SAMPLE.xlsx
ABCDEFGHIJKLMN
2INV#DATEITEM DESCRIPTIONQTYRATETOTALVENDORP.METHODVENDOR# INVOICESCASHTRANSFER
3N-3528903/06/2024HP Cartridge 912(BLK)1155.00155.00Universal ComputersCASHUniversal Computers
4N-3528903/06/2024HP Cartridge 912(CYN)178.0078.00Universal ComputersCASHMYTM Information Tech LLC
5N-3528903/06/2024HP Cartridge 912(YLW)178.0078.00Universal ComputersCASHModern Gates Co. Ltd.
6N-3528903/06/2024HP Cartridge 912(MGN)178.0078.00Universal ComputersCASHAfzal Computers Jeddah
7N-3528903/06/2024HP Cartridge 650(CLR)150.3150.31Universal ComputersCASHComlab Information Technology
8N-3528903/06/2024HP Cartridge 650(BLK)157.2157.21Universal ComputersCASHAalam Bila Hadood
92.3E+0720/05/2024POSBYTZ Additional User for POS3450.001350.00MYTM Information Tech LLCTRANSFER
10N-3584123/06/2024HP Cartridge 912(BLK)1154.97154.97Universal ComputersCASH
11N-3584123/06/2024HP Cartridge 912(CYN)178.1978.19Universal ComputersCASH
12N-3599130/06/2024HDD CASE M.2 2 IN 1 MD08ME169.0069.00Universal ComputersCASH
13N-3613107/03/2024LAPTOP RAM DDR3 8GB1115.00115.00Universal ComputersCASH
14N-3612007/03/2024LAPTOP HP Ci7-1355 16GB/512SSD/13th Gen12650.002650.00Universal ComputersCASH
152.3E+0709/09/2024POSBYTZ Billing Software 6 months11725.001725.00MYTM Information Tech LLCTRANSFER
16351529/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
17368209/09/2024Microsoft Exchange Online (PLAN1)134.5034.50Modern Gates Co. Ltd.TRANSFER
1824-200-00002826/09/2024PRINTER REPAIRING1270.00270.00Afzal Computers JeddahCASH
1924-200-00002926/09/2024EZI PRINT 150A TONER190.8590.85Afzal Computers JeddahCASH
20N-3949330/09/2024HP Cartridge 903(B)1185.00185.00Universal ComputersCASH
21N-3949330/09/2024HP Cartridge 903(Y)180.0080.00Universal ComputersCASH
22N-3949330/09/2024HP Cartridge 903(C)180.0080.00Universal ComputersCASH
23N-3949330/09/2024HP Cartridge 903(M)180.0080.00Universal ComputersCASH
24N-3949330/09/2024HP Cartridge 912(BLK)1149.50149.50Universal ComputersCASH
25N-3949330/09/2024HP Cartridge 912(CYN)178.2078.20Universal ComputersCASH
26N-3949330/09/2024HP Cartridge 912(YLW)178.2078.20Universal ComputersCASH
27N-3949330/09/2024HP Cartridge 912(MGN)178.2078.20Universal ComputersCASH
28N-3949330/09/2024PRINTCO TONER 17A BLK240.0080.00Universal ComputersCASH
29N-3949330/09/2024PRINTCO TONER 05A/80A139.8839.88Universal ComputersCASH
30S24-8815/10/2024Microsoft Exchange Online (PLAN1)113724.1013724.10Comlab Information TechnologyTRANSFER
31391817/10/2024HP Cartridge 650(CLR)260.00120.00Aalam Bila HadoodCASH
32391817/10/2024HP Cartridge 650(BLK)165.0065.00Aalam Bila HadoodCASH
Sample
Cell Formulas
RangeFormula
K3:K8K3=UNIQUE(G3:G32)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A15:H32Expression=$A15<>""textYES
A3:H14Expression=$A3<>""textNO
 
Upvote 0
@aamirgee can you please change your profile to show 2021 rather than 365 as has been requested.
Thanks
 
Upvote 0
For the given data A2:H32 I have used below formula in K2. I got correct result. If not working show what youare getting. result sample given below in image.
Excel Formula:
=LET(ven,G3:G32,inv,A3:A32,met,H3:H32,x,UNIQUE(ven),zinv,BYROW(x,LAMBDA(ra,COUNTA(UNIQUE(FILTER(inv,ven=ra))))),zcash,BYROW(x,LAMBDA(ra,COUNTA(UNIQUE(FILTER(inv,(ven=ra)*(met="cash")))))),ztfr,BYROW(x,LAMBDA(ra,COUNTA(UNIQUE(FILTER(inv,(ven=ra)*(met="transfer")))))),hdr,{"Vendor","Invoice","Cash","Transfer"},VSTACK(hdr,HSTACK(x,zinv,zcash,ztfr)))
Result.
VendorInvoiceCashTransfer
Universal Computers661
MYTM Information Tech LLC111
Modern Gates Co. Ltd.212
Afzal Computers Jeddah221
Comlab Information Technology111
Aalam Bila Hadood111
 
Upvote 0
@kvsrinivasamurthy if you bothered to read the thread you would know that the OP is not using 365, but 2021 & so does not have some of those functions.
 
Upvote 0
Assumed you are having HSTACK function.
Enter headings K1:N1 as
VENDORINV#CASHTRANSFER
In K2
Excel Formula:
=UNIQUE(G3:G32)
In L2 copied down
Excel Formula:
=IF($K2="","",LET(ven,G3:G32,inv,A3:A32,met,H3:H32,Zinv,COUNTA(UNIQUE(FILTER(inv,ven=$K2))),zcash,COUNTA(UNIQUE(FILTER(inv,(ven=$K2)*(met="CASH")))),ztfr,COUNTA(UNIQUE(FILTER(inv,(ven=$K2)*(met="TRANSFER")))),HSTACK(Zinv,zcash,ztfr)))
 
Upvote 0
Enter headings K1:N1 as
VENDORINV#CASHTRANSFER
In K2
Excel Formula:
=UNIQUE(G3:G32)
In L2 copied down
Excel Formula:
=IF($K2="","",LET(ven,G3:G32,inv,A3:A32,COUNTA(UNIQUE(FILTER(inv,ven=$K2)))))
In M2 copied down
Excel Formula:
=IF($K2="","",LET(ven,G3:G32,inv,A3:A32,met,H3:H32,COUNTA(UNIQUE(FILTER(inv,(ven=$K2)*(met="CASH"))))))
In N2 copied down
Excel Formula:
=IF($K2="","",LET(ven,G3:G32,inv,A3:A32,met,H3:H32,COUNTA(UNIQUE(FILTER(inv,(ven=$K2)*(met="TRANSFER"))))))
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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