Toggle Feature on Summary

volsfan210

New Member
Joined
Jul 24, 2024
Messages
13
Office Version
  1. 365
Hi -

Have the below summary that is pulling from a data sheet in excel and this is the current formula.

=SUMPRODUCT(('INITAL ENTRY DATA RAW'!$L$1:$BD$1='PHASE SUMMARY'!D$6)*('INITAL ENTRY DATA RAW'!$L$2:$BD$2='PHASE SUMMARY'!$C7)*'INITAL ENTRY DATA RAW'!$L$4:$BD$1999)

In column D of the initial entry is a code "ABCD" & XYZ". Is there a way to add to add a feature to be able to give me the values based off the Code.

Ideally I would like to be able to filter just the ABCD data or the XYZ data.

Know a Macro is possible just would like to avoid if possible. If you cant avoid a macro any suggestion on an easy macro.

MonthFY25
Oct
$1,125,768​
Nov
$899,958​
Dec
$3,652,682​
Jan
$7,238,447​
Feb
$2,744,907​
Mar
$3,542,727​
Apr
$3,834,478​
 

Attachments

  • Test 4.png
    Test 4.png
    20.2 KB · Views: 6

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
We don't know what's in 'PHASE SUMMARY' or what your data look like, but as an example since you're using 365 you can use a FILTER formula like so:
Book1
ABCD
1Code:ABCD
2Oct$1,125,768
3Nov$899,958
4Jan$7,238,447
5Mar$3,542,727
Sheet1
Cell Formulas
RangeFormula
C2:D5C2=FILTER('INITIAL ENTRY DATA RAW'!B6:C13,'INITIAL ENTRY DATA RAW'!D6:D13=C1)
Dynamic array formulas.


where the input data on 'INITIAL DATA ENTRY RAW' looks like this:
Book1
BCD
6MonthFY25Code
7Oct$1,125,768ABCD
8Nov$899,958ABCD
9Dec$3,652,682XYZ
10Jan$7,238,447ABCD
11Feb$2,744,907XYZ
12Mar$3,542,727ABCD
13Apr$3,834,478XYZ
INITIAL ENTRY DATA RAW
 
Upvote 0
We don't know what's in 'PHASE SUMMARY' or what your data look like, but as an example since you're using 365 you can use a FILTER formula like so:
Book1
ABCD
1Code:ABCD
2Oct$1,125,768
3Nov$899,958
4Jan$7,238,447
5Mar$3,542,727
Sheet1
Cell Formulas
RangeFormula
C2:D5C2=FILTER('INITIAL ENTRY DATA RAW'!B6:C13,'INITIAL ENTRY DATA RAW'!D6:D13=C1)
Dynamic array formulas.


where the input data on 'INITIAL DATA ENTRY RAW' looks like this:
Book1
BCD
6MonthFY25Code
7Oct$1,125,768ABCD
8Nov$899,958ABCD
9Dec$3,652,682XYZ
10Jan$7,238,447ABCD
11Feb$2,744,907XYZ
12Mar$3,542,727ABCD
13Apr$3,834,478XYZ
INITIAL ENTRY DATA RAW
Hi -

I apologize should have given more detail on the data file I'm pulling from. The months are going across the columns where as the code is in the row.

Attached a sample of the raw data im pulling from "Inital Entry"
 

Attachments

  • Test 5.png
    Test 5.png
    63.8 KB · Views: 5
Upvote 0
I realise you've provided test data here, but I can't understand how your original formula gave the correct answer as it never refers to the values in column C of your test data.

Nevertheless, based on what you have provided (you will need to modify ranges and sheet name references to suit) you can use a formula such as the one shown at B24.

Book1
ABCDEFLMNOPQ
1FY25FY25FY25FY25FY25
2OctNovDecJanFeb
3 Activity ID DepartmentFY-GGroupActivity Name1/10/20241/11/20241/12/20241/01/20251/02/2025
4 TEST-SP01-01-10415 PMFY26XYZTEST60132.38
5 TEST-SP01-01-10415 PMFY26XYZTEST
6 TEST-SP01-01-10415 PMFY26XYZTEST
7 TEST-SP01-01-10415 PMFY26XYZTEST54528.03
8 TEST-SP01-01-10415 PMFY26XYZTEST
9 TEST-SP01-01-10415 PMFY26XYZTEST9725.22
10 TEST-SP01-01-10415 PMFY26XYZTEST33596.1848507.67
11 TEST-SP01-01-10415 PMFY26XYZTEST
12 TEST-SP01-01-10415 PMFY26XYZTEST50662.22
13 TEST-SP01-01-10415 PMFY26XYZTEST
14 TEST-SP01-01-10525 PMFY25ABCTEST11600.4139467.8550814.5746442.4850464.07
15 TEST-SP01-01-10525 PMFY25ABCTEST5126.487359.274733.8719330.636635.46
16 TEST-SP01-01-10525 PMFY25YYYTEST31529.3842686.7130189.0652810.349728.72
17 TEST-SP01-01-10525 PMFY25ABCTEST17122.8648309.5025573.6338651.7242861.16
18 TEST-SP01-01-10525 PMFY25ABCTEST35100.5940981.7118660.4227356.0843991.75
19 TEST-SP01-01-10525 PMFY25ABCTEST18310.0559284.2645390.5810468.253767.33
20 TEST-SP01-01-11030 PMFY28XYZTEST
21
22
23 Criteria:
24FY25Oct87260.39
25ABCNov195402.6
26Dec145173.1
27Jan142249.2
28Feb147719.8
29
30
INITAL ENTRY DATA RAW
Cell Formulas
RangeFormula
L1:P1L1="FY" & (YEAR(L3)+(MONTH(L3)>=7)-2000)
L2:P2L2=TEXT(L3,"mmm")
B24:C68B24=IFERROR(LET(_a,VSTACK(L2:BD2,BYCOL(FILTER(FILTER(L4:BD20,(C4:C20=A24)*(D4:D20=A25)),(L1:BD1=A24)),LAMBDA(array,SUM(array)))), TRANSPOSE(IF(_a=0,"",_a))),"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,588
Members
453,055
Latest member
cope7895

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