Sort range with unknown size and values (in columns)

shahsad

New Member
Joined
Feb 26, 2022
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello forum community,

I am currently starting with Excel vba.

I would like to describe my sorting problem directly with an example:

Different anglers have caught different fish.
In column D&E are name and city, in an unknown area are the fish that were caught and behind that comes their experience.
(in the best case the column with experience should stay behind the catch).

My goal is
To add all different and occurring fishes each as a heading in an own column and to sort the fishes in the right column in the area.

I have tried but have not found a solution.
Can you please help me with a code?

thousand thanks
 

Attachments

  • excel1.png
    excel1.png
    11.2 KB · Views: 7

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
To show you what my goal is:
in the picture is what I want to have in the end.
thanks a lot!
 

Attachments

  • excel2.png
    excel2.png
    12.1 KB · Views: 6
Upvote 0

Forum statistics

Threads
1,223,579
Messages
6,173,170
Members
452,504
Latest member
frankkeith2233

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top