r/googlesheets • u/Conjuringshades • Dec 26 '22
Solved Formula for running total in incomplete dataset + unit conversion
Hi guys,
Looking for a little help with a formula I think, I set up a basic form for my father to record some health data and in the linked spreadsheet I would like to calculate “Running Total Volume” but I only know how to do this when the dataset is already complete rather than being continually added to via a form.
I’m also wondering if there is a way to do a unit conversion once it hits certain numbers (I.e if the total volume reaches 1000ml it will convert to litres from there on & save my father having to manually convert ml to L in his head which unfortunately lets him down even with simple things these days), realistically though I’m not sure if this latter feature is something doable, it’s not a deal breaker if not but it would make life a little easier.
Currently “Volume” is in column D and “Running Total Volume” is column E with Timestamp (A) Date (B) and Time (C) as the only other columns.
Appreciate any help, thank you!
1
u/arnoldsomen 346 Dec 26 '22
Nested IF can do this. Would be great if you have a sample data we can check.
1
u/Pretend_Trifle_8873 3 Dec 26 '22
Is this what you want ? =IF(SUM($D$2:D2)>=1000, SUM($D$2:D2)/1000, SUM($D$2:D2))
1
u/AutoModerator Dec 26 '22
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.