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.
PrioritySN / Machine / CustomerImportanceEffortUrgencyDue
6A113/25/2015

<tbody>
</tbody>


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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,216,731
Messages
6,132,395
Members
449,725
Latest member
Enero1

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