# Formula Assistance, Por Favor!

#### JGlenn

##### New Member
Hey guys,

This one should be cake for you geniuses. I need to create a formula for excel in which I have a Date of Last Visit Column, and an "Active" Column which will be either a Y or N.

I'm trying to set it up so that if the client has visited within the last 31 days of whatever the current date is, they are designated Y, and if 32 days or more, they are N.

Help!

- Josh

### Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
=IF(A2=TODAY()-31,"Y","N")

?

Hi Josh,

Say if your date is in cell A2, in cell B2 try:

=if(a2>today()-31,"y","n")

Thanks.

Well, got beat to the punch but welcome to the board anyway.

Hi Josh
Welcome to the board

If Date of Last Visit i A1, try

=if(today()-int(A1)<=31,"Y","N")

Hope this helps
PGC

pgc01 wins this round, but the war is far from over! I appreciate the help and welcome everyone, and you'll be seeing me around!

Josh

Replies
3
Views
466
Replies
1
Views
97
Replies
4
Views
64
Replies
24
Views
493
Replies
11
Views
385

1,218,539
Messages
6,143,089
Members
450,461
Latest member
Bosavon

### 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.

### Which adblocker are you using?

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

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