Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Sum every other row
Comments
-
there is no row number function in smartsheets (there's also no mod function, btw)
you might try creating another column with a checkbox, and summing the rows where the checkbox is checked or unchecked.=SUMIFf(CHECKBOX1:CHECKBOX119,=1,WIN1:WIN119)
If you are insistent on odd/even, you could create a column with row numbers see https://community.smartsheet.com/discussion/formula-determine-row-number?_ga=2.214206103.1028967354.1509986821-1501603503.1503930282
then assuming new column ROW
=SUMIFf(ROW:ROW119,@cell/2 = int(@cell/2),WIN1:WIN119) for even (change to <> for odd)
-
Be careful of solutions for this (mine or anyone else's) if you or your users move rows around or delete them. It tends to mess up the formula references (by design, I'm not implying this is a bug, it is just a known issue with solutions like this)
For a check box column (named CheckBox), this formula
=NOT([CheckBox]1)
in row 2 and then copied to the rest of the column (but not row 1), will check alternate rows.
Craig
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives