Can't figure out simple Formula - IF statement within 7 Days

FanofExcel18

Board Regular
Joined
Jun 7, 2018
Messages
65
Last Date: 5/30/2018
My formula: =IF(W3<=TODAY()-7,"N","Y")

W3=5/30/2018

I just want the formula to tell me has there been an update within the past week. However, its telling me only one answer for all results. So 6/11/2018 is telling me N when I want it to say Y, 5/30/2018 is telling me Y and it should say N.

Appreciate any help!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I'm getting the exact opposite with (essentially) the same formula you're using...


Excel 2013/2016
AB
15/25/2018N
25/26/2018N
35/27/2018N
45/28/2018N
55/29/2018N
65/30/2018N
75/31/2018N
86/1/2018N
96/2/2018N
106/3/2018N
116/4/2018N
126/5/2018N
136/6/2018N
146/7/2018N
156/8/2018N
166/9/2018Y
176/10/2018Y
186/11/2018Y
196/12/2018Y
206/13/2018Y
216/14/2018Y
226/15/2018Y
Sheet1
Cell Formulas
RangeFormula
B1=IF(A1<=TODAY()-7,"N","Y")


Not sure why you would be getting the opposite answers. How is W3 populated? Hard typed date, or with a formula? (not that it should matter)
 
Upvote 0
Last Date: 5/30/2018
My formula: =IF(W3<=TODAY()-7,"N","Y")

W3=5/30/2018

I just want the formula to tell me has there been an update within the past week. However, its telling me only one answer for all results. So 6/11/2018 is telling me N when I want it to say Y, 5/30/2018 is telling me Y and it should say N.

Appreciate any help!

Hi,

At first you say the formula Always gives you the Same answer, then you say the answer is reversed between Y and N, which is it?

My guess is it's Always giving you Y as the answer, because I suspect the dates in W3 is Not a Real Date (Number), but Text.

See my sample below, Dates in Column A are All entered as TEXT, B1:B2 is using your formula and shows incorrect results, B4:B5 is my suggested "fix" and shows correct results.


Book1
AB
16/11/2018Y
25/30/2018Y
3
46/11/2018Y
55/30/2018N
Sheet87
Cell Formulas
RangeFormula
B1=IF(A1<=TODAY()-7,"N","Y")
B4=IF(A4+0<=TODAY()-7,"N","Y")
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,081
Members
453,021
Latest member
Justyna P

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