+ Reply to Thread
Results 1 to 5 of 5

Changing priorities in a column

  1. #1
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Changing priorities in a column

    Hi,

    I’ve got a task list in column A and a priority list in column B. When I finish one of the tasks, I put ‘Done’ in column B next to the task. I’m looking for the best way to reprioritize the rest of the column (i.e., when I finish the priority 1 task, priority 2 becomes Priority 1, priority 3 becomes priority 2, etc.). The column will obviously have numbers and the word ‘Done’ in cells, so there are two different data types. I’m thinking the best way would be with VBA, but there may be an easier way with a helper column with formulas. I appreciate any help and guidance. Thanks.

    Frank

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Changing priorities in a column

    Try this small example and see if it does what you want.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Re: Changing priorities in a column

    Perfect! I didn't think of using a second column for the status. Doing that and then sorting also moves the completed items to the bottom of the list. What I will do is use this and also add a vba macro that automatically sorts the sheet by priority upon change. I just realized, though, that I will also need to work out re-prioritizing when I add a new task that doesn't have a priority at the end (i.e., new priority because pri 3, the current pri 3 becomes pri 4, etc.). Unless you know how the formula would work, I'll play with it by adding 'new' or something like that to the status column. Thank you!

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Changing priorities in a column

    The priority is set by the row that the task is in via formula in the priority column. If you want to insert a new task with say a priority 2, right click on the item with priority 3 and choose INSER then Rows Above. This will insert a new row but it doesn't have a priority. Click on the cell above the empty Priority cell to select the cell above. With the mouse, grab the selection handle in the lower right of the cell and drag down to the vacant cell. The formula for the priority will be copied and all the other priorities under will be appropriately incremented.

  5. #5
    Forum Contributor
    Join Date
    03-23-2012
    Location
    Michigan
    MS-Off Ver
    MS365 Excel version 2301 (Build 16026.20238)
    Posts
    101

    Re: Changing priorities in a column

    Hi again. I wanted to follow up with you with the finished product. I took your suggestion and combined it with a VBA macro on the worksheet that automatically sorts and reprioritized the sheet if the word 'Done' is entered. This also moves all the completed tasks to the bottom. Nice! I also added a button that runs a macro to insert a line and copy the formulas. You just put your cursor where you want the new task to assume that priority and click the button. A line is inserted, formulas copied, and the cursor is moved to column A so you can enter your new task.

    The attachment is a macro-enabled workbook, and I know people are wary of downloading those (I know I am). But it's just your workbook you attached with the two small macros I mentioned.

    Thank you very much for your help with this!

    Frank
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I set If Statement to set Priorities, off of dates due?
    By K Svoboda in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-16-2013, 08:12 AM
  2. [SOLVED] Calculations based on priorities
    By plank in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-13-2012, 09:13 AM
  3. Cell Priorities
    By Latlong in forum Excel General
    Replies: 3
    Last Post: 10-11-2009, 11:40 PM
  4. changing sort priorities
    By chrislcox31 in forum Excel General
    Replies: 1
    Last Post: 07-10-2009, 09:22 PM
  5. new priorities
    By ceemo in forum Excel General
    Replies: 0
    Last Post: 05-04-2006, 12:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1