A formula that will pickup a new cell and exclude the prior cells

BrianHall

New Member
Joined
Nov 6, 2013
Messages
38
Good afternoon,

I'm trying to figure out a formula that will pickup the current month data automatically but at the same time exclude the prior months data. This will be done in a seperate summary tab from the source data tab.

I should mention that this is a monthly report. So every month that I run the report I need the summary tab to pick up the current data souce that I manually enter.

I hate having to point and click the new month data within the summary tab all the time.

Any help would be greatly appriciated.


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.
Not sure I understand what you want but some info that might help you out.

To have the cell always use the current month put =MONTH(TODAY()) this will return 11 for November, so next month it should be 12 for December. You don't have to manually update the month just use a SUM with an array.

=SUM(IF(MONTH(H1:H26)=MONTH(TODAY()),I1:I26,0))


Excel 2010
BCDEFGHI
1148810-Jan324
211-Jan423
312-Jan4
413-Jan32
511-Nov42
612-Nov34
713-Nov32
814-Nov4
915-Nov324
1016-Nov32
1117-Nov343
1218-Nov3
1319-Nov2
1420-Nov2
1521-Nov432
1622-Nov4
1723-Nov234
Sheet10
Cell Formulas
RangeFormula
B1{=SUM(IF(MONTH(H1:H17)=MONTH(TODAY()),I1:I17,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Good afternoon Shyy,

What I'm looking for is to have the data in Tab #1 (below) automatically pick up the data in Tab #2 (below) when new monthly data is added.

I hate going back into Tab #1 to change the formula to pick up the current data (month) in Tab #2.

I'm just wondering if there is a way to accomplish this task?

[TABLE="width: 96"]
<COLGROUP><COL style="WIDTH: 48pt" span=2 width=64><TBODY>[TR]
[TD="class: xl65, width: 128, bgcolor: yellow, colspan: 2"][TABLE="width: 144"]
<COLGROUP><COL style="WIDTH: 48pt" span=3 width=64><TBODY>[TR]
[TD="class: xl68, width: 192, bgcolor: yellow, colspan: 3"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, bgcolor: transparent"][/TD]
[TD="class: xl67, bgcolor: transparent"][/TD]
[TD="class: xl67, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl64, bgcolor: transparent"][TABLE="width: 144"]
<COLGROUP><COL style="WIDTH: 48pt" span=3 width=64><TBODY>[TR]
[TD="class: xl68, width: 192, bgcolor: yellow, colspan: 3"]Tab #1[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl69, bgcolor: transparent"]Month[/TD]
[TD="class: xl67, bgcolor: transparent"]MTD[/TD]
[TD="class: xl67, bgcolor: transparent"]YTD[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Apr[/TD]
[TD="class: xl66, bgcolor: transparent"]4[/TD]
[TD="class: xl66, bgcolor: transparent"]7[/TD]
[/TR]
</TBODY>[/TABLE]
[/TD]
[TD="class: xl64, bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl63, bgcolor: transparent"][/TD]
[TD="class: xl63, bgcolor: transparent"][/TD]
[/TR]
</TBODY>[/TABLE]


[TABLE="width: 144"]
<COLGROUP><COL style="WIDTH: 48pt" span=3 width=64><TBODY>[TR]
[TD="class: xl67, width: 192, bgcolor: yellow, colspan: 3"]Tab #2[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"][/TD]
[TD="class: xl66, bgcolor: transparent"]MTD[/TD]
[TD="class: xl66, bgcolor: transparent"]YTD[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Jan[/TD]
[TD="class: xl65, bgcolor: transparent"]1[/TD]
[TD="class: xl65, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Feb[/TD]
[TD="class: xl65, bgcolor: transparent"]2[/TD]
[TD="class: xl65, bgcolor: transparent"]3[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Mar[/TD]
[TD="class: xl65, bgcolor: transparent"]3[/TD]
[TD="class: xl65, bgcolor: transparent"]5[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Apr[/TD]
[TD="class: xl65, bgcolor: transparent"]4[/TD]
[TD="class: xl65, bgcolor: transparent"]7[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]May[/TD]
[TD="class: xl65, bgcolor: transparent"]5[/TD]
[TD="class: xl65, bgcolor: transparent"]9[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Jun[/TD]
[TD="class: xl65, bgcolor: transparent"]6[/TD]
[TD="class: xl65, bgcolor: transparent"]11[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Jul[/TD]
[TD="class: xl65, bgcolor: transparent"]7[/TD]
[TD="class: xl65, bgcolor: transparent"]13[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Aug[/TD]
[TD="class: xl65, bgcolor: transparent"]8[/TD]
[TD="class: xl65, bgcolor: transparent"]15[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Sep[/TD]
[TD="class: xl65, bgcolor: transparent"]9[/TD]
[TD="class: xl65, bgcolor: transparent"]17[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Oct[/TD]
[TD="class: xl65, bgcolor: transparent"]10[/TD]
[TD="class: xl65, bgcolor: transparent"]19[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Nov[/TD]
[TD="class: xl65, bgcolor: transparent"]11[/TD]
[TD="class: xl65, bgcolor: transparent"]21[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]Dec[/TD]
[TD="class: xl65, bgcolor: transparent"]12[/TD]
[TD="class: xl65, bgcolor: transparent"]23[/TD]
[/TR]
</TBODY>[/TABLE]
 
Upvote 0
In tab #1 in the month cell:
Code:
=CHOOSE(MONTH(TODAY()),"Jan","Feb","Mar","Apr","May","Jun","Jul""Aug","Sep","Oct","Nov","Dec")
then use vlookups in tab#1 MTD and YTD cells to lookup the month and return MTD and YTD from the table in tab #2.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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