Home

#REF! error when I delete a line on master sheet

%3CLINGO-SUB%20id%3D%22lingo-sub-102818%22%20slang%3D%22en-US%22%3E%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-102818%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20create%20a%20workbook%20where%20I%20enter%20data%20into%20sheet%201%2C%20outputs%20in%20the%20format%20in%20sheet%202.%20The%20lines%20in%20sheet%201%20need%20to%20be%20able%20to%20be%20deleted%2C%20but%20when%20I%20do%2C%20it%20breaks%20the%20link%20in%20the%20formula%20giving%20me%20the%20error.%20What%20function%20should%20I%20use%20to%20insure%20when%20I%20delete%20a%20row%20on%20sheet%201%2C%20the%20data%20on%20sheet%202%20moves%20up%20to%20replace%20that%20deleted%20row%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-102818%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103816%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103816%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20exactly%20what%20I%20needed.%20Thank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103582%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103582%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20i'd%20remove%20column%20names%20for%20entire%20page%20from%20within%20the%20sheet%20and%20repeat%20them%20only%20for%20printing%20through%20page%20layout%20setup%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20567px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F19646i96C5AA40A7FC6AB5%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22PageSetup.JPG%22%20title%3D%22PageSetup.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWith%20that%20assuming%20each%20page%20has%2033%20roows%20the%20formula%20will%20be%3C%2FP%3E%3CPRE%3E%3DOFFSET(Sheet1!%24A%241%2CROW()%2B33*(4*INT((ROW()-2)%2F33)%2BINT(COLUMN()%2F4))-1%2C0)%3C%2FPRE%3E%3CP%3Efor%20A2%2C%20and%20with%201%20and%202%20at%20the%20end%20for%20B2%20and%20B3.%20Copy%20that%20block%20to%20the%20right%20on%20each%20next%203-columns%20block%20and%20after%20that%20row%202%20till%20end%20of%20the%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20Sheet2(2)%20in%20the%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20prefer%20to%20repeat%20columns%20titles%20within%20the%20sheet%20the%20formula%20will%20be%20bit%20complicated%2C%20but%20the%20idea%20is%20the%20same.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103556%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103556%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you!%20This%20worked%20perfectly%20for%20page%201%20of%20sheet%202.%20How%20to%20I%20continue%20the%20pattern%20for%20more%20pages%3F%20See%20attached.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103005%22%20slang%3D%22en-US%22%3ERe%3A%20%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103005%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20delete%2Finsert%20rows%20better%20not%20to%20use%20links.%20Your%20Sheet2%20is%20quite%20good%20structured%2C%20if%20i%20understood%20it%20correctly%20you%20repeating%20in%20groups%20by%203%20columns%20each%2033%20rows%20from%20first%20sheet.%3C%2FP%3E%3CP%3EWhen%20in%20A2%20of%20Sheet2%20we%20take%20the%20value%20of%20the%20A2%20cell%20in%20Sheet1%3C%2FP%3E%3CPRE%3E%3DOFFSET(Sheet1!%24A%241%2CROW()%2B33*INT(COLUMN()%2F4)-1%2C0)%3C%2FPRE%3E%3CP%3ELatest%20zero%20is%20to%20be%20changed%20on%201%20and%202%20for%20culumns%20B%20and%20C%20accordingly%20(one%20and%20two%20columns%20to%20the%20right%20from%20column%20A).%3C%2FP%3E%3CP%3EWhen%20select%20cells%20from%20A2%20to%20D2%20and%20paste%20as%20fromulas%20to%20E2%3AH2%2C%20I2%3AL2%2C%20etc%2C%20and%20after%20that%20copy%20entire%20row%202%20down%20till%20end%20of%20the%20range.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBetter%20to%20use%20number%2033%20as%20parameter%20(put%20in%20some%20cell%20outside%20and%20use%20reference%20on%20it%20or%20name).%3C%2FP%3E%3CP%3EFinal%20result%20is%20in%20attached%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-102997%22%20slang%3D%22en-US%22%3ERE%3A%20%23REF!%20error%20when%20I%20delete%20a%20line%20on%20master%20sheet%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-102997%22%20slang%3D%22en-US%22%3EHi%2C%20Try%20the%20following%20formula%20in%20cell%20Q2%20for%20example%20%3A%20%3DIFERROR(Sheet1!A134%2CQ3)%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I'm trying to create a workbook where I enter data into sheet 1, outputs in the format in sheet 2. The lines in sheet 1 need to be able to be deleted, but when I do, it breaks the link in the formula giving me the error. What function should I use to insure when I delete a row on sheet 1, the data on sheet 2 moves up to replace that deleted row?

5 Replies
Highlighted
Hi, Try the following formula in cell Q2 for example : =IFERROR(Sheet1!A134,Q3)
Highlighted

Hi,

 

If you delete/insert rows better not to use links. Your Sheet2 is quite good structured, if i understood it correctly you repeating in groups by 3 columns each 33 rows from first sheet.

When in A2 of Sheet2 we take the value of the A2 cell in Sheet1

=OFFSET(Sheet1!$A$1,ROW()+33*INT(COLUMN()/4)-1,0)

Latest zero is to be changed on 1 and 2 for culumns B and C accordingly (one and two columns to the right from column A).

When select cells from A2 to D2 and paste as fromulas to E2:H2, I2:L2, etc, and after that copy entire row 2 down till end of the range.

 

Better to use number 33 as parameter (put in some cell outside and use reference on it or name).

Final result is in attached file.

 

Highlighted

Thank you! This worked perfectly for page 1 of sheet 2. How to I continue the pattern for more pages? See attached.

Highlighted

Hi,

 

First, i'd remove column names for entire page from within the sheet and repeat them only for printing through page layout setup

PageSetup.JPG

With that assuming each page has 33 roows the formula will be

=OFFSET(Sheet1!$A$1,ROW()+33*(4*INT((ROW()-2)/33)+INT(COLUMN()/4))-1,0)

for A2, and with 1 and 2 at the end for B2 and B3. Copy that block to the right on each next 3-columns block and after that row 2 till end of the file.

 

See Sheet2(2) in the attached file.

 

If you prefer to repeat columns titles within the sheet the formula will be bit complicated, but the idea is the same.

Highlighted

This is exactly what I needed. Thank you very much!

Related Conversations