I'm trying to dynamically reference some columns and make them formulated.
I have a dataset for example
| Column A1 | Column B2 | Column C3 | Column D4 | Column E5 | Column F6 |
| Apple | 1.1 | 0 | dsfdsf | 100 | Red |
| Banana | 4.5 | dasdasd | dsadsad | 20 | Yellow |
| Pear | 1.6 | dasdsa | dsadad | 30 | Green |
| Orange | 2.1 | dasda | adasdsad | 40 | Orange |
| Grape | 1.8 | adasdsad | asdsadsad | 50 | Purple |
What I'm trying to do is that, I'm trying to make a workflow so that my output is column B2 and E5 but both are multiplied by 1000.
Furthermore, I am trying to make sure that when I make the workflow, I want to tell Alteryx not to refer to column B2 and E5 as the columns names as they are because their locations can change in other files, I get. In other words, I want to tell Alteryx to "get the data from the second column multiply it by 1000 and then get the data from the second last column and multiply it by 1000." The columns won't always be named "Column B2" and "Column E5", but they will be positionally the same in other files hundreds of other columns (second from the start, second last and so on).
I want my output to be something like this:
| Fruit | Weight 1 (B2*1000) | Weight 2 (E2*1000) |
| Apple | 1100 | 100000 |
| Banana | 4500 | 20000 |
| Pear | 1600 | 30000 |
| Orange | 2100 | 40000 |
| Grape | 1800 | 50000 |
Any guidance would be appreciated, thank you