Checkbox based on Cross sheet Date reference
Hello,
I am trying to have a checkbox in sheet A auto-check if the date in [Anticipated Transaction Date]@row falls between or is equal to the dates in sheet reference {Blackout Period Tracker Range 1} and sheet reference {Blackout Period Tracker Range 2}.
Help Please!
😅
Answers
-
=IF(AND([Anticipated Transaction Date]@row=>{Blackout Period Tracker Range 1},[Anticipated Transaction Date]@row=<{Blackout Period Tracker Range 2}),1)
-
Thank you @BullandKhmer ! Unfortunately I am getting #INVALID OPERATION. ☹️
-
Yeah that's right. I made a basic syntax error. I'm sure you can figure out what it is.
-
The syntax error I found didn't resolve the issue but thanks anyways.
Common issue: <= (less than or equal to) and >= (greater than or equal to) operator combinations in the wrong order.
-
Hey @BBIrr41
Are your Range 1 and Range 2 references referring to single cells each, or are both/either referring to a longer range (for instance, a column?)
-
Hi @Kelly Moore ,
Range 1 and 2 are referring to a date columns. I have inserted a screenshot for reference.
Thank you!
-
Hey @BBIrr41
I thought that might be the issue. One has to construct IF statements differently when using a cross sheet range, if the range is greater than a single cell. As written, you are asking the IF to do a comparison against the entire column all at once and the formula fails this evaluation.
IF(COUNTIFS({Blackout Period Tracker Range 1},IFERROR(@cell,0)<=[Anticipated Transaction Date]@row, {Blackout Period Tracker Range 2},IFERROR(@cell,0)>=Anticipated Transaction Date]@row)>0,1)
Try this
Kelly
-
Thank you @Kelly Moore ! That worked, one minor bracket missing but easy enough to find. I appreciate you not just helping, but giving me insight on the why. Have a great day!
IF(COUNTIFS({Blackout Period Tracker Range 1},IFERROR(@cell,0)<=[Anticipated Transaction Date]@row, {Blackout Period Tracker Range 2},IFERROR(@cell,0)>=[Anticipated Transaction Date]@row)>0,1)
-
Oops, good catch. My copy paste wasn't quite on point. I'm glad it worked.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!