Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Date Formula with Cross Sheet References

I am trying to figure out a formula that will pull data from one sheet to another if it meets a set criteria and it happened during the previous week. I am using the formula below now:

=COUNTIFS({cross sheet reference column}, "specified data", {Date}, >=DATE(2025, 2, 9), {Date}, <=DATE(2025, 2, 15))

and it works great! However I am wanting to replace the information at the end (the part below)

{Date}, >=DATE(2025, 2, 9), {Date}, <=DATE(2025, 2, 15)

so that it updates automatically to pull the data if it occurred during the previous week (Sunday-Saturday) or (Monday to Friday).

We report this data in a weekly Tuesday meeting, so I tried the >=TODAY(-7) but it doesn't pull correctly. I also cant use >=TODAY(-9) because then it includes the Monday of the week we are reporting during and it throws the numbers off. Is there a way to do a range that auto populates without me having to go in and change the date weekly? I have about 20 ranges it is pulling for data right now, so I've been trying to find a fix to this without someone having to manually go in and change the dates.

Let me know if there is any additional data you need!

Tags:

Best Answer

  • ✭✭✭
    edited 02/23/25 Answer ✓

    =COUNTIFS({cross sheet reference column}, "Specified Data",{Date}, >= (TODAY() - WEEKDAY(TODAY()) - 6), {Date}, <= (TODAY() - WEEKDAY(TODAY()) - 1))

    This is working for me can you try this

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I have a pretty basic sheet that I am using to develop a formula, and am encountering an issue I haven't seen before. The formula isn't including my second row for some reason. It isn't a huge issue f…
    User: "jjg279"
    Answered ✓
    9
    2
  • I'm sure that this is an easy fix but I've tried a bunch of different ways and can't get this to work. I need to get the max date from a sheet to feed it into my meta data sheet (dates are stored in d…
    User: "susanmgfin"
    Answered ✓
    8
    2
  • I need help to come up with the risk formula. I tried many different formulas and tried to modify it but just can't seem to have desired results. So these are the conditions I MUST meet: Program is a …
    User: "Ronak"
    Answered ✓
    29
    6