I need to create a macro that allows me to: 1) create duplicate rows based on the value "x" being present in a set of columns 2) once created, remove those referenced columns and replace with a specific word
Country | Hot | Cold | Windy | Icey
England today is | | x | x | |
Should yield 2 records taking the new field value from the column heading above:
Country | Weather type |
England today is | Cold |
England today is | Windy |
I hope this makes sense and would be extremely grateful for any guidance.
NB: I have researched this but can only see questions slightly similar but not quite i.e. those which have a count instead of an "x".
Country | Hot | Cold | Windy | Icey
England today is | | x | x | |
Should yield 2 records taking the new field value from the column heading above:
Country | Weather type |
England today is | Cold |
England today is | Windy |
I hope this makes sense and would be extremely grateful for any guidance.
NB: I have researched this but can only see questions slightly similar but not quite i.e. those which have a count instead of an "x".