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.

Sum Values Between Sheets

I am trying to gather the total sum of revenue from a list of events based on singular dates. My main sheet has all events listed with date and revenue. I have a 2nd sheet I am looking to pull the revenue from sheet 1 based on a date range to track the total sum by week (i.e. Week 1 (01/01/23 - 01/07/23) Total Revenue: $1,000.00). I am having trouble pulling the information over to the new sheet between the date ranges.

Answers

  • Community Champion

    Hi @raRoque,

    This is very doable with some cross sheet references.

    For example, here is some sample data:

    The WEEKNUMBER from formula column is using:

    =WEEKNUMBER(Date@row)

    As you want your week 1 to be from Jan 1st to Jan 7th, this needs amending slightly:

    =WEEKNUMBER(Date@row + 1)

    On your 2nd sheet, you can then use a formula with cross references:

    =SUMIF({Amended week number}, [Week number]@row, {Revenue})

    If you're not sure how to do cross sheet references then this article should start you off:

    Sample output from the formula:

    Alternatively you could add date start/end columns on your 2nd sheet and use a SUMIFS formula:

    =SUMIFS({Revenue}, {Event Date}, >=[Date Start]@row, {Event Date}, <=[Date End]@row)

    Pick whichever option you prefer!

    Hope this helps or at least gives you some ideas. If you've any problems/queries then just ask!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • =IFERROR(AVG(COLLECT({Score BA}, {Employee Email BA}, $Variable@row, {Date of Review BA}, ISDATE(@cell), {Date of Review BA}, YEAR(@cell) = $[Last Year]$102, {Date of Review BA}, MONTH(@cell) = [Last …
    User: "Katherine Camacho"
    Answered ✓
    23
    5
  • Hi, I'm trying to write a formula that will look at a particular column (in this case the "extrusion" column) and return the first entry that has a check in the "cycle count is due column". My current…
    User: "Brandon Morales"
    Answered ✓
    15
    2
  • I am trying to get a count for a date range, but am getting a number that is one less compared to the filter. Current Tuesday Formula: =IFERROR(TODAY() + (3 - WEEKDAY(TODAY())) - IF(OR(WEEKDAY(TODAY()…
    User: "Nick0000"
    Answered ✓
    26
    3