Possible in pivot?

sharshra

Active Member
Joined
Mar 20, 2013
Messages
404
Office Version
  1. 365
I have the following table. On this, I have to count the mod & number of `no´ against each mod. I´m able to get the desired output using the combination of pivot table & formula. However, I´m curious to know if same result can be achieved using pivot only without using formula. Can the experts advise please?

Base table -
search problem.xlsx
BCDE
2#ModDescTC
31Cdfd2
42Ldvsvno
53Aererno
64Lhgh1
75Luiyui9
86Lczcno
97Ccvnv21
108C4rf36
119C34refno
1210Lerer3
Sheet2


Pivot + formula column
I´m using a combination of pivot table & formula to get the count of mod, count of TC & count of TC having `no´.
search problem.xlsx
HIJK
1TC(All)
2
3ModCount of ModCount of TCno
4A111
5C441
6L552
7Grand Total10104
Sheet2
Cell Formulas
RangeFormula
K4:K6K4=LET( mod,$C$3:$C$12, tc,$E$3:$E$12, ROWS(FILTER(mod,(mod=H4)*(tc="no"))))
K7K7=SUM(K4:K6)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
With Power Pivot, write a measure
Excel Formula:
=countx(
Filter(Table1,Table1[TC]="no"),
Table1[TC]
)
Call this Count of TC and then put it in the values in the Pivot Table.
 

Attachments

  • Screenshot 2024-07-12 141836.png
    Screenshot 2024-07-12 141836.png
    52.4 KB · Views: 18
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,171
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