deleting rows messing up formulas

C

Chad

I have a workbook that in Sheet3 has a cell with the following formula
=IF(ISBLANK(Sheet1!$A$16),"-",Sheet1!$A$16)

Anyway if I delete row 16 on Sheet 1 and everything else shifts up then this
formula becomes

=IF(ISBLANK(Sheet1!#REF!),"-",Sheet1!#REF!)

Is there anyway to prevent this and make it just pull the data that is now
in Sheet1 A16
 
M

Murray

I have a workbook that in Sheet3 has a cell with the following formula
=IF(ISBLANK(Sheet1!$A$16),"-",Sheet1!$A$16)

Anyway if I delete row 16 on Sheet 1 and everything else shifts up then this
formula becomes

=IF(ISBLANK(Sheet1!#REF!),"-",Sheet1!#REF!)

Is there anyway to prevent this and make it just pull the data that is now
in Sheet1 A16

You could try using the OFFSET function:

=IF(ISBLANK(OFFSET(Sheet1!A1,15,0)),"-",OFFSET(Sheet1!A1,15,0))

The OFFSET function takes a reference position and then specifies a
number of rows and columns to offset from ie in this case, from cell
A1 offset 15 rows down and zero rows across. Doing it this way allows
you to delete rows and it should still be OK.

HTH

Murray
 
C

Chad

Murray said:
You could try using the OFFSET function:

=IF(ISBLANK(OFFSET(Sheet1!A1,15,0)),"-",OFFSET(Sheet1!A1,15,0))

The OFFSET function takes a reference position and then specifies a
number of rows and columns to offset from ie in this case, from cell
A1 offset 15 rows down and zero rows across. Doing it this way allows
you to delete rows and it should still be OK.

HTH

Murray



You are a genius and I love you to no end you have no idea. All my excel
questions go here from now on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top