Date formula to reference another cell

tina.walter70356
tina.walter70356 ✭✭
edited 12/09/19 in Formulas and Functions

Good Morning!

I'm seting up a metrics spreadsheet with a lot of formulas.Β  The person who will be administering it in the future isn't really familiar with formulas so I'd like to make it as easy as possible.Β  IΒ created a formula that does what I needΒ =COUNTIFS({Date Reported}, >=DATE(2018, 11, 26), {Date Closed}, <=DATE(2018, 12, 2))Β 

Rather than include the actual date in the formula I would like to reference a table of dates in the same or a different sheet.Β  For example, is there a way to sayΒ =COUNTIFS({Date Reported}, >=DATE(Week 1, Start Date), {Date Closed}, >=DATE(Week 1, End Date))?

Β 

Β  Β  Β  Β  Β  Β  Β  Β  Β  Start DateΒ Β  Β End Date

Week 1Β Β  Β 11/26/2018Β Β  Β 12/02/2018

Week 2Β Β  Β 12/03/2018Β Β  Β 12/09/2018

Week 3Β Β  Β 12/10/2018Β Β  Β 12/16/2018

Β 

I'm thinking this would allow the administrator to maintain the dates for each week in the table versus dealing with formulas.Β  If anyone has another solution that would be great too.

Β 

Thanks for your help!

Tags:

Comments

  • Mike Wilday
    Mike Wilday Community Champion

    Yes, this is totally possible.

    Make sure the column where you are entering the date is a Date Column type.

    You would reference the cell by using its column title and cell number. But if the cell is already formatted as a date refrenceΒ you don't have to use the Date() formula, just reference the cell as in my attached screenshot. I used the column and cell refernce of Today1 (today was my column name... not the Today() formula.Β 

    Anyhow you should be able to do your Countifs and then just reference the cell on your sheet that you set up, without using the DATE function because the cell is already formatted by the date column.Β 

    2018-12-06_09-05-46.jpg

  • tina.walter70356
    tina.walter70356 ✭✭

    Thank you Mike, that was the key to get me started. I knew it was something simple.Β 

    I've included a screenshot for anyone else who may be trying to do something similar.Β  The formula works great!

    Ticket Report.JPG

  • Mike Wilday
    Mike Wilday Community Champion

    You're welcome! Glad I could put you on the right track.Β 

  • timclare
    timclare ✭✭

    Hi, is there any way that you can reference dates in a cell within a formula in a column that isn't formatted as a date? ie. I'm trying to do a summary table of the number of items matching a criteria between a date range, and want to reference the date at the top of the summary table. But given I can't format the summary column with the formula results as a date column, it's impossible to use a date at the top of the column for a date reference.

    Any help would be appreciated!

  • Hi @timclare

    You can turn dates into text by adding quotes at the end of your formula... for example:

    =[Date Column]@row + ""

    The + "" will translate the date into text so it can display in a Text/Number column!

    Chers,

    Genevieve

    Need more information? πŸ‘€ | Help and Learning Center

    こんにけは (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao!πŸ‘‹ | Global Discussions

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!