# How to combine 2 list in mathematica

I have 2 list:

cumlativeNetProfitLoss = Drop[FoldList[Plus, 0, listNetProfitLoss], 1]

{1.11, 2.07, 2.75, 3.49, 3.79, 10.2, 11.03, 19.84, 22.07, 23.29}

and

dateList = Reverse[dateNetProfitLoss[[All, 1]]]
{{2011, 8, 31}, {2011, 9, 2}, {2011, 9, 6}, {2011, 9, 20}, {2011, 9, 21}, {2011, 9, 22}, {2011, 9, 28}, {2011, 9, 30}, {2011, 10, 4}, {2011, 10, 10}}

How to I get:

{{{2011, 8, 31}, 1.11}, {{2011, 9, 2}, 2.07}, {{2011, 9, 6}, 2.75}, {{2011, 9, 20}, 3.49}, {{2011, 9, 21}, 3.79}, {{2011, 9, 22}, 10.2}, {{2011, 9, 28}, 11.03}, {{2011, 9, 30}, 19.84}, {{2011, 10, 4}, 22.07}, {{2011, 10, 10}, 23.29}}

Alternate:

(
{2011,8,31} 1.11
{2011,9,2}      2.07
{2011,9,6}      2.75
{2011,9,20}      3.49
{2011,9,21}      3.79
{2011,9,22}      10.2
{2011,9,28}      11.03
{2011,9,30}      19.84
{2011,10,4}      22.07
{2011,10,10} 23.29
)
LVL 1
###### Who is Participating?

Commented:
Just add the new data as a fourth column. Either just add another column to the current matrix or make a new matrix with a width of four.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.