VBA Excel copy the entire row where the specific column is not empty.

lhm7877

New Member
Joined
Jun 19, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
id model color quantity price
1 a black 3 300
2 b red
3 c blue 2 400
I'd like to copy the entire row where the 'quantity' column is not empty. And I'd like to put it in a specific column.

id quantity price
1 3 300
3 2 400
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi,

VBA solution is possible but you can easily filter the data table by Quatitiy <> Blank, copy and paste on to a new sheet and remove unnecessary columns.

Thanks
Fowmy
 
Last edited by a moderator:
Upvote 0
Where do you want to paste the copied rows ?
 
Upvote 0
Ok, but where....you said...
Rich (BB code):
And I'd like to put it in a specific column.
Do you mean row with this statement ?
If you copy an entire row....it, by default gos in col "A"
 
Upvote 0

Forum statistics

Threads
1,215,495
Messages
6,125,149
Members
449,208
Latest member
emmac

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