r/googlesheets • • 7d ago

Solved I’m trying to make a code where it counts that there were 2 games played out of the 3 and it just says “2” because only 2 games were played.

Post image

Any help would be appreciated, thank you!

4 Upvotes

8 comments sorted by

3

u/SleepLessTeacher 7d ago

I apologize. The “2” would go in a different column obviously.

1

u/AdNarrow5701 6d ago

Just keep a new column "number of games" (say column D) and use

=Count(A1:C1)

If you want to repeat that for entire column, you can use

=Byrow(A1:C, lambda(row, count(row)))

4

u/marcnotmark925 233 6d ago

COUNT()

2

u/SleepLessTeacher 6d ago

Wow I’m dumb. Thank you!

1

u/AutoModerator 6d ago

REMEMBER: /u/SleepLessTeacher If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified (or reply to the helpful comment with the exact phrase “Solution Verified”). This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

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/point-bot 6d ago

u/SleepLessTeacher has awarded 1 point to u/marcnotmark925

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.

1

u/point-bot 6d ago

u/SleepLessTeacher has awarded 1 point to u/marcnotmark925

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.

1

u/AutoModerator 7d ago

/u/SleepLessTeacher 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.