Formula help - Index, Match, SumProduct/SumIFs? Which one?

im2bz2p345

Board Regular
Joined
Mar 31, 2008
Messages
229
Hi all,

I cannot figure out what combination of Index, Match, and SumProduct (or SumIFs) that I would use to in order to achieve this result. Or perhaps there is more efficient/better way?

BMD - 2024 Packages Cad GCP PB HB Jan to mid Sept.xlsx
CDGHIJK
1MonthDayRecordINIsPB Day of WeekPB Unique INIsPB Day of Week_PB Unique INIPB INI Count
2JanuaryTuesdayEAPMondayABFMonday_ABF
3JanuaryTuesdayWQFMondayAGYMonday_AGY
4JanuaryTuesdayCERMondayAIFMonday_AIF
5JanuaryTuesdayCMPMondayAIIMonday_AII
6JanuaryTuesdayLPPMondayAIPMonday_AIP
7JanuaryTuesdayEPM, EPPMondayAIUMonday_AIU
8JanuaryTuesdayCERMondayATMMonday_ATM
9JanuaryTuesdayCER, WQFMondayBILMonday_BIL
10JanuaryTuesdayCER, CWP, WQFMondayBWQMonday_BWQ
PB
Cell Formulas
RangeFormula
J2:J10J2=PB!$H2&"_"&PB!$I2


*Note*: I have column E & F hidden because it has sensitive information.

My array is Columns $D:$G

In column K ("PB INI Count"), I need a formula that can look at the array and look up the "PB Day of Week" (using column H) and return a count of how many times the 3 letters called "PB Unique INIs"(column I) appear in Column G.

This formula gives me a total count of how many times the 3 letters appears from column I appear in column G: =SUMPRODUCT(--(ISNUMBER(FIND(I2,$G:$G))))

BUT I need it also to filter down by the day of week.

Hope this makes sense. Happy to post any clarifications needed.

~ im2bz2p345 :)
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Also forgot to mention: The values 3 letter string from column will need to be a wildcard lookup ("*"&I2&"*") as column G could have commas, spaces, etc before or after the 3 letter string.
 
Upvote 0
This should be all you need, although it's hard to tell for sure since the example you gave doesn't have any matches.

Book1
CDGHIJK
1MonthDayRecordINIsPB Day of WeekPB Unique INIsPB Day of Week_PB Unique INIPB INI Count
2JanuaryTuesdayEAPMondayABFMonday_ABF0
3JanuaryTuesdayWQFMondayAGYMonday_AGY0
4JanuaryTuesdayCERMondayAIFMonday_AIF0
5JanuaryTuesdayCMPMondayAIIMonday_AII0
6JanuaryTuesdayLPPMondayAIPMonday_AIP0
7JanuaryTuesdayEPM, EPPMondayAIUMonday_AIU0
8JanuaryTuesdayCERMondayATMMonday_ATM0
9JanuaryTuesdayCER, WQFMondayBILMonday_BIL0
10JanuaryTuesdayCER, CWP, WQFMondayBWQMonday_BWQ0
Sheet2
Cell Formulas
RangeFormula
J2:J10J2=H2&"_"&I2
K2:K10K2=COUNTIFS(G:G,I2,H:H,"*"&H2&"*")
 
Upvote 1
Solution
Thank you so much for the quick response @Eric W - I knew there had to be an easier way. I was trying all sorts of things with SUMPRODUCT and SUMIFS.

This is slightly edited formula from your solution is what I ended up using:
=COUNTIFS($G:$G,"*"&I2&"*",$D:$D,H2)

Appears to be exactly what I need and working perfectly. Thanks again. Will mark your response as the solution.

~ im2bz2p345 :)
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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