IF AND Formula with a Date and Percent

MLSNetworks

New Member
Joined
Jun 6, 2019
Messages
6
I am trying to create an IF AND formula that looks at a cell with a Date to see if it is 30 days from Today and then looks at another cell with a ranking percent and return true/false text.

Below is my formula which is not working.

=IF(AND(D2=TODAY()+30,G2<0.8),"OK","REVIEW")

What is a better formula?:confused: Thanks for any help you can provide!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,493
Office Version
365
Platform
Windows
What is a better formula?:confused: Thanks for any help you can provide!
There is nothing inherently wrong with using that formula. That is probably the way I would do it too.
The only thing I can see is you are only checking to see if it is EXACTLY 30 days from today (not sure if you really want a "greater than or equal to" operand here instead).
 

MLSNetworks

New Member
Joined
Jun 6, 2019
Messages
6
Thanks for your reply, Joe4. Actually, I want to see if the Date is "within" 30 days of Today. I should've said that first. So yes, that is what I exactly want to see. The reason behind it is this: The Date represents when the sales persons deal is expected to close (aka book) and the ranking % is the confidence level that the deal will close. So if the Date is within 30 days of Today and the confidence ranking % is less than 80% then the sales person is not doing a very good job at forecasting their deals in the CRM tool. If the deal is expected to close within 30 days then the sales persons confidence level should be 80% or greater. I am trying to get sales people to forecast their deals better.

Thanks again for your feedback!
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,493
Office Version
365
Platform
Windows
OK, try this:
Code:
[COLOR=#333333][FONT=Verdana]=IF(AND(D2-TODAY()<=30,G2<0.8),"REVIEW","OK")[/FONT][/COLOR]
(assuming that the date in D2 is in the future, and not in the past).

I think you also got what you want to return reversed. You want it reviewed if it is within 30 days AND less than 80%, right? If so, the "REVIEW" argument should come before the "OK" one in the formula.
 

Forum statistics

Threads
1,082,243
Messages
5,363,972
Members
400,772
Latest member
solbebe

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top