Update priorities automatically

JayCie

New Member
Joined
Oct 9, 2008
Messages
24
I have a spreadsheet with all the projects we have ranked by 2 managers by priority. I need to renumber the priorities as projects become more urgent or are completed and am looking for a way to do this automatically as our list of projects grows.

The relevant columns are I, J and L.
Project Data[1].jpg


As we update column L (Status) to 'Completed', I need columns I and J to ‘move’ a project up or down in priority. For example, if we mark Manger 2’s no 1 priority to completed, we want the current 1 to be deleted and 2 to become 1, 3 to become 2 and so on in Manager 2's column and, if there is a ranking in Manager 1's column it needs to be deleted and the projects in this column need to updated in the same manner..

Also, if we change a project’s priority I need to update the remaining priorities up or down as necessary. For example, if we change priority 5 to become priority 3, we need the existing 3 and 4 to become 4 & 5. Or, if we change priority 2 to priority 5, we need to change 3, 4 and the existing 5 to 2, 3 & 4.

Can anyone assist with some code that would accomplish this? Any assistance is appreciated.
 

Attachments

  • Project Data.jpg
    Project Data.jpg
    109.7 KB · Views: 60
JayCie,

forgot to say: make sure column I and J only contain numbers. Some of the cells I noticed had a space in them. If you do a delete of all the cells and then add some priorities it should be ok. Once you start of clean, the program won't allow the user to enter text, it will delete it.

cheers,
Jaap
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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