+ Reply to Thread
Results 1 to 9 of 9

Counting multiple conditions

  1. #1
    Registered User
    Join Date
    11-07-2008
    Location
    UT
    Posts
    21

    Counting multiple conditions

    Hey all,

    I could use some help with this one.
    My worksheet contains a database of systems that have been installed since 6/08. Each system has its own unique serial number, however, this serial number appears more than once.
    I'm trying to count the number of systems that have been installed since 9/08/08 but I do not need Excel to count each s/n entry, I only want it to return a count per s/n once to get a total of all installations since this date.
    I have attached the sheet in pk zip format.
    Any thoughts?
    Thanks in advance.
    Attached Files Attached Files
    Last edited by VBA Noob; 11-11-2008 at 03:31 AM.

  2. #2
    Forum Contributor
    Join Date
    08-21-2006
    Location
    Ossett, West Yorkshire
    MS-Off Ver
    2003
    Posts
    150
    Hi
    assuming I have put the correct serial number in formula for the date try the following and drag down;
    =IF(AND(C2>=39669,COUNTIF($B$2:B2,B2)=1),COUNTIF($B$2:B3002,B2),"")
    hope this helps
    regards Howard

  3. #3
    Registered User
    Join Date
    11-07-2008
    Location
    UT
    Posts
    21
    Thanks Howard.

    I tried this and it didn't work. Just curious on which column to place this function.

    Also, should i change the 39669 to 9/8/08?

  4. #4
    Forum Contributor
    Join Date
    08-21-2006
    Location
    Ossett, West Yorkshire
    MS-Off Ver
    2003
    Posts
    150
    Hi what answer did you get?
    I tested it onyour worksheet in col A(Inserting an extra col)
    Regards Howard

  5. #5
    Forum Contributor
    Join Date
    08-21-2006
    Location
    Ossett, West Yorkshire
    MS-Off Ver
    2003
    Posts
    150

    Smile

    Hi again,
    I have attached the worksheet, let me know if this what you want
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-07-2008
    Location
    UT
    Posts
    21
    Let me try what you did and I'll get back shortly.
    I can do the lookup formulas great but lack at the count forumulas. LOL.

  7. #7
    Registered User
    Join Date
    11-07-2008
    Location
    UT
    Posts
    21
    Howard,
    I see how you did this now.
    Except here is the issue. I only need the s/n counted one time, and to only be counted if it matches the 9/8/08 or later install date,and not each time it appears.
    Sorry for my confusion on my original post.
    Would this count function still accomplish this?

  8. #8
    Forum Contributor
    Join Date
    08-21-2006
    Location
    Ossett, West Yorkshire
    MS-Off Ver
    2003
    Posts
    150
    Hi,
    In that case then amend the formula to:

    =IF(AND(C2>=39669,COUNTIF($B$2:B2,B2)=1),COUNTIF($B$2:B2,B2),"")
    and that will return 1 rather than counting each serial No
    I put the formula in col A so I could compare how the formula worked against the date and the serial No you can enter the formula in a col at the end if you so wish.
    Regards Howard

  9. #9
    Registered User
    Join Date
    11-07-2008
    Location
    UT
    Posts
    21
    Thanks Howard! This worked great!

+ 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