grunschlange
New Member
- Joined
- Sep 12, 2009
- Messages
- 13
I have a file that tracks the number of case reviews coming due for the next 3 months. I want to use a SUMPRODUCT formula in a module to count if a client number in column N on a sheet called "ABC Cases-May" matches with an F-type case on a master sheet called "May":
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]="""","""",IF(SUMPRODUCT(--(May!R3C14:R10000C14=RC[-1]),--(May!R3C7:R10000C7=""F""))=1,""Yes"",""""))"
The formula works fine when the month of reviews is "May", but the months change, and the sheet names change with them. How would I go about making a sheet reference in the formula to a constantly changing sheet name?
Thanks.
ActiveCell.FormulaR1C1 = _
"=IF(RC[-1]="""","""",IF(SUMPRODUCT(--(May!R3C14:R10000C14=RC[-1]),--(May!R3C7:R10000C7=""F""))=1,""Yes"",""""))"
The formula works fine when the month of reviews is "May", but the months change, and the sheet names change with them. How would I go about making a sheet reference in the formula to a constantly changing sheet name?
Thanks.