Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

sorting filter

ResolvedVersion 2010

Joanna has attended:
Excel Intermediate course

Sorting & Filter

Hi there,

I was wondering if you could help me an invite sheet. We are often sending invites to a number of Guests, so typical sheet would have guests names, company, guest's position, email, PA's email, date invite was sent and RSVP with 3 coloured options: accepted-green, declined-red and pending-orange. We do not send all invites at once and sometimes list can be long. So I was wondering how to set up the sheet with names in alphabetical order, but then also sorted alphabetically. So if XYZ changes status from none invited to pending, it will be automatically placed within the orange sector in alphabetical order within orange sector. In addition, what would be the best way to set the colours depending on answer?

I hope above makes sense. I look forward to your helpful reply.

Kind regards,
Joanna

RE: Sorting & Filter

Hello Joanna,

Hope you enjoyed your Microsoft Excel Intermediate course with Best STL.

Thank you for your question regarding Sorting and Filtering.

I have created and attached a sample sheet containing a few things which may help with your enquiry.

I have used data validation to add a drop-down list to select either Accepted, Declined, Pending or Not Yet Invited.

I have sorted by colour with green at the top followed by yellow, then red and finally by guest name in alphabetical order. The file has a macro to resort after each change and you only have to use the shortcut of CTRL + m.

Give this a try and let me know if it helps.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

Attached files...

Invitations_Question.xlsm

RE: Sorting & Filter

Hi Rodney,

Thank you for your reply and template. This is exactly what I am after. However when I open document, it asks me to Enable content, which I do, and when I want press ctrl+m, it comes up as an error "Runtime error 9" Subscript out of range and options to End, Debug or Help. How should I enable the macro?

Thank you in advance.

Kind regards,
Joanna

Edited on Thu 2 Aug 2012, 21:08

RE: Sorting & Filter

Hello Joanna,

It's possible that the shortcut may not work. I have changed the code a bit to refer to whatever the active sheet is rather than Sheet1. This makes the code more open for use.

Try to run the code by going to the right-hand end of the View ribbon and click the Macros button and then click View Macros. The macro called Sort_RSVP should be there and already selected. Click the Run button. If the macro still gives an error then click end.

The file I have now attached has the same code but with some changes. Try this one out as well. If you want to check if there is a shortcut key assigned to the macro then click the Macros button again and click the Options... button. If the little box is empty then simply enter a lowercase m into the shortcut box and close the dialogue box. Then try CTRL + m, hopefully this time it will work.

If this doesn't work then I suggest you remove the macro altogether and re-record it again.

Give this a go and let me know how you get on.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

Attached files...

Invitations_Question_Version 2.xlsm

RE: Sorting & Filter

That is great Rodney, it works perfectly. Thank you very much for your help on this occasion.

Kind regards,
Joanna

Excel tip:

How to select certain data in an Excel 2010 workbook

If you want to select the correct data set in a page full of data, the most accurate and efficient way of doing this is to use the ''Shift and Click'' technique.

For example: If you want to select all data in cells A2 to E10, then click on cell A2, hold down the Shift key and click on cell E10 and all the data you want to see is highlighted.

Keep holding down the Shift key and you can move from cell E10 to any other cell in the spreadsheet.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.