Need to create a formula to count cells between 2 numbers in one column and all cells in another column based on filtering criteria

queno

New Member
Joined
Feb 17, 2016
Messages
1
Hi,

I need to create a formula to count cells between 2 numbers in one column and all cells in another column based on filtering criteria.

Column M (Time in secs) has number values
Column AD - (IVR Selection labels) has both numbers and text

Example IVR Selection label from column AD: 9592 - For Road Service

Example of count needed:
(1st criteria - Column M) Provide a single count for all calls(cells) above 90 seconds, (2nd criteria - Column AD) which do not begin with 4 numbers, space, dash, space e.g. "9592 - " the count should also include "blank cells".

Essentially I am just wanting the second criteria to filter and count all calls that don't begin with 4 numbers, space, dash, space so I can know the the % of calls with no IVR option recorded against total calls


Here is a sample of the cells from column AD

9592 - For Road Service
##9#9 criteria 2
9592 - For Road Service
900 criteria 2
9592 - For Road Service
0 criteria 2
9592 - For Road Service
9 criteria 2
9592 - For Road Service
99 criteria 2
9503 - To become a member
#0 criteria 2
9503 - To become a member
90 criteria 2
9592 - For Road Service
9592 - For Road Service
9 criteria 2
9592 - For Road Service
9592 - For Road Service
9592 - For Road Service
9592 - For Road Service

<colgroup><col></colgroup><tbody>
</tbody>
blank cell criteria 2


Appreciate any help to create the required formula.


Thanks
Matt
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
welcome to the board

I haven't quite grasped your requirements. You've mentioned "between 2 numbers" then said everything above 90 seconds?

And are you after 2 separate formulas, or 1 formula?

For requirement 2 alone, an array formula can count any cells containing " - " as characters 5-7. Assuming your data is in cells A1:A20, the following formula would work (entered using Shift + Ctrl + Enter, not just Enter):
=SUM(IF(MID(A1:A20,5,3)<>" - ",1,0))
This doesn't currently count empty cells but that's easy enough once the rest of the requirement is clear
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,926
Members
449,479
Latest member
nana abanyin

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