#1   Report Post  
Posted to microsoft.public.excel.misc
lherndo
 
Posts: n/a
Default COUNTIF help please


I'm tracking my sales. One column (I) has a dropdown for either "New"
or "Used" and the other (J) has a dropdown for either "Car" or Truck.

New Car
New Car
Used Truck
Used Car
New Truck
Used Truck
Used Car

How can I make Excel Count the number of "Car" that are ALSO "New"
I've tried some COUNTIF commands with an AND command in there. I may
be way off, but I also could just have a ) in the wrong place.

I need it to tell me that {New Cars=2}{New Trucks=1}..etc...

I hope I explained this ? alright.

Thanks for all your help.


--
lherndo
------------------------------------------------------------------------
lherndo's Profile: http://www.excelforum.com/member.php...o&userid=15569
View this thread: http://www.excelforum.com/showthread...hreadid=530538

  #2   Report Post  
Posted to microsoft.public.excel.misc
lherndo
 
Posts: n/a
Default COUNTIF help please


The New's and Used's are in one column

and the Cars and Trucks are in a seperate column. I had them spaced
properly while I was typing the the format didn't stay with it when I
posted.


--
lherndo
------------------------------------------------------------------------
lherndo's Profile: http://www.excelforum.com/member.php...o&userid=15569
View this thread: http://www.excelforum.com/showthread...hreadid=530538

  #3   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default COUNTIF help please

=SUMPRODUCT(--(I2:I500="New"),--(J2:J500="Truck"))

replace the new and truck with cells where you type the data that way you
don't have to edit the formula every time you change criteria

for example

=SUMPRODUCT(--(I2:I500=K2),--(J2:J500=L2))



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"lherndo" wrote in
message ...

I'm tracking my sales. One column (I) has a dropdown for either "New"
or "Used" and the other (J) has a dropdown for either "Car" or Truck.

New Car
New Car
Used Truck
Used Car
New Truck
Used Truck
Used Car

How can I make Excel Count the number of "Car" that are ALSO "New"
I've tried some COUNTIF commands with an AND command in there. I may
be way off, but I also could just have a ) in the wrong place.

I need it to tell me that {New Cars=2}{New Trucks=1}..etc...

I hope I explained this ? alright.

Thanks for all your help.


--
lherndo
------------------------------------------------------------------------
lherndo's Profile:
http://www.excelforum.com/member.php...o&userid=15569
View this thread: http://www.excelforum.com/showthread...hreadid=530538



  #4   Report Post  
Posted to microsoft.public.excel.misc
lherndo
 
Posts: n/a
Default COUNTIF help please


I had never heard of the SUMPRODUCT function. That did the trick.
Thanks!


--
lherndo
------------------------------------------------------------------------
lherndo's Profile: http://www.excelforum.com/member.php...o&userid=15569
View this thread: http://www.excelforum.com/showthread...hreadid=530538

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
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
COUNTIF COMBINATION?? Heather Excel Worksheet Functions 1 April 26th 05 02:44 AM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 01:58 AM.

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"