Ismailfares
New Member
- Joined
- Dec 15, 2019
- Messages
- 3
- Office Version
- 365
Hi Guys,
I appreciate ur help ,
in sheet 1, i have many columns from A to AA and i need to write a code that get unique values from column D (years) at first sheet to the new sheet at A2 location then for each unique values i need to do filter for each value in Column D at first sheet again and when i do filter for year as ex.2000 i need to sum all rows in column M and copy the result (at last row) and paste it in second sheet beside unique values (B2)
so i need to this operation continuously till the column of unique values at second sheet finished then the program stopped
i do not know the years it is not specific , i mean i have different excel sheet and i do not want to write a code with specific year bcs it will not work in another worksheet
how can i do auto filters from column but for each row.
(Result at the end :it should be two columns at second sheet ,A2 has the unique values (years) ,B2 has values of sum column M at first sheet )
i need it necessary .Thansk for help
I appreciate ur help ,
in sheet 1, i have many columns from A to AA and i need to write a code that get unique values from column D (years) at first sheet to the new sheet at A2 location then for each unique values i need to do filter for each value in Column D at first sheet again and when i do filter for year as ex.2000 i need to sum all rows in column M and copy the result (at last row) and paste it in second sheet beside unique values (B2)
so i need to this operation continuously till the column of unique values at second sheet finished then the program stopped
i do not know the years it is not specific , i mean i have different excel sheet and i do not want to write a code with specific year bcs it will not work in another worksheet
how can i do auto filters from column but for each row.
(Result at the end :it should be two columns at second sheet ,A2 has the unique values (years) ,B2 has values of sum column M at first sheet )
i need it necessary .Thansk for help