Division only to visible cells

damav78

New Member
Joined
Sep 29, 2024
Messages
31
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hi, i have a table where at the end of it i have a division formula in order to take the average.
The problem here is that i cannot use average type because it is an average depending on quantity. So i use a simple formula =SUM(W7:W153)/SUM(R7:R153)
(W for quantity, R for price)
My qusetion is how can i make it work only in visible-filtered cells and not at the whole sheet.
Thank you
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
@damav78 Try using AGGREGATE?

Book3
RSTUVWXY
1PriceQtyCalc Visibles
21.60869565
3
4
5
6
721
842
923
1034
1125
1226
1327
1428
1841
19
20
21
Sheet1
Cell Formulas
RangeFormula
Y2Y2=AGGREGATE(9,5,W7:W153)/AGGREGATE(9,5,R7:R153)

HTH
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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