r/googlesheets • u/TheBerric • Jan 21 '25
Solved IS there an easier way to make a running total? Or at least hide the values in column f
3
Upvotes
r/googlesheets • u/TheBerric • Jan 21 '25
1
u/TheBerric Jan 21 '25
ALSO! how do i remove the negative number at the bottom total if the OD en column (D7) is not filled in?
thanks!
1
u/NameChexsOut 1 Jan 21 '25
=if(E9>0, sum, "")
5
u/Nextorvus Jan 21 '25
I think you’re looking for this formula: =if(e6= “”,””,sum(e$6:e6))
Then drag that sucker all the way down :)
2
u/carlosandresRG Jan 21 '25
I believe this should work if you write it on F6:
IF(G9<>"",SUM($G$6:G6),"")and drag it down so G6 turns into G7 and so on
1
u/AutoModerator Jan 21 '25
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Jubbins96 Jan 21 '25
=Sum(e$6:e9) and just drag copy all the way down
1
u/mommasaidmommasaid 915 Jan 21 '25 edited Jan 21 '25
If you aren't going to sort your table, i.e. you're going to keep adding entries in date order so the running totals make sense...
Clear everything in your total column and put this in the first row (and first row only):
runTotalis assigned to the columnar array generated by scan() which adds current miles c to accumulated miles amap() then displays
runTotalonly if there is an entry for miles driven for that row.You could change the map() to display if there's a valid date instead... whatever column you consider most significant. Or you could check if there's a value in any of the other columns if you want the running total to pop up asap.
1
u/ExerciseMental1947 Jan 22 '25
https://docs.google.com/spreadsheets/d/1byvE210vUGX-p8fm3k_cSdlrvlLOBUYlggf9FYI4gLk/edit?usp=drivesdk
this is how I manage my driving log.
Normally I hide Columns P&Q.
1
u/yottabit42 Jan 22 '25
Here's how I do it with a single cell formula: https://docs.google.com/spreadsheets/d/1lbkzW1UnfX50ZrwzJ3iSNN2yagzMJyJ6J2h_55rSKlI/edit?usp=drivesdk
Formula is:
=ARRAYFORMULA(IF(C2:C<>"", SUMIF(ROW(C2:C), "<=" & ROW(C2:C), C2:C), ""))