IF AND Formula with a Date and Percent

MLSNetworks

New Member
Joined
Jun 6, 2019
Messages
8
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,708
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
8
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,708
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,084,733
Messages
5,379,498
Members
401,607
Latest member
Zemexi

Some videos you may like

This Week's Hot Topics

  • VBA code giving errors and stopping Excel
    Hello Experts, I have this code being used to loop through files in a file path, and copy specific data to another sheet. It is giving me several...
  • Disable MsgBox message
    Morning, I have a userform where if i leave a ComboBox empty i see a MsgBox warning me that i must enter an invoice number. It is this MsgBox i...
  • Macro Recorder into VBA, Copy Paste Data Filled Cells
    Hi Everyone, I have a macro recorder file that takes a selection of data, copies, then pastes into a new sheet on ("A2:B2") The issue is my...
  • Number format changes while pasting into a cell
    Hi, I am trying to paste a number 180204524303 from an email to an excel cell, however, whenever i try to do so , the the paste value appears as...
  • Collating data
    Hello all. Could someone please help. I am trying to pull all column data from multiple sheets (24 I total so far) into 1 master sheet without...
  • Sum Multiple Columns Based on Multiple Criteria
    I am trying to consolidate data by summing columns G through M based on material, plant, vendor, and fiscal year being identical. The period does...
Top