Dynamic MTD

anum

New Member
Joined
Aug 14, 2012
Messages
44
Office Version
  1. 365
Hi if I were to want the month only based on this selection, what's the best way please? as the if statement one is too long and I'm sure there's an easier way!
I would like cols C, D & E pick up values from second table based on PY, BP etc.

3697 P&L_FY21 Jan YTD.xlsx
BCDEFGHIJKLMNOP
2Jan
3 MTD ANALYSIS
4EUR (000)FY20FBP21ACT21vs BP21vs PY
5
6Net Trade Sales000--
7
8Currency000--
9Cost of Other Revenue000--
10COGS000--
116%#DIV/0!#DIV/0!
12
13IC Sales & Services000--
14Standard GP000--
15
16
17
18
19Formula from here for each cyclePY
20YTDYear123456789101112
2120202020JanFebMarAprMayJunJulAugSepOctNovDec
22Net Trade Sales1007,800.00100.00200.00300.00400.00500.00600.00700.00800.00900.001,000.001,100.001,200.00
23Currency1003,600.00100.000.00300.000.00500.000.00700.000.00900.000.001,100.000.00
24Cost of Other Revenue04,200.000.00200.000.00400.000.00600.000.00800.000.001,000.000.001,200.00
25IC Sales & Services1007,550.00100.00200.00250.00400.00450.00600.00650.00800.00850.001,000.001,050.001,200.00
Sheet2
Cell Formulas
RangeFormula
B2B2=Selections!C3
C3C3=UPPER(Selections!A1)&" MTD ANALYSIS"
C6:E6,C13:E13,C8:E9C6=M6
F6,F13:F14,F8:F10F6=E6-D6
G6,G13:G14,G8:G10G6=E6-C6
C10:E10C10=SUM(C7:C9)
D11:E11D11=D10/D6
C14:E14C14=C6-C10+C13
C22:C25C22=SUM(E22:INDEX(E22:P22,Selections!$C$4))
D22:D25D22=SUM(E22:P22)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi Anum,

You didn't provide the Selections sheet, I don't know how your FY runs so I assumed Jan to Dec, I don't know what you mean by PY, BP so I'm supplying what I think you want for column C.

Anum.xlsx
BC
2May
3MAY MTD ANALYSIS
4EUR (000)FY20
5
6Net Trade Sales1500
7
8Currency900
9Cost of Other Revenue600
10COGS1500
110.061598
12
13IC Sales & Services1400
14Standard GP1400
Sheet2
Cell Formulas
RangeFormula
C3C3=UPPER(Selections!A1)&" MTD ANALYSIS"
C6,C13,C8:C9C6=SUMPRODUCT(--($E$22:$P$25)*($E$20:$P$20<=INT(SEARCH($B$2,"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")/4)+1)*($B$22:$B$25=B6))
C10C10=SUM(C7:C9)
C14C14=C6-C10+C13
 
Upvote 0
Solution
Hi Anum,

You didn't provide the Selections sheet, I don't know how your FY runs so I assumed Jan to Dec, I don't know what you mean by PY, BP so I'm supplying what I think you want for column C.

Anum.xlsx
BC
2May
3MAY MTD ANALYSIS
4EUR (000)FY20
5
6Net Trade Sales1500
7
8Currency900
9Cost of Other Revenue600
10COGS1500
110.061598
12
13IC Sales & Services1400
14Standard GP1400
Sheet2
Cell Formulas
RangeFormula
C3C3=UPPER(Selections!A1)&" MTD ANALYSIS"
C6,C13,C8:C9C6=SUMPRODUCT(--($E$22:$P$25)*($E$20:$P$20<=INT(SEARCH($B$2,"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec")/4)+1)*($B$22:$B$25=B6))
C10C10=SUM(C7:C9)
C14C14=C6-C10+C13
Ah amazing!! you're a genius - thank you ever so much :)
 
Upvote 0

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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