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

Month8
ApplesX
OrangeX

<tbody>
</tbody>


Sheet 2

JuneJulyAugust
Apples101520
Orage202530

<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
Joined
Jul 4, 2004
Messages
7,484
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,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.
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
Top