I have data that always changes also it doesn't have the headers.
Like here I have data in 7 rows (The count of the rows can change every time.) ?
Now I want to filter in the 2nd column with the value Sub-Catg. which always be available in the 2nd column.
The filtered data will look like this ?
The number of rows and columns can vary every time in each data set.
Now I want to copy the data of filtered all the rows and pastes in the below format. ?
Please let me know if there is any solution for this. I want to do this with Excel VBA or Power query.

