itsrich
Board Regular
- Joined
- Apr 13, 2009
- Messages
- 73
- Office Version
- 365
- Platform
- Windows
I am using this INDIRECT("'"&$A4&"'!"&"$G2:$G300") & INDIRECT("'"&$A4&"'!"&"$G2:$G300") in a formula.
I want the 300 in the range reference to be the value in cell T4. T4 =297
The whole formula (manually changed from above) =IF(COUNTIFS(INDIRECT("'"&$A4&"'!"&"$G2:$G297"),C2,INDIRECT("'"&$A4&"'!"&"$F2:$F297"),C3)=0,"",COUNTIFS(INDIRECT("'"&$A4&"'!"&"$G2:$G297"),C2,INDIRECT("'"&$A4&"'!"&"$F2:$F297"),C3))
One of my goals is to avoid manually changing formulas to replace the actual range on all the sheets within this workbook.
Another goal is to make the range change used in each formula based on the number in column T as I copy the formula down.
I sometimes feel like it is a curse when I am creating such large & involved spreadsheets.
I want the 300 in the range reference to be the value in cell T4. T4 =297
The whole formula (manually changed from above) =IF(COUNTIFS(INDIRECT("'"&$A4&"'!"&"$G2:$G297"),C2,INDIRECT("'"&$A4&"'!"&"$F2:$F297"),C3)=0,"",COUNTIFS(INDIRECT("'"&$A4&"'!"&"$G2:$G297"),C2,INDIRECT("'"&$A4&"'!"&"$F2:$F297"),C3))
One of my goals is to avoid manually changing formulas to replace the actual range on all the sheets within this workbook.
Another goal is to make the range change used in each formula based on the number in column T as I copy the formula down.
I sometimes feel like it is a curse when I am creating such large & involved spreadsheets.