Forum Discussion
FlavioSorbo
Jun 06, 2022Copper Contributor
EXCEL: Delete a row without lose references
Hi, i would like to know how delete a row without loose the references about this row. I give you an example, if i have a formula with some cell of row 64, and i want delete it, i would like that e...
- Jun 06, 2022
You can use the INDIRECT function for this:
=INDIRECT("E64")
will always refer to cell E64, even if you delete row 64, or insert or delete rows above it.
HansVogelaar
Jun 06, 2022MVP
You can use the INDIRECT function for this:
=INDIRECT("E64")
will always refer to cell E64, even if you delete row 64, or insert or delete rows above it.
FlavioSorbo
Jun 06, 2022Copper Contributor
Ok thank you, I've already created the formulas, it's possible to add the function INDIRECT massively?
- HansVogelaarJun 06, 2022MVP
What do your formulas currently look like? Simply =cell_reference or more complicated?
And which cell references should be changed? Only those that refer to row 64, or all references, or something in between?
- FlavioSorboJun 06, 2022Copper Contributoryes in think it doesn't work with me, i have formulas like this =IF('TEMPLATE_data entry'!E$10<>"",'TEMPLATE_data entry'!E$10,""), i want delete the row 10 in the "TEMPLATE_data_entry", but if i put the formula in this way:
=IF(INDIRECT('TEMPLATE_data entry'!E$10)<>"",INDIRECT('TEMPLATE_data entry'!E$10),"")
I get #REF- HansVogelaarJun 06, 2022MVP
The argument of INDIRECT must be a string:
=IF(INDIRECT("'TEMPLATE_data entry'!E$10")<>"",INDIRECT("'TEMPLATE_data entry'!E$10"),"")