if and statement to incorporate rolling 12 month

sgleebs

New Member
Joined
Sep 26, 2017
Messages
1
I am new to rolling 12 month formula. I was able to build a countifs statement which had a segment to include a date that was in rolling 12 month period. Now instead of countifs I am looking to build this formula into my data dump and need to insert a 1 if the data row meets requirements. I thought I could take my countifs statement and switch over to If(and but am having issues.
previous formula -
COUNTIFS(dump!$K:$K,"Contest",dump!$Z:$Z,"Approved",dump!$AA:$AA,">="&DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())))

so if K is contest, z is approved and approved date column is in last 12 months, input a 1

Thanks
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
You can use the very same countifs formula, just change all the range references to the single cell references.

Instead of dump!$K:$K, just put dump!$K2 (whatever row you put the formula in)


Also, you can simplify your date function for last year..

DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()))
Change to
EDATE(TODAY(),-12)
 
Upvote 0

Forum statistics

Threads
1,215,581
Messages
6,125,658
Members
449,247
Latest member
wingedshoes

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