If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Remove columns containing all zeros
How can I create a macro or conditional formula to remove columns containing
all zeros |
#2
|
|||
|
|||
Remove columns containing all zeros
A simple formula way to flag it, use COUNTIF
Eg in A1: =COUNTIF(A2:A5,0)=4 Copy across. Cols to be deleted will be TRUE -- Max Singapore --- "Nora_GG" wrote: How can I create a macro or conditional formula to remove columns containing all zeros |
#3
|
|||
|
|||
Remove columns containing all zeros
Thanks Max. I was able to flag teh columns I need to remove. Do you know a
macro that can then delete columns containing "TRUE" as the header? "Max" wrote: A simple formula way to flag it, use COUNTIF Eg in A1: =COUNTIF(A2:A5,0)=4 Copy across. Cols to be deleted will be TRUE -- Max Singapore --- "Nora_GG" wrote: How can I create a macro or conditional formula to remove columns containing all zeros |
Thread Tools | |
Display Modes | |
|
|