Calculate Year-to-date figures taken from another table in one cell based on selecting a month in a dropdown list

Potbellyyemi

New Member
Joined
Mar 16, 2018
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I want cells to update "Actual" and "Budget" year-to-date values taken from a separate table based on my selecting the month from the dropdown list in Cell A1. For example, when I select Jan-23, figures for Jan-23 will show. When I select Feb-23, a cumulative figure for Jan 23 - Feb-23 will show, and so on and so forth, all the way to Dec-23. Is there a formula that can do this?

A formula for "Current Month" was ok as I could just do a match on the description and on the month selected in the dropdown, but I can't figure out what to do for Year-to-date as it needs to pick up (or ignore) additional columns when I select a month . The formula needs to be in the first table below from cells G4 - G18 and the figures are taken from the 2nd table below.

Many thanks in advance for your help!

Management accounts working file - Jan 2023.xlsx
ABCDEFGHIJ
1Jan-23
2CURRENT MONTHYEAR TO DATE
3DESCRIPTIONActualBudgetVariance% VarActualBudgetVariance% Var
4Turnover363414.0%--
5Cost of sales712(5)(39.1%)--
6Gross Profit2923626.1%--
7GPM00021.3%--
8Advertising-2(2)(100.0%)--
9People costs65174(109)(62.6%)--
10Professional fees/IP09(9)(99.4%)--
11Property costs-6(6)(100.0%)--
12Other overheads117(17)(96.7%)--
13Total overheads66211(145)(68.8%)--
14EBITDA(37)(188)151(80.3%)--
15R&D claim*66(0)(0.7%)--
16PAT(32)(183)151(82.7%)--
17Gross burn**66211(145)(68.8%)--
18Net burn**37188(151)(80.3%)--
19
P&L Summary Table
Cell Formulas
RangeFormula
B4:B18B4=OFFSET('Slide tables'!$P$4,MATCH('P&L Summary Table'!$A4,'Slide tables'!$P$5:$P$23,0),MATCH('P&L Summary Table'!$A$1,'Slide tables'!$Q$4:$AB$4,0))
C4:C18C4=OFFSET('Slide tables (Base)'!$P$4,MATCH('P&L Summary Table'!$A4,'Slide tables (Base)'!$P$5:$P$23,0),MATCH('P&L Summary Table'!$A$1,'Slide tables (Base)'!$Q$4:$AB$4,0))
D4:D18,I4:I18D4=B4-C4
E4:E18,J4:J18E4=IF(C4=0,"-",(D4/C4))
Cells with Data Validation
CellAllowCriteria
A1ListJan-2023,Feb-2023,Mar-2023,Apr-2023,May-2023,Jun-2023,Jul-2023,Aug-2023,Sep-2023,Oct-2023,Nov-2023,Dec-2023


Management accounts working file - Jan 2023.xlsx
PQRSTUVWXYZAAABAC
4£000Jan-23Feb-23Mar-23Apr-23May-23Jun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23Total
5Turnover348788951041051131321351451601671,364
6Cost of sales121313151515181919222313196
7Gross Profit237575808990951131151231361541,168
8GPM66%85%85%85%86%86%84%86%86%85%85%92%86%
9Advertising24455567778868
10People costs1741902052062072072082102102112122122,454
11BD travel31716161111111111111111143
12Professional fees/IP94745999999999181
13Property costs66666666666667
14Other overheads171717171717171717171717207
15Total overheads2112812942592562562572602602612632633,120
16
17EBITDA(188)(207)(219)(179)(166)(166)(162)(147)(145)(138)(126)(109)(1,952)
18Depn0000000000004
19PBT(189)(207)(219)(180)(167)(166)(162)(147)(145)(139)(127)(109)(1,956)
20R&D claim*66666666666667
21PAT(183)(202)(214)(174)(161)(160)(157)(141)(139)(133)(121)(103)(1,889)
22Gross burn2112812942592562562572602602612632633,120
23Net burn1882072191791661661621471451381261091,952
Slide tables (Base)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try this in G4, the inconsistent use of "*" may come back to bite you later.
I have removed the "**" using substitute to make this work.

Excel Formula:
=SUM(
         FILTER(
                     FILTER('Slide tables (Base)'!$P$4:$AC$23,
                                  ('Slide tables (Base)'!$P$4:$AC$4>=DATE(2023,1,1)) * ('Slide tables (Base)'!$P$4:$AC$4<=$A$1)),
                    'Slide tables (Base)'!$P$4:$P$23=SUBSTITUTE($A4,"**","")),0)
 
Upvote 0
Try this in G4, the inconsistent use of "*" may come back to bite you later.
I have removed the "**" using substitute to make this work.

Excel Formula:
=SUM(
         FILTER(
                     FILTER('Slide tables (Base)'!$P$4:$AC$23,
                                  ('Slide tables (Base)'!$P$4:$AC$4>=DATE(2023,1,1)) * ('Slide tables (Base)'!$P$4:$AC$4<=$A$1)),
                    'Slide tables (Base)'!$P$4:$P$23=SUBSTITUTE($A4,"**","")),0)
@Alex Blakenburg Thanks a lot for this, it worked. I have now removed the use of "**" in the workbook. How do I modify the formula correctly by deleting the need to substitute? everything I have tried is coming back with a #VALUE! error.

Thank you.
 
Upvote 0
Without the substitute and return 0 is nothing is found use this:
Excel Formula:
=SUM(
         FILTER(
                     FILTER('Slide tables (Base)'!$P$4:$AC$23,
                                  ('Slide tables (Base)'!$P$4:$AC$4>=DATE(2023,1,1)) * ('Slide tables (Base)'!$P$4:$AC$4<=$A$1)),
                    'Slide tables (Base)'!$P$4:$P$23=$A4,0))

Unless you have some error checking eg make sure the vertical additions agree to the totals you are brining in, you might be better off letting the error show if it is not found. Which is what would happen if you left out the ",0" at the end
Excel Formula:
=SUM(
         FILTER(
                     FILTER('Slide tables (Base)'!$P$4:$AC$23,
                                  ('Slide tables (Base)'!$P$4:$AC$4>=DATE(2023,1,1)) * ('Slide tables (Base)'!$P$4:$AC$4<=$A$1)),
                    'Slide tables (Base)'!$P$4:$P$23=$A4))
 
Last edited:
Upvote 1
Solution

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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