Forum Discussion
Tyler Smith
Nov 06, 2018Copper Contributor
Formula HELP!!
I need help with a formula I have been trying to figure out for 3 days. If you look at the example I have a "Plan" column that gets auto populated by certain criteria. This is our target date to ...
- Nov 09, 2018
Okay, when
=SUMPRODUCT(ISNUMBER(SEARCH("Plan",$R$3:$BA$3))*($R$4:$BA$34>=(EOMONTH(CQ4,-1)+1))*($R$4:$BA$34<=EOMONTH(CQ4,0))*(ISBLANK(OFFSET($R$4:$BA$34,0,1))+ISNUMBER(OFFSET($R$4:$BA$34,0,1))*(OFFSET($R$4:$BA$34,0,1)>EOMONTH(CQ4,0))))We count blank cell and don't count cells with any text ("N/A" in particular)
Tyler Smith
Nov 06, 2018Copper Contributor
Does anyone have any idea of how to do this? It's driving me crazy!
Wyn Hopkins
Nov 07, 2018MVP
Hi Tyler
My approach would be to add some helper columns for Year and Month
Take a look at the attached
- Tyler SmithNov 07, 2018Copper Contributor
This would work for a small batch of data but with 36 columns and ever expanding rows I would be worried about something getting missed along the way and giving wrong data.
- Wyn HopkinsNov 08, 2018MVPAnyone else able to suggest a solution to Tyler?
- SergeiBaklanNov 08, 2018Diamond Contributor
Perhaps
=SUMPRODUCT(ISNUMBER(SEARCH("Plan",$R$3:$BA$3))*($R$4:$BA$34>=(EOMONTH(CQ4,-1)+1))*($R$4:$BA$34<=EOMONTH(CQ4,0))*((OFFSET($R$4:$BA$34,0,1)<EOMONTH(CQ4,-1))+(OFFSET($R$4:$BA$34,0,1)>EOMONTH(CQ4,0))))