Ignoring hiddin values

chrispy

Board Regular
Joined
Apr 26, 2008
Messages
73
I am using the following formula to determine advertising co-op totals.
=((SUMIFS(F2:F45,$D$2:$D$45,$A$51,$E$2:$E$45,$B$51)*0.5)+(SUMIFS(F2:F45,$D$2:$D$45,$A$51,$E$2:$E$45,$C$51)*0.25))*-1

Column F contains advertising costs
Column D contains Y or N (if it qualifies for co-op)
Column E contains percentage of co-op (50% or 25%)
A51=Y
B51=50%
C51=25%

My issue is that this formula does not ignore values when I hide rows.
How can I modify this formula to ignore hiddin values.
All other totals use a formula such as =SUBTOTAL(109,F2:F45) but I can not seem to make this work with the SUMIF() formula.
 

Some videos you may like

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,796
Office Version
  1. 2019
Platform
  1. Windows
Did you solve your problem? What filter criteria are you applying or which column are you filtering on?

ξ
 

Watch MrExcel Video

Forum statistics

Threads
1,123,281
Messages
5,600,704
Members
414,401
Latest member
grenona2020

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
Top