Need formula help for adding months based on criteria of customer

Lil Dot

New Member
Joined
Dec 29, 2004
Messages
11
I have a spreadsheet that I need to add each month sales invoices based on customer.

Here is a sample of what my spreadsheet looks like.



I would greatly appreciate any help. Thank you in advance!
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Saba Sabaratnam

Board Regular
Joined
May 26, 2018
Messages
121
Hi Lil Dot,

Copy the formula in cell G2 and copy it across and down to sum numbers based on both on months and customers.

=SUMPRODUCT(($C$2:$C$6),(--($B$2:$B$6=$F2)),--(MONTH($A$2:$A$6)=VLOOKUP(G$1,{"Jan",1;"Feb",2;"Mar",3;"Apr",4;"May",5;"Jun",6;"Jul",7;"Aug",8;"Sep",9;"Oct",10;"Nov",11;"Dec",12},2,FALSE)))

You will have to expand C2:C6 ranges in the formula to your desired range.

Kind regards

Saba
 

sandy666

Well-known Member
Joined
Oct 24, 2015
Messages
5,831
this is simply for Pivot Table

Sum of AmountDate
CustJanFebMar
CustA
81.6​
52.01​
57.02​
CustB
103.24​
45.78​
83.77​
CustC
130.6​
2.38​
116.85​
 

Watch MrExcel Video

Forum statistics

Threads
1,102,623
Messages
5,487,923
Members
407,614
Latest member
fuslela

This Week's Hot Topics

  • Timer in VBA - Stop, Start, Pause and Reset
    [CODE=vba][/CODE] Option Explicit Dim CmdStop As Boolean Dim Paused As Boolean Dim Start Dim TimerValue As Date Dim pausedTime As Date Sub...
  • how to updates multiple rows in muliselect listbox
    Hello everyone. I need help with below code. code is only chaning 1st row in mulitiselect list box. i know issue with code...
  • Delete Row from Table
    I am trying to delete a row from a table using VBA using a named range to find what I need to delete. My Range is finding the right cell. In the...
  • Assigning to a variable
    I have a for each block where I want to assign the value in column 5 of the found row to the variable Serv. [CODE=vba] For Each ws In...
  • Way to verify information
    Hi All, I don't know what to call this formula, and therefore can't search. I have a spreadsheet with information I want to reference...
  • Active Cell Address – Inactive Sheet
    How to use VBA to get the cell address of the active cell in an inactive worksheet and then place that cell address in a location on the current...
Top