I am new to VBA and i am struggling trying to make this work. I am in need of a macro that will process each cell\Column on Sheet1 and Put the Results on Sheet2. I'm sure this is pretty easy for those who are more advanced with VB code. It contains many columns..
Anytime we encounter a "—" or an empty cell we populate the cell with -999 see the example on Sheet2. On the first column1 which contains "0-2" then we create two column and populate it with 0 on column1 and 2 on column2 see example on Sheet2 and if a value is found on only once side we then populate both sides with the same number.
As each column is being process in Sheet1 and
Sheet1
++++++
A B
Column1 Column2
Title Title2
0–2 0–4
3 —
— 5
—
— —
10–23 11—29
And the results should look like this on Sheet2
Sheet2
+++++
A B C D
Column1 Column1 Column2 Column2
Title-A Title-B Title-A Title-B
0 2 0 4
3 3 -999 -999
-999 -999 5 5
-999 -999 -999 -999
—999 -999 -999 -999
10 23 11 29
Thank you in advance!