ivandgreat
Board Regular
- Joined
- Jun 20, 2012
- Messages
- 95
Hi,
anyone could help me to have a macro that will loop in a columns when cell data is found empty @ column IDB will search the adjacent value of column IDA @ column IDB until found nothing follows and concatenate the cell value @ column D and put it in column E.
this is the table below,
<tbody>
</tbody>
The output table below,
<tbody>
</tbody>
br,
ivan
anyone could help me to have a macro that will loop in a columns when cell data is found empty @ column IDB will search the adjacent value of column IDA @ column IDB until found nothing follows and concatenate the cell value @ column D and put it in column E.
this is the table below,
Item | IDA | IDB | Stor | Avail |
1 | 2000 | 2001 | 10 | |
2 | 2001 | 2002 | 20 | |
3 | 2002 | 2004 | 30 | |
4 | 2004 | 40 | ||
5 | 2005 | 2004 | 50 |
<tbody>
</tbody>
The output table below,
Item | IDA | IDB | Stor | Avail |
1 | 2000 | 2001 | 10 | 40 / 30 / 20 / 10 |
2 | 2001 | 2002 | 20 | 40 / 30 / 20 |
3 | 2002 | 2004 | 30 | 40 / 30 |
4 | 2004 | 40 | 40 | |
5 | 2005 | 2004 | 50 | 40 / 50 |
<tbody>
</tbody>
br,
ivan