epactheactor
New Member
- Joined
- Sep 9, 2015
- Messages
- 38
Hello!
I'm not even sure if this can be done.
I have several columns with various labels, for the example I am going to use; year, size, weight and height. What I'm trying to do is create a macro that assigns a number to rows to all rows, but puts the same number in those rows where the information is the same as other rows.
So if I had this information
______Year____Size_____Weight____Height
______1989____10______110_______60
______1979____11______130_______90
______1989____10______110_______60
______1990____20______120_______70
______1989____15______111_______90
The macro would do this
______Year____Size_____Weight____Height
______1989____10______110_______60______1
______1979____11______130_______90______2
______1989____10______110_______60______1
______1990____20______120_______70______3
______1989____15______111_______90______4
I know how to group information using IF statements, but that is if I already know what the information might be. Would I need to use some sort of AutoFilter to assign the numbers?
I'm not even sure if this can be done.
I have several columns with various labels, for the example I am going to use; year, size, weight and height. What I'm trying to do is create a macro that assigns a number to rows to all rows, but puts the same number in those rows where the information is the same as other rows.
So if I had this information
______Year____Size_____Weight____Height
______1989____10______110_______60
______1979____11______130_______90
______1989____10______110_______60
______1990____20______120_______70
______1989____15______111_______90
The macro would do this
______Year____Size_____Weight____Height
______1989____10______110_______60______1
______1979____11______130_______90______2
______1989____10______110_______60______1
______1990____20______120_______70______3
______1989____15______111_______90______4
I know how to group information using IF statements, but that is if I already know what the information might be. Would I need to use some sort of AutoFilter to assign the numbers?