Count occurunces of a value up to each row The Next CEO of Stack OverflowHow do I count # of...

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Why am I getting "Static method cannot be referenced from a non static context: String String.valueOf(Object)"?

Is it OK to decorate a log book cover?

How to avoid supervisors with prejudiced views?

How to get the last not-null value in an ordered column of a huge table?

How did Beeri the Hittite come up with naming his daughter Yehudit?

Is there a difference between "Fahrstuhl" and "Aufzug"?

Why is the US ranked as #45 in Press Freedom ratings, despite its extremely permissive free speech laws?

Computationally populating tables with probability data

The Ultimate Number Sequence Puzzle

Airplane gently rocking its wings during whole flight

What does "shotgun unity" refer to here in this sentence?

Is dried pee considered dirt?

Raspberry pi 3 B with Ubuntu 18.04 server arm64: what chip

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

Does Germany produce more waste than the US?

How do you define an element with an ID attribute using LWC?

Physiological effects of huge anime eyes

Could a dragon use its wings to swim?

What CSS properties can the br tag have?

Defamation due to breach of confidentiality

Can I board the first leg of the flight without having final country's visa?

Calculate the Mean mean of two numbers

How do I fit a non linear curve?



Count occurunces of a value up to each row



The Next CEO of Stack OverflowHow do I count # of rows in an array ONLY IF the sum of numbers for each row is >0 in Excel?Excel - Include cell in column count if previous cell in row contains certain textExcel Formula to count unique cells in a range with Condition in another columnExcel - how can I count rows based on three column values?How do I display name in column2 dependent on value in column1?How can I return a count of a specific criteria in a range of duplicated items?MS Excel: how to use COUNTIF() dynamicallyDynamic ROW count Excel 2016?Count number of rows based on multiple criteriaCount max values compared with previous array












0















I have a sheet like this



   Name     case_type    Count 
1 vijam X 1
2 vijam X 2
3 vijam X 3
4 vijam Y 4
5 vijam X 5
6 vijam X 6
7 vijam X 7
8 vijam X 8
9 vijam X 9
10 vijam Y 10


where the cells in column Count are produced by the formula



=COUNTIF($A$2:$A2,$A2)


but I want the data to be counted for each case type. For example, in the fourth row, the count should be 1 for case type Y. How can I do this?



I want to do this so I can get 15th & 40th case of each category for sample quality checks.










share|improve this question









New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can't you just replace A with B in the formula?

    – timotree
    1 hour ago
















0















I have a sheet like this



   Name     case_type    Count 
1 vijam X 1
2 vijam X 2
3 vijam X 3
4 vijam Y 4
5 vijam X 5
6 vijam X 6
7 vijam X 7
8 vijam X 8
9 vijam X 9
10 vijam Y 10


where the cells in column Count are produced by the formula



=COUNTIF($A$2:$A2,$A2)


but I want the data to be counted for each case type. For example, in the fourth row, the count should be 1 for case type Y. How can I do this?



I want to do this so I can get 15th & 40th case of each category for sample quality checks.










share|improve this question









New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Can't you just replace A with B in the formula?

    – timotree
    1 hour ago














0












0








0








I have a sheet like this



   Name     case_type    Count 
1 vijam X 1
2 vijam X 2
3 vijam X 3
4 vijam Y 4
5 vijam X 5
6 vijam X 6
7 vijam X 7
8 vijam X 8
9 vijam X 9
10 vijam Y 10


where the cells in column Count are produced by the formula



=COUNTIF($A$2:$A2,$A2)


but I want the data to be counted for each case type. For example, in the fourth row, the count should be 1 for case type Y. How can I do this?



I want to do this so I can get 15th & 40th case of each category for sample quality checks.










share|improve this question









New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have a sheet like this



   Name     case_type    Count 
1 vijam X 1
2 vijam X 2
3 vijam X 3
4 vijam Y 4
5 vijam X 5
6 vijam X 6
7 vijam X 7
8 vijam X 8
9 vijam X 9
10 vijam Y 10


where the cells in column Count are produced by the formula



=COUNTIF($A$2:$A2,$A2)


but I want the data to be counted for each case type. For example, in the fourth row, the count should be 1 for case type Y. How can I do this?



I want to do this so I can get 15th & 40th case of each category for sample quality checks.







microsoft-excel worksheet-function






share|improve this question









New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 36 secs ago









timotree

595521




595521






New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









JasmineJasmine

1




1




New contributor




Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Jasmine is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Can't you just replace A with B in the formula?

    – timotree
    1 hour ago



















  • Can't you just replace A with B in the formula?

    – timotree
    1 hour ago

















Can't you just replace A with B in the formula?

– timotree
1 hour ago





Can't you just replace A with B in the formula?

– timotree
1 hour ago










1 Answer
1






active

oldest

votes


















0














If you want to count values in more than one column,
use COUNTIFS:



=COUNTIFS($A$2:$A2,$A2, $B$2:$B2,$B2)





share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Jasmine is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1419798%2fcount-occurunces-of-a-value-up-to-each-row%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you want to count values in more than one column,
    use COUNTIFS:



    =COUNTIFS($A$2:$A2,$A2, $B$2:$B2,$B2)





    share|improve this answer




























      0














      If you want to count values in more than one column,
      use COUNTIFS:



      =COUNTIFS($A$2:$A2,$A2, $B$2:$B2,$B2)





      share|improve this answer


























        0












        0








        0







        If you want to count values in more than one column,
        use COUNTIFS:



        =COUNTIFS($A$2:$A2,$A2, $B$2:$B2,$B2)





        share|improve this answer













        If you want to count values in more than one column,
        use COUNTIFS:



        =COUNTIFS($A$2:$A2,$A2, $B$2:$B2,$B2)






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 47 mins ago









        G-ManG-Man

        5,686112359




        5,686112359






















            Jasmine is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Jasmine is a new contributor. Be nice, and check out our Code of Conduct.













            Jasmine is a new contributor. Be nice, and check out our Code of Conduct.












            Jasmine is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1419798%2fcount-occurunces-of-a-value-up-to-each-row%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...