SUMIF need to look for non-specific text

Tristram_ZX81

New Member
Joined
Jun 22, 2021
Messages
45
Office Version
  1. 365
Platform
  1. Windows
I'm using Excel 365. I've been using formula like the one below to count information. So it finds any row with American Football written in the J column that kicks off between 21:01 and 22:00 inthe I column and repeats the corresponding number in the C column.

=SUMIFS('PBi LMS Data'!C4:C1000, 'PBi LMS Data'!I4:I1000, ">=21:01:00", 'PBi LMS Data'!I4:I1000, "<=22:00:00", 'PBi LMS Data'!F4:F1000, "Saturday*", 'PBi LMS Data'!J4:J1000, "American Football*")

I've tried to do the same with the below but I need to alter it so it looks for any instance of the two words 'Zona Gol' rather than a cells that only contains those two words (so for example I need it to count that row even if the L column says 2022 Zona Gol May). Does anyone know how I'd update that please?

#SUMIFS('PBi LMS Data'!C4:C1000, 'PBi LMS Data'!I4:I1000, ">#21:01:00", 'PBi LMS Data'!I4:I1000, "<#22:00:00", 'PBi LMS Data'!F4:F1000, "Saturday*", 'PBi LMS Data'!L4:L1000, "Zona Gol*")
 
Here is another approach that you could try.

Excel Formula:
=LET(r,'PBi LMS Data'!C4:P1000,t,INDEX(r,0,7),SUM(FILTER(INDEX(r,0,1),(t>=TIME(18,,))*(t<=TIME(18,59,))*(ISNUMBER(SEARCH("Monday",INDEX(r,0,4))))*(ISNUMBER(FIND(5,INDEX(r,0,14)))),0)))
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
you are welcome , but Peter_SSs solution may be better and less resourceful
 
Upvote 0

Forum statistics

Threads
1,214,865
Messages
6,121,988
Members
449,060
Latest member
mtsheetz

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