Applying formulas only to filtered range

jungle125

New Member
Joined
Nov 5, 2022
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hi

How does one change the formulas in row 1 so that they automatically apply only to the filtered range when for example, I want to filter by sector (column J). I´ve seen this before but have no clue if it´s a formula or a setting.

Thanks for any help!

01 Master + Observations.xlsx
ABCDEFGHIJ
1122247.5%3935323232SECTOR
2Column1Column2Column3Column4Column5Column6Column7Column8Column9
301 AAPL.xlsx4523%11111Information Technology
402 MSFT.xlsx00000Information Technology
503 GOOG.xlsx133927%11111Communication Services
604 AMZM.xlsx131947%1211999Consumer Discretionary
705 BRK-B.xlsx00000Financials
806 TSLA.xlsx92146%65455Consumer Discretionary
9001 LAC - Copy.xlsx132224%32321Health Care
1008 JNJ.xlsx00000Health Care
1109 XOM.xlsx00000Energy
1210 JPM.xlsx183717%10111Financials
1311 NVDA.xlsx102559%1414121213Information Technology
14001 - Copy.xlsx00000Information Technology
1513 WMT.xlsx16647%11111Consumer Staples
1614 CVX.xlsx00000Energy
1715 LLY.xlsx00000Health Care
Sheet2
Cell Formulas
RangeFormula
B1B1=AVERAGE(AAPL[Column2])
C1C1=AVERAGE(AAPL[Column3])
D1D1=SUMPRODUCT(AAPL[Column4],AAPL[Column5])/SUM(AAPL[Column5])
E1:I1E1=SUM(E3:E17)
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
You need to use the SUBTOTAL function.
 
Upvote 0

Forum statistics

Threads
1,215,232
Messages
6,123,765
Members
449,120
Latest member
Aa2

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