2
I have some data with product prices relative to tariff code :
+==============+========+========+========+========+
| product code | code10 | code20 | code30 | code40 |
|==============+========+========+========+========|
| product1 | 12.3 | 12.4 | 12.5 | 12.6 |
+--------------+--------+--------+--------+--------+
| product2 | 13.3 | 13.4 | 13.5 | 13.6 |
+--------------+--------+--------+--------+--------+
| product3 | 14.3 | 14.4 | 14.5 | 14.6 |
+--------------+--------+--------+--------+--------+
I want to get a table with three columns : product code, price and tariff code
+==============+=======+=============+
| product code | price | tariff code |
|==============+=======+=============+
| product1 | 12.3 | code10 |
+--------------+-------+-------------+
| product1 | 12.4 | code20 |
+--------------+-------+-------------+
| product1 | 12.5 | code30 |
+--------------+-------+-------------+
| product1 | 12.6 | code40 |
+--------------+-------+-------------+
| product2 | 13.3 | code10 |
+--------------+-------+-------------+
| product2 | 13.4 | code20 |
+--------------+-------+-------------+
| ........ | .... | ...... |
+--------------+-------+-------------+
| product3 | 14.6 | code40 |
+--------------+-------+-------------+
I tried to acheive this with a custom paste without success.
Is there anyway to do this with Calc ?
Can you use pivot tables? – Dave – 2014-07-21T09:37:53.020
@DaveRook: Since Pivot tables aren't trivial to use, it would be worth an answer how to solve this using pivot tables. – tohuwawohu – 2014-07-21T09:53:01.357
I'm open to any solution, but if there's no quite simple way to do this in Calc, I would make a small script to end up with this result – Brewal – 2014-07-21T09:59:25.523