Using a COUNTIFS formula with a less-than criteria

nj167252

New Member
Joined
May 10, 2016
Messages
4
Below is the table I am working with. The "Call Sequence" column is just a continuous list of Calls (1 to 2221). There are 11 different call types with 11 corresponding Prefixes. Because there are many calls of the same Call Type I would like to count them. I also want to have the "Suffix" represent the latest total number of that specific Call Type.
Call SequenceDateCall TypePrefixSuffix
0221130/05/16PRIMARYPR0
0221231/05/16PROCEDUREPD0
0221331/05/16TRANSFERTF0
0221401/06/16CASE FILE MXMX0
0221502/06/16ADMISSIONAD0
0221602/06/16UNSERVICED- CancelledUNc0
0221706/02/16UNSERVICED- UnaffordableUNu0
0221803/06/16UNSERVICED- Conveyed by other meansUno0
0221904/06/16UNSERVICED- No available ambulanceUNn0
0222004/06/16ICU TRANSFERICUTF0
0222104/06/16CASE FILE MXMX0

<tbody>
</tbody>

So, for example, row 02214 has a Prefix "MX," I want the suffix of that row to show "001." And on row 02221, which also has a Prefix "MX," that suffix should show "002." When I use a COUNTIFS formula (=COUNTIFS([Prefix], [@Prefix],[Call Sequence], "<=[@[Call Sequence]]"), it shows "0" as the result.

Any help is much appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
For < or > operations, the criteria needs to be written like

"<="&[@[Call Sequence]]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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