# calculate amount deepening on month

#### thedontron

##### New Member
hello there

i have a file with 2 sheet as below and i need to calculate X.

the way i want to do it is that when i change the month Cell the formula must calculate previous result + the new month
so if i calculate apples for June and July total is 25, plus August, formula should give 45

i have to following

Sheet one

 Month 8 Apples X Orange X

<tbody>
</tbody>

Sheet 2

 June July August Apples 10 15 20 Orage 20 25 30

<tbody>
</tbody>

Please let me know if it is not clear

thank you

### Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

#### jim may

##### Well-known Member
Try this... (In Sheet1)

Excel 2012
ABC
1MonthJune<< Type In Last Month Name Desired (not the numeric eqivalent).
2Apples10
3Orange20
Sheet1
Cell Formulas
RangeFormula
B2=IFERROR(SUM(Sheet2!\$B2:INDEX(Sheet2!\$B2:\$D2,,MATCH(Sheet1!\$B\$1,Sheet2!\$B\$1:\$D\$1,0))),"")
B3=IFERROR(SUM(Sheet2!\$B3:INDEX(Sheet2!\$B3:\$D3,,MATCH(Sheet1!\$B\$1,Sheet2!\$B\$1:\$D\$1,0))),"")

Replies
6
Views
249
Replies
8
Views
985
Replies
3
Views
499
Replies
3
Views
1K
Replies
0
Views
307

1,190,781
Messages
5,982,871
Members
439,803
Latest member
sushilneupane

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