How to ignore multiple cells from drag and fill or enter any formula

Unexpc

Active Member
Joined
Nov 12, 2020
Messages
496
Office Version
  1. 2019
Platform
  1. Windows
Hi guys

when i drag and fill, i want skip 2 rows and force not filling 2 rows (2 rows are in every page and i can't insert any formula beacuse in my workbook, all cells filling with a formula) anyway ignore this 2 rows in every page when i drag and fill? (for example i drag and fill 34 cell in 1 column and cells formula refers to a sheet cells. When i copy and paste that sheet, this 2 rows give formula that disrupting order of link cells for my page, beacuse i want this 2 specific rows 40:40,41:41 and next 34 rows ... in each page, this 2 rows should ignore from drag and fill) how solve this automate drag and fill and ignore this 2 rows?
 

Attachments

  • Screenshot 2020-11-14 165211.jpg
    Screenshot 2020-11-14 165211.jpg
    60.3 KB · Views: 59
Are you write your sum formula correctly. the #NAME error because of error at writing formula. and you don't need equal sign at first.
if you write total of above formula at row 40 with your sum formula SUM(C8:C39) and drag it down first when you see result at row 74 at formula bar (fx bar)
you see formula changes to SUM(C42:C73) and etc...
Yes i know, my problem with sum page2,3,4... that plus 34 rows behind(for example in page 2 C74+C40 and in page 3 C108+C74+C40 and etc... in this sheet not in sheet1
Except this point, everything is well
 
Last edited:
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Only you need to add $ sign to your first cell to sum. Select only the first cell Address( I think it was C8) and press F4 key. It should converted to $C$8.
write at row 40 this formula and drag first down then up. If your formula is SUM(C8:C39):

=IF(MOD(ROW()-6,34)=0,SUM($C$8:C39),IF(MOD(ROW()-7,34)=0,"Your Text",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")))
 
Upvote 0
Only you need to add $ sign to your first cell to sum. Select only the first cell Address( I think it was C8) and press F4 key. It should converted to $C$8.
write at row 40 this formula and drag first down then up. If your formula is SUM(C8:C39):

=IF(MOD(ROW()-6,34)=0,SUM($C$8:C39),IF(MOD(ROW()-7,34)=0,"Your Text",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")))
Sorry you sloved my problem, i was insert wrong sum formula that i want...
Im very thankful for your hard working and spent your time for solve my problem ;)
 
Upvote 0
Good Luck & You're welcome. Please click on tick at right of post have correct answer.
 
Upvote 0
Hi again
i have a few questions please check it
 

Attachments

  • Screenshot 2020-11-22 143633.jpg
    Screenshot 2020-11-22 143633.jpg
    179.8 KB · Views: 7
  • Screenshot 2020-11-22 144545.jpg
    Screenshot 2020-11-22 144545.jpg
    168.9 KB · Views: 7
Upvote 0
1. change formula to this:
Excel Formula:
=IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))
2. VBA don't accept other language except English. Your solution is you use VBA sheet name not Excel sheet Name and change this parts (example at image):

Sheets("پرینت") to Worksheets("sheet2")
 

Attachments

  • 12345.jpg
    12345.jpg
    45 KB · Views: 6
Upvote 0
1. change formula to this:
Excel Formula:
=IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))
2. VBA don't accept other language except English. Your solution is you use VBA sheet name not Excel sheet Name and change this parts (example at image):

Sheets("پرینت") to Worksheets("sheet2")
i tested, in formula and sheet name can write but in vba cannot
 

Attachments

  • Screenshot 2020-11-22 214435.jpg
    Screenshot 2020-11-22 214435.jpg
    59.1 KB · Views: 5
Upvote 0
see the other post. i describe example for vba
 
Upvote 0
i know in vba does not work, your making this formula and i say can change and insert for example persian character in formula...
and what about don't show empty cells?
sorry if i asking you, because you know what in my worksheet...
 
Upvote 0
1. change formula to this:
Excel Formula:
=IF(IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),"")=0,"",IFERROR(INDIRECT(LOOKUP(2,1/(("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34))<>""),("Sheet1!B"&ROW()-8-INT((ROW()-6)/34)-INT((ROW()-7)/34)))),""))
2. VBA don't accept other language except English. Your solution is you use VBA sheet name not Excel sheet Name and change this parts (example at image):

Sheets("پرینت") to Worksheets("sheet2")
i read now my solution with vba sorry i understand now what you say,
please say what am i do for not showing empty cells?
 
Upvote 0

Forum statistics

Threads
1,214,840
Messages
6,121,895
Members
449,058
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top