Convert the rows to Columns

aliikhlaq2006

New Member
Joined
Apr 4, 2012
Messages
44
[TABLE="width: 476"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Posting Date[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD][/TD]
[TD]500 Litre Water Tank White[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD][/TD]
[TD]750 Litre Water Tank White[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD][/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD][/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6

[/TD]
[/TR]
</tbody>[/TABLE]
I want the above result to be displayed by this
[TABLE="width: 590"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Posting Date[/TD]
[TD]Item Name[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
[TABLE="width: 1168"]
<colgroup><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>[TR]
[TD]Posting Date[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD][/TD]
[TD]500 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD][/TD]
[TD]750 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD][/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00017[/TD]
[TD]500 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]very easy to lay out like this[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00018[/TD]
[TD]750 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]item name comes from a lookup of code[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00019[/TD]
[TD]1000 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CODE[/TD]
[TD]Posting Date[/TD]
[TD]Item Name[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
[TABLE="width: 1168"]
<tbody>[TR]
[TD]Posting Date[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD][/TD]
[TD]500 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD][/TD]
[TD]750 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD][/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]02.08.18[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00017[/TD]
[TD]500 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]very easy to lay out like this[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00018[/TD]
[TD]750 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="colspan: 2"]item name comes from a lookup of code[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]FG00019[/TD]
[TD]1000 Litre Water Tank White[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CODE[/TD]
[TD]Posting Date[/TD]
[TD]Item Name[/TD]
[TD]Document[/TD]
[TD]G/L Acct/BP Name[/TD]
[TD]Inventory UoM[/TD]
[TD]Qty[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]11[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00017[/TD]
[TD]02.08.18[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]14[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]15[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]16[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00018[/TD]
[TD]02.08.18[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]8[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]10[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]FG00019[/TD]
[TD]02.08.18[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD="align: right"]6[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
How can you tell me.
 
Upvote 0
If you are allowed to use PowerQuery (PC Excel: 2010/2013 add-in, 2016 and higher - built-in) you can try this

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Posting Date", type text}, {"Document", type text}, {"G/L Acct/BP Name", type text}, {"Inventory UoM", type text}, {"Qty", Int64.Type}}),
    #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Code", each if Text.Contains([Posting Date], "FG") then [Posting Date] else null),
    #"Added Conditional Column1" = Table.AddColumn(#"Added Conditional Column", "Item", each if Text.Contains([#"G/L Acct/BP Name"], "Water") then [#"G/L Acct/BP Name"] else null),
    #"Filtered Rows" = Table.SelectRows(#"Added Conditional Column1", each ([Posting Date] <> null)),
    #"Filled Down" = Table.FillDown(#"Filtered Rows",{"Code", "Item"}),
    #"Filtered Rows1" = Table.SelectRows(#"Filled Down", each ([Qty] <> null)),
    #"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows1",{"Posting Date", "Code", "Item", "Document", "G/L Acct/BP Name", "Inventory UoM", "Qty"})
in
    #"Reordered Columns"


[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#70AD47]Posting Date[/td][td=bgcolor:#70AD47]Code[/td][td=bgcolor:#70AD47]Item[/td][td=bgcolor:#70AD47]Document[/td][td=bgcolor:#70AD47]G/L Acct/BP Name[/td][td=bgcolor:#70AD47]Inventory UoM[/td][td=bgcolor:#70AD47]Qty[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00017[/td][td=bgcolor:#E2EFDA]500 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2109[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
14​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00017[/td][td]500 Litre Water Tank White[/td][td]SI 2109[/td][td]Finished Goods[/td][td]Pcs[/td][td]
13​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00017[/td][td=bgcolor:#E2EFDA]500 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2111[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
11​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00017[/td][td]500 Litre Water Tank White[/td][td]SI 2111[/td][td]Finished Goods[/td][td]Pcs[/td][td]
12​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00018[/td][td=bgcolor:#E2EFDA]750 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2109[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
14​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00018[/td][td]750 Litre Water Tank White[/td][td]SI 2109[/td][td]Finished Goods[/td][td]Pcs[/td][td]
15​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00018[/td][td=bgcolor:#E2EFDA]750 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2111[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
16​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00018[/td][td]750 Litre Water Tank White[/td][td]SI 2111[/td][td]Finished Goods[/td][td]Pcs[/td][td]
12​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00019[/td][td=bgcolor:#E2EFDA]1000 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2109[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
6​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00019[/td][td]1000 Litre Water Tank White[/td][td]SI 2109[/td][td]Finished Goods[/td][td]Pcs[/td][td]
8​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#E2EFDA]02.08.18[/td][td=bgcolor:#E2EFDA]FG00019[/td][td=bgcolor:#E2EFDA]1000 Litre Water Tank White[/td][td=bgcolor:#E2EFDA]SI 2111[/td][td=bgcolor:#E2EFDA]Finished Goods[/td][td=bgcolor:#E2EFDA]Pcs[/td][td=bgcolor:#E2EFDA]
10​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]02.08.18[/td][td]FG00019[/td][td]1000 Litre Water Tank White[/td][td]SI 2111[/td][td]Finished Goods[/td][td]Pcs[/td][td]
6​
[/td][/tr]
[/table]
 
Upvote 0
If you are allowed to use PowerQuery (PC Excel: 2010/2013 add-in, 2016 and higher - built-in) you can try this

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Posting Date", type text}, {"Document", type text}, {"G/L Acct/BP Name", type text}, {"Inventory UoM", type text}, {"Qty", Int64.Type}}),
    #"Added Conditional Column" = Table.AddColumn(#"Changed Type", "Code", each if Text.Contains([Posting Date], "FG") then [Posting Date] else null),
    #"Added Conditional Column1" = Table.AddColumn(#"Added Conditional Column", "Item", each if Text.Contains([#"G/L Acct/BP Name"], "Water") then [#"G/L Acct/BP Name"] else null),
    #"Filtered Rows" = Table.SelectRows(#"Added Conditional Column1", each ([Posting Date] <> null)),
    #"Filled Down" = Table.FillDown(#"Filtered Rows",{"Code", "Item"}),
    #"Filtered Rows1" = Table.SelectRows(#"Filled Down", each ([Qty] <> null)),
    #"Reordered Columns" = Table.ReorderColumns(#"Filtered Rows1",{"Posting Date", "Code", "Item", "Document", "G/L Acct/BP Name", "Inventory UoM", "Qty"})
in
    #"Reordered Columns"


[TABLE="class: head"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Posting Date[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Code[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Item[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Document[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]G/L Acct/BP Name[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Inventory UoM[/COLOR][/TD]
[TD="bgcolor: #70AD47"][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Qty[/COLOR][/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00017[/TD]
[TD="bgcolor: #E2EFDA"]500 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2109[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
14​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00017[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
13​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00017[/TD]
[TD="bgcolor: #E2EFDA"]500 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2111[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
11​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00017[/TD]
[TD]500 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
12​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00018[/TD]
[TD="bgcolor: #E2EFDA"]750 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2109[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
14​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00018[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
15​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00018[/TD]
[TD="bgcolor: #E2EFDA"]750 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2111[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
16​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00018[/TD]
[TD]750 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
12​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00019[/TD]
[TD="bgcolor: #E2EFDA"]1000 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2109[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
6​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00019[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2109[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
8​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD="bgcolor: #E2EFDA"]02.08.18[/TD]
[TD="bgcolor: #E2EFDA"]FG00019[/TD]
[TD="bgcolor: #E2EFDA"]1000 Litre Water Tank White[/TD]
[TD="bgcolor: #E2EFDA"]SI 2111[/TD]
[TD="bgcolor: #E2EFDA"]Finished Goods[/TD]
[TD="bgcolor: #E2EFDA"]Pcs[/TD]
[TD="bgcolor: #E2EFDA"]
10​
[/TD]
[/TR]
[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] "]
[TD]02.08.18[/TD]
[TD]FG00019[/TD]
[TD]1000 Litre Water Tank White[/TD]
[TD]SI 2111[/TD]
[TD]Finished Goods[/TD]
[TD]Pcs[/TD]
[TD]
6​
[/TD]
[/TR]
</tbody>[/TABLE]
It worked for me Thank you SO much and i learn a new tool as well
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top