Frequency syntax

The Grim Discovery

Board Regular
Joined
Jan 23, 2015
Messages
244
Office Version
  1. 365
Platform
  1. Windows
Hello

Recently I got some help on here putting a frequency function into a worksheet. I've been using & adapting this as required.

This is typical of the formula I've been using.

{=SUM(--(FREQUENCY(IF($V$4:$V$498="UNITED 1",MATCH($AD$4:$AD$498,Nov2018Daily!$AD$4:$AD$498,0)), ROW($AD$4:$AD$498)-ROW(AD35)+1)>0))}

But in the instance above I need to match both "United 1" and "United 2" into the same formula - that is I want the frequency of "United 1" and "United 2" to be aggregated as one. So if there are 5 instances of "United 1" and 3 instances of "United 2" I'd want the answer to be generated as 8

I've been summing and sum-producting this formula with no luck. Can this be done? Can you show how?
Thanks in advance.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try the following formula, which also needs to be confirmed with CONTROL+SHIFT+ENTER...

=SUM(--(FREQUENCY(IF(ISNUMBER(MATCH($V$4:$V$498,{"UNITED 1","UNITED 2"},0)),MATCH($AD$4:$AD$498,$AD$4:$AD$498,0)), ROW($AD$4:$AD$498)-ROW($AD$4)+1)>0))

Note that I assumed that all referenced ranges are located on the same sheet, so I removed the sheet reference to Nov2018Daily. Add the sheet reference to your ranges, if necessary. Also, I replaced ROW(AD35) with what I believe should be ROW($AD$4).

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,223,974
Messages
6,175,739
Members
452,667
Latest member
vanessavalentino83

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