ollyhughes1982
Well-known Member
- Joined
- Nov 27, 2018
- Messages
- 795
- Office Version
- 365
- Platform
- MacOS
Hi,
I have a number of very similar INDIRECT formulas in a spreadsheet, example of one below:
=SUM(COUNTIF(INDIRECT({"L4","T4","AB4","AJ4","AR4","AZ4","BH4","BP4","BX4","CF4","CQ4"}),"No"))
I'm using the INDIRECT function as I want to count if what's in non-adjacent cells meets the criteria "No". These work, however, the reference aren't dynamic. Is there a better way that I could do this so that whenever I happen to insert new columns in spreadsheet, I don't have to go in and update all of these references? perhaps with some form of COUNTIF / COUNTIFS?
Thanks in advance.
Olly.
I have a number of very similar INDIRECT formulas in a spreadsheet, example of one below:
=SUM(COUNTIF(INDIRECT({"L4","T4","AB4","AJ4","AR4","AZ4","BH4","BP4","BX4","CF4","CQ4"}),"No"))
I'm using the INDIRECT function as I want to count if what's in non-adjacent cells meets the criteria "No". These work, however, the reference aren't dynamic. Is there a better way that I could do this so that whenever I happen to insert new columns in spreadsheet, I don't have to go in and update all of these references? perhaps with some form of COUNTIF / COUNTIFS?
Thanks in advance.
Olly.