bookworm121
New Member
- Joined
- Jun 22, 2011
- Messages
- 39
So i need to get these function into a macro so that no matter what the size of the spreadsheet it loops till the very end. I have the logic figured out I just need help writing the actual code.
Assume x is the row number... so is we're at Ax this means we're in cell A2 while if we're at Ax-1 we're in A1 for that example...
We have 2 columns C and D that are pre-filled.
In column E's first cell I need this function: =if(c1="",D1&" "&D2, D1)
in the rest of column E's cells I need this function: = if(Cx-1<>"",Dx,Ex-1&" "&Dx)
In column F i need this function: =if(Cx="","",Ex) for all the cells
Then I need to delete both columnd D and E
any help would be wonderful! thanks
Assume x is the row number... so is we're at Ax this means we're in cell A2 while if we're at Ax-1 we're in A1 for that example...
We have 2 columns C and D that are pre-filled.
In column E's first cell I need this function: =if(c1="",D1&" "&D2, D1)
in the rest of column E's cells I need this function: = if(Cx-1<>"",Dx,Ex-1&" "&Dx)
In column F i need this function: =if(Cx="","",Ex) for all the cells
Then I need to delete both columnd D and E
any help would be wonderful! thanks