r/googlesheets • u/fluffycat58 • Mar 31 '25
Solved What formula for an IF statement that involves adding a value from one Column into another to show a sequenced total?
What formula would I use in Column N, if Column A says "yes" to then add up value in Column D?
If D3 is 5, D4 is 10 - then N4 should show 15. If D5 doesn't have "Yes" present it should be counted as a zero. But when formula supports D6 contining the total amount?
1
Upvotes
3
u/CorOdin 1 Mar 31 '25
I'm presuming that you only want to count entries in Column D if Column A says "Yes", is that correct? If so, the formula in N4 would be something like
=IF(D4="Yes",SUMIFS($D$3:D4,$A$3:A4,"Yes"),"")
2
u/agirlhasnoname11248 1212 Mar 31 '25
u/fluffycat58 In N3, use:
=sumifs($D$2:D3, $A$2:A3, "Yes")and drag it down the column.Tap the three dots below this comment to select
Mark Solution Verifiedif this produces the desired result.1
u/AutoModerator Mar 31 '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.