98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » Formulas
Formulas
Resolved · Medium Priority · Version 2019
Kay has attended:
Excel Advanced course
Excel Advanced - Formulas & Functions course
Formulas
Hi Team,
Would appreciate if you can kindly point me in the right direction for some formulas I am trying to create.
I am currently creating a excel file where I am prioritising based on Due Dates.
For example Due date column (B) and a Priority column (C)
I would like to create the following formula and also add in conditioning format
If due date is less than 6 months then return 3-Low
If the due date is greater than or equal to 6 months then return 2- Medium
If due date is greater than 1 year then return 1- High
Any help would be greatly appreciated
Thanks
RE: Formulas
Hello Kay,
Thanks for your interesting question. What I would do, is to write the following nested IF statement to show the status:
=IF(B2>=EDATE(TODAY(),12),1,IF(B2>=EDATE(TODAY(),6),2,3))
This formula assumes that column B holds the dates. The EDATE function looks at dates exactly x months away from a given date (in this case TODAY().
This formula will always assign 1 for >= 1 year, 2 for >= 6 months up to 1 year, and 3 for less than 6 months.
Afterwards, you could apply conditional formatting based on 1, 2 or 3.
I hope this helps.
Kind regards
Marius Barnard
STL
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Calculate age or serviceThe DATEDIF() function in Excel calculates the number of days, months, or years between two dates. So, this function makes it easy to calculate a person's age. To try this tip: |