+ Reply to Thread
Results 1 to 5 of 5

Count cells based on criteria of another cell

  1. #1
    Registered User
    Join Date
    10-07-2010
    Location
    WANATAH
    MS-Off Ver
    Excel 2007
    Posts
    3

    Count cells based on criteria of another cell

    I am trying to write a few formulas in excel. I have a spreadsheet with ~4000 lines. Each line has a unique vehicle. There are multiple vehicles in a city. Also, I have a column for a completion date of the work being done to the car. I made a separate sheet with the cities listed 1 time each by removing unique values. Our customer wants a sheet with each city, how many vehicles per city, and how many vehicles have been completed. I came up with the amount of vehicles per city by using the COUNTIF formula. Now what I need is each time there is a date put in the Completed category, the formula counts it on the first sheet and gives me a column on the second sheet saying how many vehicles have been done in that city. I attached a small example of what I'm talking about on 1 sheet. I need the number of completed to give a number based off if there is data entered in the date completed column for that city. Thanks!! I hope someone can decipher my problem.
    Attached Files Attached Files
    Last edited by codyj; 10-07-2010 at 02:25 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Help with forumulas

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Count cells based on criteria of another cell

    Hi codyj

    Welcome to the forum

    Thanks for changing your title.

    Given you are using 2007 then
    Please Login or Register  to view this content.
    Drag/Fill down

    If yoou need to be backward compatable
    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter
    Drag/Fill down

    Hope this helps.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Count cells based on criteria of another cell

    Quote Originally Posted by Marcol View Post
    If yoou need to be backward compatable
    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter
    @Marcol, if using an Array for sake of backwards compatibility (ie pre XL2007) note you can not use entire column references.
    (same holds true with SUMPRODUCT equiv.)

  5. #5
    Registered User
    Join Date
    10-07-2010
    Location
    WANATAH
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Count cells based on criteria of another cell

    Perfect! Thanks for the help. Sorry about the initial title. Won't happen again.
    Quote Originally Posted by Marcol View Post
    Hi codyj

    Welcome to the forum

    Thanks for changing your title.

    Given you are using 2007 then
    Please Login or Register  to view this content.
    Drag/Fill down

    If yoou need to be backward compatable
    Please Login or Register  to view this content.
    Enter with Ctrl+Shift+Enter
    Drag/Fill down

    Hope this helps.

+ 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