cgcamal
Active Member
- Joined
- May 2, 2007
- Messages
- 472
Hi everyone,
I hope be clear enough.
I have this data in column A and B:
and I want to count how many A's are lower than 10.
I'm using this function:
You may see that within the formula, I'm using twice this part:
This means the formula is of the form:
where first X=Condition=">0",
second X=Positive part of IF(), and
"Text" is the negative part of IF()
Because I want to print the count, only if the count is lower than 10, if not I want to print "All A's>10"
This function works fine, I have solved this part, but my question is regarding other issue.
Within the same IF() formula, is possible avoid to write twice the same part if we need to use it
as condition
and as positive expression?
In this example avoid write twice X, because X sometimes could be very very large expression.
I mean, some shorter symbol that stores the previous part to use it later, something like
X=COUNTIFS(B9:B14,"A",C9:C14,"<10")
Y="value of X"
and reduce formula from this
to this:
?
Many thanks in advance for any help.
Best regards
I hope be clear enough.
I have this data in column A and B:
Code:
A|B
----
A 12
A 13
B 12
A 15
B 9
A 17
I'm using this function:
Code:
=IF([COLOR=Red][B]COUNTIFS(B9:B14,"A",C9:C14,"<10")[/B][/COLOR],[COLOR=Blue][B]COUNTIFS(B9:B14,"A",C9:C14,"<10")[/B][/COLOR],"All A's>10")
Code:
COUNTIFS(B9:B14,"A",C9:C14,"<10")
Code:
=IF([COLOR=Red][B]X[/B][/COLOR],[COLOR=Blue][B]X[/B][/COLOR],"Text")
second X=Positive part of IF(), and
"Text" is the negative part of IF()
Because I want to print the count, only if the count is lower than 10, if not I want to print "All A's>10"
This function works fine, I have solved this part, but my question is regarding other issue.
Within the same IF() formula, is possible avoid to write twice the same part if we need to use it
as condition
and as positive expression?
In this example avoid write twice X, because X sometimes could be very very large expression.
I mean, some shorter symbol that stores the previous part to use it later, something like
X=COUNTIFS(B9:B14,"A",C9:C14,"<10")
Y="value of X"
and reduce formula from this
Code:
=IF([COLOR=Red][B]COUNTIFS(B9:B14,"A",C9:C14,"<10")[/B][/COLOR],[COLOR=Blue][B]COUNTIFS(B9:B14,"A",C9:C14,"<10")[/B][/COLOR],"All A's>10")
Code:
=IF([COLOR=Red][B]COUNTIFS(B9:B14,"A",C9:C14,"<10")[/B][/COLOR],[COLOR=Blue][B]Y[/B][/COLOR],"All A's>10")
Many thanks in advance for any help.
Best regards