Subtotal on Filtered Rows using Sumproduct - Wildcard substitute

Sonymacd

New Member
Joined
Oct 24, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I would love some help correcting this pickle! I need to show the total of 1 column, based on whether another column contains certain text.

Looking through posts and blogs, I have gotten this far, but it will only total if BBA is the only Program in column P. It would solve my problem if I could use wildcard around BBA but of course sumproduct doesn't work that way.

=SUMPRODUCT((P6:P215="BBA")*(SUBTOTAL(109,OFFSET(I6,ROW(I6:I215)-MIN(ROW(I6:I215)),0))))

I have the Awards in Column I and Eligible Programs in Column P (which lists one or many programs). When I filter on Column F to show only Entrance Awards, I would like the BBA Award Total to be reflective of only the rows in the view.


Grateful for anyone able to assist!
 

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,139
Office Version
  1. 365
Platform
  1. Windows
How about
Excel Formula:
=SUMPRODUCT((ISNUMBER(SEARCH("BBA",P6:P215)))*(SUBTOTAL(109,OFFSET(I6,ROW(I6:I215)-MIN(ROW(I6:I215)),0))))
 

Sonymacd

New Member
Joined
Oct 24, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
How about
Excel Formula:
=SUMPRODUCT((ISNUMBER(SEARCH("BBA",P6:P215)))*(SUBTOTAL(109,OFFSET(I6,ROW(I6:I215)-MIN(ROW(I6:I215)),0))))
You, my friend, are a genius! Thank you so much :love: (y)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,139
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

ootkhopdi

Board Regular
Joined
Sep 30, 2013
Messages
68

ADVERTISEMENT

Hi Everyone,,
Please tell me how sum of every nth row in filtered data,
i mean if i filter my data in excel from row 4 to row 400, i want to sum every 3rd row after data, in row 401, (Sum of Row 4,7,10,....), in row 402,(Sum of Row 5,8,11.......) in row 403( Sum of row 5,9,12,......) Please tell me how can do it..


Thanks in advance
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
53,139
Office Version
  1. 365
Platform
  1. Windows
As this is a totally different question from the op, you need to start a new thread. Thanks
 

Watch MrExcel Video

Forum statistics

Threads
1,122,995
Messages
5,599,256
Members
414,299
Latest member
thenewworld

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