+ Reply to Thread
Results 1 to 15 of 15

Using a countif function for text string data.

Hybrid View

  1. #1
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    I think your right VBA Noob... I'm asking too much...

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I'm asking too much
    I never said that. I suggested a possible alternative.


    What's your expected results ??

    A total of Unquie items or list all 30 answer in one cell with a count ??

    e.g for D9 would you have something like


    Quote:
    ="Males Tot "&COUNTIF(K:K,"male")&" / "&"Female Tot "&COUNTIF(K:K,"Female")
    Also you never answered this question

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    sorry......

    Well I'm linking the answers into another sheet that will state;

    Number of males =
    Number of females =

    So I suppose a single count? I'll add another row for counting females?

    Tell me Noob, how would this apply to the more complicated answers, such as the drop down list in cell L20???
    Last edited by Stevie-B; 03-11-2008 at 07:29 AM.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    What's your expected results ??

    A total of Unquie items or list all 30 answer in one cell with a count ??
    Still didn't answer it.

    Maybe post a sample with expected results in those cells

    VBA Noob

  5. #5
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    A total of Unquie items. This could then be linked into another spreadsheet.
    Attached Files Attached Files

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try this in D10 for starters



    =SUMPRODUCT(--(TEXT(A22:A200,"MMYY")=TEXT(D5,"MMYY"))*(K22:K200="Male")*(G22:G200="Armagh / Dungannon"))
    If you change D3 to a drop down then use
    =SUMPRODUCT(--(TEXT(A22:A200,"MMYY")=TEXT(D5,"MMYY"))*(K22:K200="Male")*(G22:G200=D3))
    For unique items try e.g D12 would be
    =SUMPRODUCT((J22:J200<>"")/COUNTIF(J22:J200,J22:J200&""))
    Change ranges as required

    VBA Noob
    Last edited by VBA Noob; 03-11-2008 at 11:14 AM.

  7. #7
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    VBA Noob........ you are fantastic. I'm going to try these now and get back to you with the results!

    Thanks very much.

+ 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