+ Reply to Thread
Results 1 to 4 of 4

Counting cell entries depending on specific condition

  1. #1
    Registered User
    Join Date
    04-22-2008
    Posts
    31

    Counting cell entries depending on specific condition

    I need a formula that will count the total number of times a specific cell entry appears if a specific condition is met.

    The spreadsheet is attached.

    In sheet ‘CUSTOMER’ a formula needs to be entered into cell D2 that takes the account number displayed in A2 (1A001)and finds it in sheet ‘MISSED SCHEDULE PICKUP DATA ‘ cells B5:B827.

    Each time this account number is found on a particular row the formula must look in column I on the same row and add the value from the cell onto the running total.

    This will end up displaying the total number of ‘NA’ for each account number in cell D2.

    Can anyone help create this formula?
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =SUMPRODUCT(('MISSED SCHEDULE PICKUP DATA '!$B$5:$B$827=$A2)*('MISSED SCHEDULE PICKUP DATA '!I$5:I$827))

    copied down and across...

    Note: This will take a minute or so to calculate...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626
    This formula is easier to understand

    Please Login or Register  to view this content.
    Remember to press ctrl + shift + enter after keyin the formula
    I need your support to add reputations if my solution works.


  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Might be a matter of opinion if it is easier to understand or not.... but the CTRL+SHIFT+ENTER thing is not easy to remember....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Highlight Cell per Condition
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2008, 06:07 PM
  2. Highlight Cell per Condition
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2008, 10:21 AM
  3. Cell Shading Macro Depending on Text
    By BluTalon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-03-2008, 08:43 PM
  4. Condition Cell
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-09-2007, 03:07 PM
  5. Multiple excel files and collating specific cell info
    By Ska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-20-2007, 04:48 AM

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