How to use countifs with multiple criteria and one criteria will look up in more than 2 columns to count

shamanlady02

New Member
Joined
Jan 29, 2021
Messages
3
Office Version
  1. 2016
  2. 2013
Platform
  1. Windows
I tried to extend the criteria range in other column if possible to lookup the match part (where in M will match any value within column M to AC) then will meet the other criteria includes in countifs but result became value. Any suggestions will do. TIA ?:)



Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
1RANGETICKETFAULT DESCRIPTIONREPEATER COUNTSAME DIS COUNTCOMPLAINT TYPEPRIORITYMONTHTYPEPARTCAUSE:ENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYCAUSEENTITYTELEPHONE #SERVICE IDSTATUSAGREED DATESERVICE TYPEPACKAGEDATE EXTRACTEDDATE COMPLETED
2NOT PQI11#VALUE!VOICE 124:451, 174:4571244511744571223COMPLETED 9/1/2020
3NOT PQI241DATA 143:4531434531224COMPLETED 9/1/2020
4NOT PQI341DATA 143:453, 274:456, 4G0:30H1434532744564G030H1224COMPLETED 9/1/2020
5NOT PQI411DATA 274:45S, 27M:30H, 27M:30W27445S27M30H27M30W1225COMPLETED 9/1/2020
6NOT PQI501VOICE 124:451, 274:45S12445127445S1223COMPLETED 9/8/2020
7NOT PQI501DATA 274:4L4, GRD:4FQ2744L4GRD4FQ1224COMPLETED 9/10/2020
8NOT PQI631DATA M96:M72M96M721226COMPLETED 9/1/2020
9NOT PQI711DATA 574:4435744431227COMPLETED 9/1/2020
10NOT PQI801VOICE 124:4511244511229COMPLETED 9/1/2020
Sheet1
Cell Formulas
RangeFormula
E2E2=COUNTIFS($AD$2:$AD$976693,$AD2,$M$2:$AC$976693,$M2,$B$2:$B$976693,"<>",$AK$2:$AK$976693,"<="&$AK2+30)
E3:E10E3=COUNTIFS($AD$2:$AD$976693,$AD3,$M$2:$M$976693,$M3,$B$2:$B$976693,"<>",$AK$2:$AK$976693,"<="&$AK3+30)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi & welcome to MrExcel.
How many rows of data do you actually have?
 
Upvote 0
Ouch.
You can try this
Excel Formula:
=SUMPRODUCT(($AD$2:$AD$976693=$AD2)*($M$2:$AC$976693=$M2)*($B$2:$B$976693<>"")*($AK$2:$AK$976693<=$AK2+30))
but it could well crash with that amount of data.
 
Upvote 0
Solution
Ouch.
You can try this
Excel Formula:
=SUMPRODUCT(($AD$2:$AD$976693=$AD2)*($M$2:$AC$976693=$M2)*($B$2:$B$976693<>"")*($AK$2:$AK$976693<=$AK2+30))
but it could well crash with that amount of data.
it works! thank you so much ☺️
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

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