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)
 
@aamirgee
Thank you for now updating your profile.

For Excel 2021, try these

aamirgee.xlsm
AGHIJKLMN
1
2INV#VENDORP.METHODVENDOR# INVOICESCASHTRANSFER
3N-35289Universal ComputersCASHUniversal Computers660
4N-35289Universal ComputersCASHMYTM Information Tech LLC202
5N-35289Universal ComputersCASHModern Gates Co. Ltd.202
6N-35289Universal ComputersCASHAfzal Computers Jeddah220
7N-35289Universal ComputersCASHComlab Information Technology101
8N-35289Universal ComputersCASHAalam Bila Hadood110
923240052MYTM Information Tech LLCTRANSFER   
10N-35841Universal ComputersCASH   
11N-35841Universal ComputersCASH   
12N-35991Universal ComputersCASH   
13N-36131Universal ComputersCASH   
14N-36120Universal ComputersCASH   
1523240064MYTM 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 (2)
Cell Formulas
RangeFormula
K3:K8K3=UNIQUE(G3:G32)
L3:L15L3=IF(K3="","",ROWS(UNIQUE(FILTER(A$3:A$32,G$3:G$32=K3))))
M3:N15M3=IF($K3="","",IFNA(ROWS(UNIQUE(FILTER($A$3:$A$32,($G$3:$G$32=$K3)*($H$3:$H$32=M$2),NA()))),0))
Dynamic array formulas.
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
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"))))))
Since you had asked for sample data it wouldn't be a bad idea to check your formula results against that data to see if they give sensible results for that data.
For example, note your TRANSFER result for Aalam Bila Hadood and then check how many TRANSFER invoices there are in the data for that Vendor.
There are several other incorrect results with your formulas.
 
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"))))))
NOT ACCURATE CALCULATIONS
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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