+ Reply to Thread
Results 1 to 16 of 16

Dcount for finding Occurances in Column

  1. #1
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Dcount for finding Occurances in Column

    Hey guys,

    I have a problem. My column looks like this. Need to calculate the number of occurances of ASA or AFR etc.. in the column A.

    I need to use Dcount and a criteria to get this solution

    Basically these abbreviations are Short forms for World Regions(Continents).

    Criteria is somewhat like this

    RGN XRGN

    ASA TRUE

    A1: AFR,ASA,EUR
    A2: ASA,ANT,NAM
    A3: ASA,EUR,SAM,AUS
    A4: PCF,AUS

    Help me out , thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    1.why dcount? 2 what is the exact layout? 3.post a sample workbook with what you want
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    I have uploaded the worksheet, and following is the question.

    Figure 5

    H I
    27 RGN XRGN
    28 ASA TRUE
    29 Region NoofOccurancs
    30 9
    31 ASA 9
    32 AFR 9
    33 AUS 7
    34 EUR 5
    35 NAM 5
    36 SAM 7
    37 ARC 2
    38 ANT 7
    39 ATL 5
    40 INO 5
    41 PCF 8


    A data table is shown in Figure-5 above in the range H30:I41. This data table tabulates for each of the eleven regions the number of solar eclipses visible (out of the twenty four listed in the input). This table is obtained by data filtering using the criterion range I27:I28 and a DCOUNT formula. The column input cell is H28.

    Question 3.1. What is the formula in cell I28?

    Question 3.2. What is the formula in cell I30?

    Please open attachment for further details.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    H I
    27 RGN XRGN
    28 ASA TRUE
    29 Region No ofOccurancs
    30 BLANK 9
    31 ASA 9
    32 AFR 9
    33 AUS 7
    34 EUR 5
    35 NAM 5
    36 SAM 7
    37 ARC 2
    38 ANT 7
    39 ATL 5
    40 INO 5
    41 PCF 8

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    what should the answers be?

  6. #6
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    The answers are given, above. next to each region , ASA , AFR etc, find the number of occurances in the entire column, refer to attachment.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    now i may be as thick as 2 short planks. but i really cannot see what you want!

  8. #8
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    Haha ! K , let me make this very simple for you

    I have a column range. Now this column range consists for abbreviations of various continents and oceans. ASA - Asia , AFR - Africa etc.
    The column Name is "visibility". (Basically where the eclipse will be seen".

    Now, i have taken a simplified example in my first post.

    All i need to do is, count the Number of times ASA, or AFR etc, occurs in the entire column range.

    Ex.

    A1: AFR , ASA , PFC
    A2: ASA , ANT , ARC
    A3: ASA , AFR

    Now in this column A, i need to find how many time ASA occurs, but the catch is that each cell has many such Abbreiviations seperated by Commas.

    For the above example , the answer is

    Region No. of occurances
    ASA 3(In cells a1,a2 and a3)
    ANT 1(in cell a2)

    And i need to use Dcount to do this, there may be simple ways , but the requirement is Dcount for the assignment, with a criteria. If you are still confused , open the attached Excel sheet, you will understand.

    The actual problem statement i have posted before this. Hope this is clear enough.

  9. #9
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    VERY IMPORTANT

    Also , find this Word Document , which consists of the problem statement.

    This is wher the ORIGINAL question is.
    The Excel sheet i attached is how much of this problem i have completed.

    Pl. refer to questions 3.1 and 3.2 in the word document. Hope this helps too.
    Attached Files Attached Files
    Last edited by neerajvc; 07-28-2010 at 06:35 PM. Reason: File attached

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    but the requirement is Dcount for the assignment
    assignment? do you want the result? or is someone asking you to so it this way?
    is it some sort of homework/coursework? But you could count in a range as long as it only appears 1 X in a cell and nothing else = asa or similar
    =SUMPRODUCT(--ISNUMBER(SEARCH("ASA",A1:A20)))
    Last edited by martindwilson; 07-28-2010 at 06:43 PM.

  11. #11
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    yes this is an assigment, which consists of two problem statements, i have completely finished the first one, this is the 2nd one , which is almost complete. the last question states that i use DCOUNT with a criteria, which is whre i am stuck. I can think of other methods to do this, but Not able to complete with DCOUNT and criteria. please read the Word Document ( Questions 3.1 and 3.2).

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    i cant see how dcount could do this! maybe wrong but i suspect the answer i gave would have to be included somehow. still donkeyote or shg,nbvc,daddylonglegs,jb and many others may have a better idea

  13. #13
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    Yea, this is the same impasse I am in. I know sumproduct will make this very easy, the only difference in my formula was the i used 1*isnumber instead of --isnumber . But since this is an assignment , i need to check all options. Can you refer this to someone else for a second look ? Thanks a lot anyways !!

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    how about you ask the person who asked this question for some direction?
    after all is not that the idea of an assignment?
    grasshopper:"i am stuck oh master"
    master: "Do not rely on the internet, I only ask that you approach me sooner"

  15. #15
    Registered User
    Join Date
    07-28-2010
    Location
    London England
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Dcount for finding Occurances in Column

    Well , its an evaluative assignment. you cant ask the MASTER :D.

  16. #16
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Dcount for finding Occurances in Column

    well you've blown it then! don't you consider this as somewhat underhand ?

+ 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