# 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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Replies
7
Views
326
Replies
1
Views
230
Replies
1
Views
182
Replies
5
Views
283
Replies
10
Views
794

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,819
Messages
5,772,461
Members
425,760
Latest member
paphon

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