I'm exporting data from Salesforce monthly in order to summarise our sales pipeline.
The data come out as:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Account Name (A)[/TD]
[TD]Contract end date (C)[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]20/05/2016[/TD]
[/TR]
[TR]
[TD]Company D[/TD]
[TD]23/11/2015[/TD]
[/TR]
[TR]
[TD]Company C[/TD]
[TD]17/09/2015[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]31/01/2018[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]31/01/2018[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]03/05/2018[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]31/09/2015[/TD]
[/TR]
</tbody>[/TABLE]
Sheet: Renewal Supplies Forecast
In another Sheet (Renewal Pipeline) I want to record the number of companies with contract end dates in each month, and I don't want to count blank values
I have the year fixed in D2 and the months numbered (D6, D7, D8 etc) starting June 2015 as 6.
The formula I have tried is:
{=SUM(IF(COUNTIF('Renewal Supplies Forecast'!$A$2:$A$8000,'Renewal Supplies Forecast'!$A$2:$A$8000)=0, "", 1/COUNTIF('Renewal Supplies Forecast'!$A$2:$A$8000,'Renewal Supplies Forecast'!$A$2:$A$8000)*((MONTH('Renewal Supplies Forecast'!$C$2:$C$100000)=D$6)*(YEAR('Renewal Supplies Forecast'!$C$2:$C$100000)=$D$2))))}
I keep getting #N/A
Help please
The data come out as:
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Account Name (A)[/TD]
[TD]Contract end date (C)[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]20/05/2016[/TD]
[/TR]
[TR]
[TD]Company D[/TD]
[TD]23/11/2015[/TD]
[/TR]
[TR]
[TD]Company C[/TD]
[TD]17/09/2015[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]31/01/2018[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]31/01/2018[/TD]
[/TR]
[TR]
[TD]Company B[/TD]
[TD]03/05/2018[/TD]
[/TR]
[TR]
[TD]Company A[/TD]
[TD]31/09/2015[/TD]
[/TR]
</tbody>[/TABLE]
Sheet: Renewal Supplies Forecast
In another Sheet (Renewal Pipeline) I want to record the number of companies with contract end dates in each month, and I don't want to count blank values
I have the year fixed in D2 and the months numbered (D6, D7, D8 etc) starting June 2015 as 6.
The formula I have tried is:
{=SUM(IF(COUNTIF('Renewal Supplies Forecast'!$A$2:$A$8000,'Renewal Supplies Forecast'!$A$2:$A$8000)=0, "", 1/COUNTIF('Renewal Supplies Forecast'!$A$2:$A$8000,'Renewal Supplies Forecast'!$A$2:$A$8000)*((MONTH('Renewal Supplies Forecast'!$C$2:$C$100000)=D$6)*(YEAR('Renewal Supplies Forecast'!$C$2:$C$100000)=$D$2))))}
I keep getting #N/A
Help please