# Pivot table problem

#### buffalo

##### Board Regular
Hi,

I have three entries in the data columns, say
Data1 Data2 Data2
The rows are for dates and columns for accounts

Now I need to add a new column (in the pivot table) so that Entry(i) =
Data1(i-1) + Data(i-1) - Data3(i-1).

Ofcourse I could just do Value(i-1) = Data1(i-1) + Data(i-1) - Data3(i-1)
(i.e make another data entity as Data1+Data2-Data3)
and keep it in my mind that Value(i-1) will actually correspond to the next date... But i wanted this to be cleaner... and the entry in this new entity correpond properly to the date.

thanks again.

### Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a \$25,000 loan, 5% annual interest, 60 month loan.

Replies
2
Views
108
Replies
8
Views
248
Replies
2
Views
95
Replies
0
Views
135
Replies
7
Views
1K

1,186,173
Messages
5,956,366
Members
438,248
Latest member
Poysenberries

### 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.

### Which adblocker are you using?

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

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