Nick Burns
Member
- Joined
- May 24, 2017
- Messages
- 162
- Reaction score
- 0
- Points
- 16
- Excel Version(s)
- Office 365
I have 21 columns named for hours worked per day (Regular, Overtime, Double), named as such
rday__1 .. rday__7
oday__1 .. oday__7
dday__1 .. dday__7
This main table will be split into two tables.
Based on a passed parameter, I need to zero out a subset of these columns. For instance if the parameter is 5 I need:
table 1: zero out columns xday__5 .. xday__7
table 2: zero out columns xday__1 .. xday__4
I guess I'm looking at how to pass a subset list of columns to the TransformColumns() to zero them out so that it generates a list of
{"xday__5", each 0, type number} .. {"xday__7", each 0, type number}} for table 1
{"xday__1", each 0, type number} .. {"xday__4", each 0, type number}} for table 2
I can visualize the solution, I just can't seem to translate it correctly to m code.
Thanks for any insight.
rday__1 .. rday__7
oday__1 .. oday__7
dday__1 .. dday__7
This main table will be split into two tables.
Based on a passed parameter, I need to zero out a subset of these columns. For instance if the parameter is 5 I need:
table 1: zero out columns xday__5 .. xday__7
table 2: zero out columns xday__1 .. xday__4
I guess I'm looking at how to pass a subset list of columns to the TransformColumns() to zero them out so that it generates a list of
{"xday__5", each 0, type number} .. {"xday__7", each 0, type number}} for table 1
{"xday__1", each 0, type number} .. {"xday__4", each 0, type number}} for table 2
I can visualize the solution, I just can't seem to translate it correctly to m code.
Thanks for any insight.