ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I set If Statement to set Priorities, off of dates due? (https://www.excelbanter.com/excel-discussion-misc-queries/3058-how-do-i-set-if-statement-set-priorities-off-dates-due.html)

K Svoboda

How do I set If Statement to set Priorities, off of dates due?
 
I am trying to set up If Statements to read dates for several projects and
from those dates set priority levels of A, B, C, etc... Can anyone offer
assistance?

John Mansfield

Try something like:

=IF(B1=DATE(2005,1,1),"A",IF(B1=DATE(2005,1,2),"B" ,"C"))

----
Regards,
John Mansfield
http://www.pdbook.com

"K Svoboda" wrote:

I am trying to set up If Statements to read dates for several projects and
from those dates set priority levels of A, B, C, etc... Can anyone offer
assistance?


JE McGimpsey

One way:

assuming the due date in A1:

=IF((A1-TODAY())<=0,"HOT",IF((A1-TODAY())=1,"Short-Term","Long-Term"))


In article ,
K Svoboda <K wrote:

I am trying to set up If Statements to read dates for several projects and
from those dates set priority levels of A, B, C, etc... Can anyone offer
assistance?


Peo Sjoblom

If you have more than 3 levels you might want to consider a vlookup table

=VLOOKUP(B1,F3:G8,2)

where for instance F3:F8 would hold the dates and G3:G8 the priority levels
where the table might look like

1/1/2005 A
1/2/2005 B
1/3/2005 C
1/4/2005 D
1/5/2005 E

Regards,

Peo Sjoblom


"K Svoboda" wrote:

I am trying to set up If Statements to read dates for several projects and
from those dates set priority levels of A, B, C, etc... Can anyone offer
assistance?


Karen Svoboda

Is there an easy way if you are looking at 30 different projects over the year?

"John Mansfield" wrote:

Try something like:

=IF(B1=DATE(2005,1,1),"A",IF(B1=DATE(2005,1,2),"B" ,"C"))

----
Regards,
John Mansfield
http://www.pdbook.com

"K Svoboda" wrote:

I am trying to set up If Statements to read dates for several projects and
from those dates set priority levels of A, B, C, etc... Can anyone offer
assistance?



All times are GMT +1. The time now is 04:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com