Need help wit this formula

Get_Involved

Active Member
Joined
Jan 26, 2007
Messages
383
I have searched,and restructured the formula all this and can't get to retu

I have this formula that is supposed to give the number of days from Cell “P2”

It is returning the number (43850.07) which is 1/20/20

The answer is supposed to be 90 days

Code:
IF(AND(D31="Discount",$J$2>=0),(NOW()-$P$2),"")

These cell numbers are the cell numbers I am using, also I have even tried to reformat the cells each way possible
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
What is in P2 currently
Try
=IF(AND(D31="Discount",$J$2>=0),TODAY()-$P$2,"")
 
Upvote 0
Code:
IF(AND(D31="Discount",$J$2>=0),(NOW()-$P$2),"")

It is returning the number (43850.07) which is 1/20/20

The answer is supposed to be 90 days
 
Upvote 0
In that case with the formula @Michael M suggested in post#2 I get -91
The only way I can get the result to are reporting is if P2 is blank.
 
Upvote 0
Fluff
yea it will negative
I have a start date in J2, end date 90 days later in P2
I can't change my Text "discount" in D31 for 90 days
My original formula is giving the correct number (43850.07) i just need it to read the number days left to get to P2
I have tried dividing by 365, it still gives me (4385.07),
P2 has a date of 4/30/20
C31 Needs to read days left, (note this number changes as today get closer to P2)
I hope I explained it clear enough

Sorry
 
Upvote 0
Is P2 just the date or is it a formula?
As I said I get only get your result if P2 is empty.
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,896
Members
449,194
Latest member
JayEggleton

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