calculate amount deepening on month

thedontron

New Member
Joined
Mar 26, 2014
Messages
30
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

[TABLE="width: 500"]
<tbody>[TR]
[TD]Month[/TD]
[TD]8[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Orange[/TD]
[TD]X[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Sheet 2

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]August[/TD]
[/TR]
[TR]
[TD]Apples[/TD]
[TD]10[/TD]
[TD]15[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]Orage[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Please let me know if it is not clear

thank you
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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))),"")
 
Upvote 0

Forum statistics

Threads
1,223,491
Messages
6,172,589
Members
452,468
Latest member
godlennutrition

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top