Excel Question - "upkeep" column?

I keep a bunch of data on every single time I go running, including date, pace, temperature, distance, etc. One of the pieces of data I keep track of is called "upkeep" and it is the sum of my distances ran over the past 30 days. Since I do not go running every single day I can't just use a simple formula to update the "upkeep" column [=sum(a3:a33)]. Also, since months consist of 27, 30, or 31 days, I can't just mentally sum the numbers from 1/20/09 to 2/20/09. So what I have been doing up to this point is the best solution I have thought of: I have conditional formatting on the dates that highlights them if they satisfy [ =A6>TODAY()-30 ]. Then, when I add a new entry I have to go through and manually sum up the distances of the highlighted cells (past 30 days).

I will comment on one thing, and then ask a question.

Comment: I know, I'm a loser and should be spending my time studying or doing something more productive. Oh well.

Question: Is there any way to remove the manual labor from updating the "upkeep" column? If it is possible, I would prefer a solution that doesn't involve macros since I mainly update this spreadsheet from my mac with office 2008 -- However, if it requires macros, that is fine.

5 Comments
 

=SUMIF(A1:A7,">"&(OFFSET(B7,0,COLUMN(A1)-COLUMN(B1))-30),C1)

Column A - dates Column B - upkeep Column C - the stuff being summed

a1:a7 -> all dates, resize as necessary b7 -> current item

replace columns as needed, resize references too.

 

1) there are automated programs to do this, you know 2) here is what I just wrote up, probably more convoluted than it has to be but you can play with it

Assume x refers to the line value of that cell Enter in F1 =TODAY() Enter in F2 =EDATE(F1,-1) Enter in Column A =DATE(YYYY,MM,DD) (fill in appropriate value for that day) Enter corresponding mileage in Column B Program Column C as =EDATE(Ax,0) where x is the column value, ie =EDATE(A1,0), etc. Hide this column Program Column D as =IF(CX>F2,"Recent","Old"). Hide this column. In the spot where you want your upkeep column, enter =SUMIF(D1:D99999,"Recent",B1:B99999)

There are easier ways, you can streamline it once you do that. I'm pretty sure you can enter a straight sumif condition without the column D, but my excel was being pissy about that

 

Voluptas odit eius eos iure et. Doloremque qui et aspernatur voluptas corrupti. Dolores a magnam excepturi facilis.

Quibusdam aut quidem voluptas iusto sint cumque. Laboriosam deserunt ut veniam. Consequuntur molestiae id sed est similique totam earum. Dolorem maxime molestias aut est libero ullam qui et.

Labore corporis alias quibusdam ut minus quia velit. Et architecto minus nisi quaerat pariatur iste officiis. Officiis velit cum perspiciatis totam omnis. Qui occaecati enim est maxime et iusto id.

Career Advancement Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • JPMorgan 01 98.3%
  • Morgan Stanley 08 97.8%
  • Goldman Sachs 02 97.2%

Overall Employee Satisfaction

August 2026 Investment Banking

  • Moelis & Company No 99.4%
  • Evercore No 98.9%
  • Morgan Stanley 01 98.3%
  • Banco Santander 02 97.8%
  • BMO Capital Markets 12 97.2%

Professional Growth Opportunities

August 2026 Investment Banking

  • Evercore 01 99.4%
  • Moelis & Company 01 98.9%
  • Morgan Stanley 06 98.3%
  • Goldman Sachs 01 97.8%
  • JPMorgan 01 97.2%

Total Avg Compensation

August 2026 Investment Banking

  • Vice President (16) $429
  • Associates (47) $258
  • 3rd+ Year Analyst (8) $210
  • 2nd Year Analyst (24) $180
  • Intern/Summer Associate (14) $159
  • 1st Year Analyst (82) $151
  • Intern/Summer Analyst (73) $101
notes
16 IB Interviews Notes

“... there’s no excuse to not take advantage of the resources out there available to you. Best value for your $ are the...”

Leaderboard

1
redever's picture
redever
99.2
2
Secyh62's picture
Secyh62
99.0
3
kanon's picture
kanon
99.0
4
BankonBanking's picture
BankonBanking
99.0
5
Betsy Massar's picture
Betsy Massar
98.9
6
dosk17's picture
dosk17
98.9
7
CompBanker's picture
CompBanker
98.9
8
GameTheory's picture
GameTheory
98.9
9
DrApeman's picture
DrApeman
98.9
10
Linda Abraham's picture
Linda Abraham
98.8
success
From 10 rejections to 1 dream investment banking internship

“... I believe it was the single biggest reason why I ended up with an offer...”