What is wrong with this formula?

ishpahuja

New Member
Joined
May 6, 2015
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Hi Super-Brainers

Can you help me decide what is wrong with this formula? It is giving me #value error.

=SUMPRODUCT(1*($D$3:$D$354=$A4),1*(MONTH($E$3:$E$502)=$D$1))

Column D : Stages (e.g. Lead, Opportunity, Converted etc.)
A4 = Lead
Column E: Date corresponding to stage value from column D (e.g. 03-Oct-2019 was the date in column E against 'Lead' in Column D)

D1 = Month value (i.e. 3 for March)

I am trying to calculate the number of Lead (and similarly opportunity, converted in cells A5, A6 etc.) in a particular months (as mentioned in D1). I used this formula and it is giving me error. Can you help find the error?

An extension of this formula, I am trying to solve is to calculate the number of leads in a particular month and year (so the user will have option to choose the year as well along with month - Mar 2018, Mar 2019 etc.)

Thanks in anticipation.

Happy Easter :)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
The Array calculation needs arrays with the same size.
Code:
=SUMPRODUCT(1*($D$3:$D$[COLOR=#ff0000]354[/COLOR]=$A4),1*(MONTH($E$3:$E$[COLOR=#ff0000]502[/COLOR])=$D$1))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
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