Question : Count total amount with formula

Hi Experts,

I need Experts help. How to create a formula to count total amount of currency(USD/RM) for vendor in “summary” sheet (table A&B) based on information in column-D(Tracker sheet). The total amount need to be accumulated according to the Month based on date/month information in column-B (Tracker sheet).

In table A, the total amount only required if the type of document in Column-J is PO and table-B only for IR. I’ve manually count a sample data in table A for experts to get a better view. Hope Experts can help me to create a formula to count this.


Attachments:
 
xls
 

Answer : Count total amount with formula

Use the sumproduct formula:

PO Formula:
=SUMPRODUCT(('Tracker '!$J$3:$J$38="PO")*(MONTH('Tracker '!$B$3:$B$38)=MONTH(Summary!$A4))*('Tracker '!$D$3:$D$38=B$2)*('Tracker '!$G$3:$G$38))

IR Formula:
=SUMPRODUCT(('Tracker '!$J$3:$J$38="IR")*(MONTH('Tracker '!$B$3:$B$38)=MONTH(Summary!$A22))*('Tracker '!$D$3:$D$38=B$20)*('Tracker '!$G$3:$G$38))
Random Solutions  
 
programming4us programming4us