Sort highlighted cells

Emilybuhman

New Member
Joined
Aug 9, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello!

I have been trying to figure out the code for the following type of data:

Bi-monthly, I export from quickbooks. There is not much I can do with how this is exported.

the data look like this:

col A: staff name - this is ONLY on the top row
Col b: (starts on the second row) hours worked in a specific class
Col C: class name

I want to sort by column C, but only for the specific staff. These change monthly, so the area also changes staff may leave, amount of classes etc so I can’t set up a sort by defined range because it changes.

currently - I select the area to sort, and sort by column c. I would love a short cut but i cant figure it out.

Let me know if I don’t make sense, and thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
So, if I am understanding you, if we were able to align the data, the sort would work. Right? Please post a screen shot sample if I missed it.

Staff NameHoursClass
Some Name
8.5Algebra
7.5Gym
8.25Geometry

to this enabling you to sort by Staff Name, Class.

Staff NameHoursClass
Some Name8.5Algebra
Some Name7.5Gym
Some Name8.25Geometry
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

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