Thank you dear Scrutinizer,
But problem is some of cells are empty and I want put empty cell instead of replace next cell with it.
e.g look at number 3
NO.......name....family..... id
1...........jack.....black.....104
2..........daniel....nick.......75
3..........albert.................5
You need to normalize the data first. Since line 3 contains only two fields instead of three, how can we know that albert is not supposed to be under column family or that 5 is not column family ? You have to give us some criteria to normalize first.
An example for a criteria could be:
If a line contains only two fields the empty field correspond to the family column.
However, that could have the side effect that if a line has
daniel nick
The rule will make it
NO.......name....family..... id
0.......daniel........nick