Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jonhart75
 
Posts: n/a
Default 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
  #2   Report Post  
bpeltzer
 
Posts: n/a
Default

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

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

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



  #4   Report Post  
Morrigan
 
Posts: n/a
Default


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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use variables in Excel? XUT67 New Users to Excel 2 July 21st 05 05:09 PM
Looking for a way for excel to count unknown repeating values? Kblue74 Excel Worksheet Functions 1 July 19th 05 04:58 PM
How do you display the values of variables within an Excel formula curious one Excel Discussion (Misc queries) 1 March 3rd 05 02:52 PM
Count function in excel with different conditions chits Excel Worksheet Functions 1 January 21st 05 07:32 AM
How do I write a conditional statement in Excel to count if two c. marblelife Excel Worksheet Functions 2 January 16th 05 11:16 PM


All times are GMT +1. The time now is 08:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"