Remove all rows that contain 0

jitsuke

New Member
Joined
Mar 9, 2011
Messages
3
I would like a formula (can't be a VBSCRIPT) that returns all rows based on column (A) not having a value of 0. The use of arrays is possible. Sample data and expected results are listed below.

Sample data:
(A) (B)
0 EX4200-48T
0 EX-PWR-320-AC
0 EX-UM-2X4SFP
0 EX-SFP-10GE-SR
56 EX4500-40F
56 EX-PWR-1200-AC
0 EX-SFP-10GE-DAC-3M
0 EX-SFP-10GE-DAC-3M
2400 EX-SFP-10GE-SR
0 QFX3500-48S4Q-ACR
0 QFX-SFP-10GE-SR

Result Expected:
56 EX4500-40F
56 EX-PWR-1200-AC
2400 EX-SFP-10GE-SR

Thanks,

E.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Sadly I can't use any of the auto-filter functions due to other restrictions (3rd party integration with Excel). Only a formula will work.
 
Upvote 0
Welcome to the forums!

Sadly, formulas cannot directly delete rows. If you cannot autofilter the data, sort the data, or run VBA, then this task will have to be done manually.
 
Upvote 0
Is it possible to create an array that contains non zero values based on column A.

So the column A array {0,0,0,0,56,56,0,0,2400,0,0} would return {56,56,2400}

I could then add a unique identifier to each row and perform a lookup on the identifier.

Just wondering.
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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