Macro for deleting the rows those having empty cells in either of the columns or both

drniranjan

New Member
Joined
Jun 15, 2011
Messages
19
Question:

1 3
blank 8
3 7
5 11.5
1 4
blank 10
blank blank
23 12
9 blank

Ans should be:
1 3
3 7
5 11.5
1 4
23 12

thnking you in advance.........N.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try

Code:
Sub test()
Columns("A:B").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
 
Upvote 0
hi,
thanks for the code. Working excellent....however, my final requirement is to estimate the fitting coefficients to the data sets using power function.

For instance, after deteting the empty cells........

I have the data sets:

A B C D E F so on...
1 1 3 4 4 5
2 4 1 2 4 1
2 8 2 7 2 9
1 6 2 9 3 9

I need the R square and the fitting power equations for consequtive data pairs...means, between A &B; C &D; E and F; .....so on.........


regards, N
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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