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!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Perhaps i'm simplifying your issue but it looks like you are looking for a count of somekind and (if that's true) why you wnat to do this by using the FREQUENCY function.

try this instead:


Excel 2016 (Windows) 64 bit
ABC
16548923AFALSE
26548923AFALSE
36548923BTRUE
46548923DFALSE
514834568DFALSE
614834568DFALSE
78746985AFALSE
88746985BTRUE
98746985DTRUE
10
111
Sheet1
Cell Formulas
RangeFormula
B11=SUMPRODUCT(--(B1:B9="D"),--(C1:C9=TRUE))
 
Last edited:
Upvote 0
you can use sumproduct formula
=sumproduct(--(r1c7:r9c7="d")*--(r1c12:r9c12=false))
 
Upvote 0
Your formula seems ok to me, but i think the correct answer is 2, not 1. Shouldn't 6548923 and 14834568 be counted?
If so, delete the double quotes around "FALSE" and try again (do not forget to confirm the formula with Ctrl+Shift+Enter, not just Enter).
Tell us the result.

M.
 
Last edited:
Upvote 0
Provided the values in column L are logical values TRUE or FALSE (not text values "TRUE" or "FALSE") this formula should work

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

M.
 
Upvote 0
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.
 
Upvote 0
Hi,

Perhaps i'm simplifying your issue but it looks like you are looking for a count of somekind and (if that's true) why you wnat to do this by using the FREQUENCY function.

try this instead:

Excel 2016 (Windows) 64 bit
ABC
16548923AFALSE
26548923AFALSE
36548923BTRUE
46548923DFALSE
514834568DFALSE
614834568DFALSE
78746985AFALSE
88746985BTRUE
98746985DTRUE
10
111

<colgroup><col style="width: 25pxpx"><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B11=SUMPRODUCT(--(B1:B9="D"),--(C1:C9=TRUE))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


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.
 
Upvote 0
Provided the values in column L are logical values TRUE or FALSE (not text values "TRUE" or "FALSE") this formula should work

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

M.

Unfortunately the true or false are not logical values.... What to do then?
 
Upvote 0
Your formula seems ok to me, but i think the correct answer is 2, not 1. Shouldn't 6548923 and 14834568 be counted?
If so, delete the double quotes around "FALSE" and try again (do not forget to confirm the formula with Ctrl+Shift+Enter, not just Enter).
Tell us the result.

M.


No the correct answer is 1 because 14834568 is the only number in column A that only have false and D in all cases.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
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