I am trying to recreate what is done below in R in alteryx. Some of these functions are not in the R tool. Specifically calling out a specific cell location to use in the calculation and change that location each iteration and how to create output files each interation.
x <- 1
NumRows <- 5
for(x in 1:NumRows){
Contract <- SECustomerDataUS$Customer Data Contract[x]
CombineDataFrameUS$NET <- as.numeric(format(round(CombineDataFrameUS$LIST * CombineDataFrameUS[,Contract],2),
nsmall = 2))
##select the columns to write to file
ColsToWrite <- select(CombineDataFrameUS, ACTIVE:HASDUPLICATE)
writeData(wb, "Parts Master", ColsToWrite, colNames = TRUE)
wbname <- paste("PARTS_MASTER_LINCOLN_ELECTRIC_", SECustomerDataUS$Customer.Name[x], "_",
SECustomerDataUS$Country[x], "_", MMDDYYYY, ".XLSX", sep = "")
saveWorkbook(wb, wbname, overwrite = TRUE)
write.Alteryx(discrep, nOutput = x)
x = x + 1
}