Need help in priority list

Got a problem

New Member
Joined
Mar 27, 2015
Messages
3
Hi I am working on a priority list and encountered some problems with it. I would really appreciate all the help, thanks.

What I am trying to do is to have excel automatically assign a specific number to the Urgency Column based on how many days the item is from the Due Date.
[TABLE="width: 528"]
<tbody>[TR]
[TD]Priority[/TD]
[TD]SN / Machine / Customer[/TD]
[TD]Importance[/TD]
[TD]Effort[/TD]
[TD]Urgency[/TD]
[TD]Due[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD]A[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]3/25/2015[/TD]
[/TR]
</tbody>[/TABLE]


So I want the Urgency column show the following number if the following is true
1 - if today is passed the due date
2 - if today is the due date
3 - if the due date is in 1 to 3 days
4 - if the due date is in 4-5 days
5 - if the due date is in more than 5 days.

I have been trying to create formulas but I am not able to set those day restrictions.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Assuming the due date is in cell F2
=IF(F2 < TODAY(),1,IF(F2=TODAY(),2,IF(AND(F2-TODAY() > 1,F2-TODAY() < 4),3,IF(AND(F2-TODAY() > 3,F2-TODAY() < 6),4,5))))
 
Last edited:
Upvote 0
Assuming the due date is in cell F2
=IF(F2 < TODAY(),1,IF(F2=TODAY(),2,IF(AND(F2-TODAY() > 1,F2-TODAY() < 4),3,IF(AND(F2-TODAY() > 3,F2-TODAY() < 6),4,5))))

Looks like corruption on the original reply due to < > signs (insert spaces around them), it should be as above
 
Upvote 0
Hi all, Thanks for the quick replies!

Snrulz I think you you got it! I jsut did one minor change and it seems to work like I wanted it to work! Thank you for help.

And thank you all for helping, could not have done it without you all.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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