ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I count to different variables in excel (https://www.excelbanter.com/excel-worksheet-functions/37137-how-do-i-count-different-variables-excel.html)

Jonhart75

How do I count to different variables in excel
 
Hi I am try to use a countif command to display results of 2 diferent
variables
I have two coloums b and d and want to display the results as a count if b =
2c and d = adventure

bpeltzer

Switch to DCOUNT instead. It's a bit more complex, but also more powerful.
You'll need a set of cells to form the criteria, and you're therefore able to
specify criteria for multiple columns at the same time.

"Jonhart75" wrote:

Hi I am try to use a countif command to display results of 2 diferent
variables
I have two coloums b and d and want to display the results as a count if b =
2c and d = adventure


Bernie Deitrick

Jon,

Not sure what you mean by 2c(?). Twice the value of column C, or the string "2c" Anyway, one of
these should help:

=SUMPRODUCT((B1:B100=2*C1:C100)*(D1:D100 = "Adventure"))
=SUMPRODUCT((B1:B100="2c")*(D1:D100 = "Adventure"))

HTH,
Bernie
MS Excel MVP


"Jonhart75" wrote in message
...
Hi I am try to use a countif command to display results of 2 diferent
variables
I have two coloums b and d and want to display the results as a count if b =
2c and d = adventure




Morrigan


Try this:

=SUMPRODUCT(--(B:B="2c"),--(D:D="adventure"))


Jonhart75 Wrote:
Hi I am try to use a countif command to display results of 2 diferent
variables
I have two coloums b and d and want to display the results as a count
if b =
2c and d = adventure



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=390281



All times are GMT +1. The time now is 04:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com