+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Count frequency depending on reservation number

  1. #1
    Registered User
    Join Date
    03-24-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    16

    Count frequency depending on reservation number

    Hello,

    In the sheet attached i have a list of reservation numbers (B) and a list of identification numbers (A). What i would like to do is' for example, in cell H2, where the reservation number in column B =1 calculate the and display the number of unique identification numbers in column A.

    Is this possible?
    Attached Files Attached Files
    Last edited by jmcgallan; 03-02-2011 at 12:40 PM.

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

    Re: Count frequency depending on reservation number

    What would be different then the existing formula, =IF(D2="ja",COUNTIF($B:$B,B2),"")

    it seems that you only have unique numbers in column A and that the column B values are grouped together...

    an alternative that doesn't rely on column D would be:

    =IF(B2<>B1,COUNTIF(B:B,B2),"")
    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
    Registered User
    Join Date
    03-24-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Count frequency depending on reservation number

    Thanks,

    You're right, most of the time the numbers in column A are unique but on the odd occation (a bit further down the sheet...e.g. row 74) where the ID is not unique, so i would expect the result to be 1

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

    Re: Count frequency depending on reservation number

    try then:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down.

  5. #5
    Registered User
    Join Date
    03-24-2010
    Location
    Oxford
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Count frequency depending on reservation number

    Genius, 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