Icon

Forum- Apply column value to date columns

Applies values to columns based on column name, and date ranges


@takbb Brian Bates 18 Jan 2023

execute to view workflow data folderSampleData.xlsxloop through the period columnsCurrent columnMonthStartforward 1 month(start of next month)Back 1 day(to end of current month)MonthEndDecide if the monthly valueis for the current periodcolumnPut this back into variablesCollect the single current columnfor each iterationKeep onlycurrent column(ie the month column)Bring columns back togetherRemove the "Month" columnsas they will be replacedby lower branchBuild string for 1st of monthOutput new spreadsheetOpen File or Folder Excel Reader Column ListLoop Start Variable toTable Row String to Date&Time Date&Time Shift Date&Time Shift Column Rename Rule Engine Table Rowto Variable Loop End (ColumnAppend) Column Filter Column Appender Column Filter String Manipulation Excel Writer execute to view workflow data folderSampleData.xlsxloop through the period columnsCurrent columnMonthStartforward 1 month(start of next month)Back 1 day(to end of current month)MonthEndDecide if the monthly valueis for the current periodcolumnPut this back into variablesCollect the single current columnfor each iterationKeep onlycurrent column(ie the month column)Bring columns back togetherRemove the "Month" columnsas they will be replacedby lower branchBuild string for 1st of monthOutput new spreadsheetOpen File or Folder Excel Reader Column ListLoop Start Variable toTable Row String to Date&Time Date&Time Shift Date&Time Shift Column Rename Rule Engine Table Rowto Variable Loop End (ColumnAppend) Column Filter Column Appender Column Filter String Manipulation Excel Writer

Nodes

Extensions

Links