Latest Date from Attendance Sheet where attendance is noted as “P”











up vote
1
down vote

favorite












I have a list of names in Column A starting in cell A2



Each column heading starting from cell B1 contains individual dates



As a person attends an event I enter P into the appropriate cell correlating to the person + date. If they don't attend the cell is left blank.



For example if person 1 attends on the first date I enter P into cell B2



How to I find the most recent date that the person attended for each person in column A?










share|improve this question
























  • How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
    – Akina
    Dec 4 at 13:11












  • Could you just share some sample data with us!!
    – Rajesh S
    Dec 5 at 10:06










  • @NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
    – Rajesh S
    Dec 5 at 11:12















up vote
1
down vote

favorite












I have a list of names in Column A starting in cell A2



Each column heading starting from cell B1 contains individual dates



As a person attends an event I enter P into the appropriate cell correlating to the person + date. If they don't attend the cell is left blank.



For example if person 1 attends on the first date I enter P into cell B2



How to I find the most recent date that the person attended for each person in column A?










share|improve this question
























  • How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
    – Akina
    Dec 4 at 13:11












  • Could you just share some sample data with us!!
    – Rajesh S
    Dec 5 at 10:06










  • @NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
    – Rajesh S
    Dec 5 at 11:12













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a list of names in Column A starting in cell A2



Each column heading starting from cell B1 contains individual dates



As a person attends an event I enter P into the appropriate cell correlating to the person + date. If they don't attend the cell is left blank.



For example if person 1 attends on the first date I enter P into cell B2



How to I find the most recent date that the person attended for each person in column A?










share|improve this question















I have a list of names in Column A starting in cell A2



Each column heading starting from cell B1 contains individual dates



As a person attends an event I enter P into the appropriate cell correlating to the person + date. If they don't attend the cell is left blank.



For example if person 1 attends on the first date I enter P into cell B2



How to I find the most recent date that the person attended for each person in column A?







microsoft-excel worksheet-function






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 5 at 8:56









Máté Juhász

14.1k63150




14.1k63150










asked Dec 4 at 11:18









NGB

61




61












  • How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
    – Akina
    Dec 4 at 13:11












  • Could you just share some sample data with us!!
    – Rajesh S
    Dec 5 at 10:06










  • @NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
    – Rajesh S
    Dec 5 at 11:12


















  • How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
    – Akina
    Dec 4 at 13:11












  • Could you just share some sample data with us!!
    – Rajesh S
    Dec 5 at 10:06










  • @NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
    – Rajesh S
    Dec 5 at 11:12
















How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
– Akina
Dec 4 at 13:11






How to I find the most recent date Most recent == last in the row? I'd recommend to use UDF, where statement like Range("A2").EntireRow.Find(What:="P",SearchDirection:=xlPrevious).Address will give you the address of the last cell containing 'P' char in the row #2 (may use .Column to obtain column number).
– Akina
Dec 4 at 13:11














Could you just share some sample data with us!!
– Rajesh S
Dec 5 at 10:06




Could you just share some sample data with us!!
– Rajesh S
Dec 5 at 10:06












@NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
– Rajesh S
Dec 5 at 11:12




@NGB meanwhile you can try this one,, {=MAX(IF($B2:$D2="P",IF($B2:$D2<>"",B$1:D$1)))}
– Rajesh S
Dec 5 at 11:12










1 Answer
1






active

oldest

votes

















up vote
1
down vote













You can use the following formula to pick off the right most column with a P in it and then return the date in the header row that corresponds to this column. It is set up to be used adjacent to the column. If you want to use it in a separate table or for select names only, a modification to the layout and formula would be required.



=INDEX($1:$1,AGGREGATE(14,6,COLUMN($B2:$D2)/($B2:$D2="P"),1))


enter image description here






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',
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1380668%2flatest-date-from-attendance-sheet-where-attendance-is-noted-as-p%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








    up vote
    1
    down vote













    You can use the following formula to pick off the right most column with a P in it and then return the date in the header row that corresponds to this column. It is set up to be used adjacent to the column. If you want to use it in a separate table or for select names only, a modification to the layout and formula would be required.



    =INDEX($1:$1,AGGREGATE(14,6,COLUMN($B2:$D2)/($B2:$D2="P"),1))


    enter image description here






    share|improve this answer

























      up vote
      1
      down vote













      You can use the following formula to pick off the right most column with a P in it and then return the date in the header row that corresponds to this column. It is set up to be used adjacent to the column. If you want to use it in a separate table or for select names only, a modification to the layout and formula would be required.



      =INDEX($1:$1,AGGREGATE(14,6,COLUMN($B2:$D2)/($B2:$D2="P"),1))


      enter image description here






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        You can use the following formula to pick off the right most column with a P in it and then return the date in the header row that corresponds to this column. It is set up to be used adjacent to the column. If you want to use it in a separate table or for select names only, a modification to the layout and formula would be required.



        =INDEX($1:$1,AGGREGATE(14,6,COLUMN($B2:$D2)/($B2:$D2="P"),1))


        enter image description here






        share|improve this answer












        You can use the following formula to pick off the right most column with a P in it and then return the date in the header row that corresponds to this column. It is set up to be used adjacent to the column. If you want to use it in a separate table or for select names only, a modification to the layout and formula would be required.



        =INDEX($1:$1,AGGREGATE(14,6,COLUMN($B2:$D2)/($B2:$D2="P"),1))


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 4 at 15:30









        Forward Ed

        471213




        471213






























            draft saved

            draft discarded




















































            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f1380668%2flatest-date-from-attendance-sheet-where-attendance-is-noted-as-p%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido