Hi,
I'm trying to write a macro for a range to only copy the values in the columns which do not have N/A in the 2nd row.
So for instance using this example below columns O:X would be excluded because they have N/A in row 2 but columns Y:AB would be included, so the Macro should select say ("Y4:AB50") to copy from the total input range of ("O4:AB50").
For reference the N/A's are all grouped together so after the last N/A all the other columns within the range can be used, the amount of N/A's can change.
I imagine it would something like a Macro if statement but ideally do not want to have to write the IF statement for each column to be selected.
Happy to expand if that is not explained very clearly.
Thanks,
Paul
I'm trying to write a macro for a range to only copy the values in the columns which do not have N/A in the 2nd row.
So for instance using this example below columns O:X would be excluded because they have N/A in row 2 but columns Y:AB would be included, so the Macro should select say ("Y4:AB50") to copy from the total input range of ("O4:AB50").
For reference the N/A's are all grouped together so after the last N/A all the other columns within the range can be used, the amount of N/A's can change.
I imagine it would something like a Macro if statement but ideally do not want to have to write the IF statement for each column to be selected.
Happy to expand if that is not explained very clearly.
Thanks,
Paul