delete blank rows based on empty cells into column from sheet to another

abdo meghari

Well-known Member
Joined
Aug 3, 2021
Messages
612
Office Version
  1. 2019
HI

I want to copy data from sheet1 to sheet2 . should copy with all format and formula without empty rows. the empty rows depend on column A if any cell is empty in column A where located from row 21 until before row SUB TOTAL ,then should delete it because I will add rows before row SUB TOTAL every time
so any empty row from ROW 21 up to before row SUB TOTAL should delet e it

vv1.xlsm
ABCDEFG
1 INVOICE
2COMPANY LTD
3
4DATE
52022/08/02
6INVOICE
7BSJD-146
8CUS
9CUS-146
10
11TO:CONSIGNEE
12NAME
13ADDRESS
14PHONE
15EMAIL
16
17OREDERDATEFRSAL (FOB)TREM
18PUR-144
19
20ITEMDESCRIBETYPEORIGINQTYUNITTOTAL
211BS 1200R20G580THI200.00120.0024,000.00
222BS 1200R20G580JAP230.00110.0025300.00
230.00
240.00
250.00
260.00
27SUB TOTAL49300.00
28TAX1873.40
29FREIGHT0.00
30OTHERS0.00
31TOTAL$51,173.40
32For questions concerning this invoice, please contact
33Name, (321) 456-7890, Email Address
34www.yourwebaddress.com
sheet1
Cell Formulas
RangeFormula
F5F5=TODAY()
G21:G26G21=E21*F21
G27G27=SUM(G21:G22)
G28G28=SUM(G27)*3.8%
G31G31=G27+G28+G29+G30





result
should be
vv1.xlsm
ABCDEFG
1 INVOICE
2COMPANY LTD
3
4DATE
52022/08/02
6INVOICE
7BSJD-146
8CUS
9CUS-146
10
11TO:CONSIGNEE
12NAME
13ADDRESS
14PHONE
15EMAIL
16
17OREDERDATEFRSAL (FOB)TREM
18PUR-144
19
20ITEMDESCRIBETYPEORIGINQTYUNITTOTAL
211BS 1200R20G580THI200.00120.0024,000.00
222BS 1200R20G580JAP230.00110.0025300.00
23SUB TOTAL49300.00
24TAX1873.40
25FREIGHT0.00
26OTHERS0.00
27TOTAL$51,173.40
sheet2
Cell Formulas
RangeFormula
F5F5=TODAY()
G21:G22G21=E21*F21
G23G23=SUM(G21:G22)
G24G24=SUM(G23)*3.8%
G27G27=G23+G24+G25+G26

I hope this clear
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
should copy with all format and formula without empty rows.
Hello Abdo,
My understanding of your opening post is that the empty rows were to be deleted prior to transferring the data to Sheet2.
However, I see that Alex has given you the solution that you wanted so we'll leave it at that.

Cheerio,
vcoolio.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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