+ Reply to Thread
Results 1 to 4 of 4

COUNTIF help please

  1. #1
    Registered User
    Join Date
    10-21-2004
    Posts
    11

    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.

  2. #2
    Registered User
    Join Date
    10-21-2004
    Posts
    11

    to clarify

    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.

  3. #3
    Peo Sjoblom
    Guest

    Re: 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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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. #4
    Registered User
    Join Date
    10-21-2004
    Posts
    11

    Thank you very much Sjoblom

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1