+ Reply to Thread
Results 1 to 3 of 3

previous days in a formula

  1. #1
    Registered User
    Join Date
    11-08-2008
    Location
    NC
    Posts
    13

    previous days in a formula

    How do I make this formula show yesterday, the day before that, and so on up to 90 days back???

    =SUMIF(Bankroll!Q14:Q6000,TODAY(),Bankroll!Y14:Y6000)

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Yesterday is just TODAY()-1

    If you want 91 separate formulas then probably best to put this formula in A2

    =TODAY()

    Then in A3 copied down to A92

    =A2-1

    Then you can use your formula in B2 copied down, but revised to:

    =SUMIF(Bankroll!Q$14:Q$6000,A2,Bankroll!Y$14:Y$6000)

  3. #3
    Registered User
    Join Date
    11-08-2008
    Location
    NC
    Posts
    13
    Exactly what I was trying to do. Thank you very much.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1