Frequency problem desperate for solution!

Supermike1983

New Member
Joined
Oct 4, 2016
Messages
15
I have a frequency problem I don't seem to find a solution for. Below you find an extract of just the columns I want to compare.

I want to write a frequency condition saying: "How many values in Column C does only include D values in Column G and FALSE in Column L?".

In this small example below the correct answer is 1 time.

Column CColumn GColumn L
6548923AFALSE
6548923AFALSE
6548923BTRUE
6548923DFALSE
14834568DFALSE
14834568DFALSE
8746985AFALSE
8746985BTRUE
8746985DTRUE

<tbody>
</tbody>

The closest I get is this array formula:

{=SUM(IF(FREQUENCY(IF($C$2:Report!$C$10<>"";IF($L$2:$L$10="FALSE";IF($G$2:$G$10="D";MATCH("~"&$C$2:$C$10;$C$2:$C$10&"";0))));ROW($C$2:$C$10)-ROW($C$2)+1);1))}

Desperately need help!
 
Well this doesn't really solve my problem. The formula you've stated above should first of all only consider "FALSE" but that's a minor change.

Secondly,your formula doesn't include the frequency of the values in column A. That's what I want and need!

The information in column B and C in my "real document" are fixed meaning I can state them with for example ="D" but I don't control the values in column A.

Column A? In post #1 there is NO data in column A!
The data sample you posted has data in columns C, G , L
Could you clarify?

Also, please, confirm if the values FALSE ib column L are text or logical values - to check put in an empty cell
=ISTEXT(L2)
tell us what the formula returns

M.
 
Last edited:
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
What about the values in column L (FALSE, FALSE, TRUE...)? Are they text values or logical values?
Check using
=ISTEXT(L2)

M.
 
Upvote 0
When writing =ISTEXT(L2) the return is "FALSE"

So they are logical values!

That said, considering your data sample in post #1 (data in columns C, G and L, rows 2 to 10) try this array formula

=SUM(IF(FREQUENCY(IF(Report!C2:C10<>"";IF(COUNTIF(Report!C2:C10;Report!C2:C10)=COUNTIFS(Report!C2:C10;Report!C2:C10;Report!G2:G10;"D";Report!L2:L10;FALSE);MATCH("~"&Report!C2:C10;Report!C2:C10&"";0)));ROW(Report!C2:C10)-ROW(Report!C2)+1);1))
Ctrl+Shift+Enter

M.
 
Upvote 0
So they are logical values!

That said, considering your data sample in post #1 (data in columns C, G and L, rows 2 to 10) try this array formula

=SUM(IF(FREQUENCY(IF(Report!C2:C10<>"";IF(COUNTIF(Report!C2:C10;Report!C2:C10)=COUNTIFS(Report!C2:C10;Report!C2:C10;Report!G2:G10;"D";Report!L2:L10;FALSE);MATCH("~"&Report!C2:C10;Report!C2:C10&"";0)));ROW(Report!C2:C10)-ROW(Report!C2)+1);1))
Ctrl+Shift+Enter

M.

The formula works! Thank you so much for the great help!

If you don't mind I now have a final problem related to the one you helped me solve. It's a extension of the previous problem really.
 
Upvote 0
If I in the first example add dates in a new column, Column M.

I want to add the condition to just count the frequency of the unique values in Column C if the newest date in Column M corresponds to "D" in Column G and "FALSE" in Column L.

Column CColumn GColumn LColumn M
6548923AFALSE2015-12-01
6548923AFALSE2016-08-15
6548923BTRUE2016-09-12
6548923DFALSE2016-10-17
14834568DFALSE2016-08-09
14834568DFALSE2016-11-14
8746985AFALSE2016-10-01
8746985BTRUE2016-08-07
8746985DFALSE2015-06-11

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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