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: 5

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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: 4
Upvote 0

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

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