Excel: Return value based on lowest score











up vote
0
down vote

favorite












I have a database that collects profits from different stores on a weekly basis:



Database Sample



Each week, I need to show which store had the lowest profit in each state.



Output Needed



I'd need to show the name of the site, and also what its profit was for that week.



Could anyone help me? Thank you :)










share|improve this question


















  • 1




    1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
    – Akina
    Nov 14 at 10:35

















up vote
0
down vote

favorite












I have a database that collects profits from different stores on a weekly basis:



Database Sample



Each week, I need to show which store had the lowest profit in each state.



Output Needed



I'd need to show the name of the site, and also what its profit was for that week.



Could anyone help me? Thank you :)










share|improve this question


















  • 1




    1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
    – Akina
    Nov 14 at 10:35















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a database that collects profits from different stores on a weekly basis:



Database Sample



Each week, I need to show which store had the lowest profit in each state.



Output Needed



I'd need to show the name of the site, and also what its profit was for that week.



Could anyone help me? Thank you :)










share|improve this question













I have a database that collects profits from different stores on a weekly basis:



Database Sample



Each week, I need to show which store had the lowest profit in each state.



Output Needed



I'd need to show the name of the site, and also what its profit was for that week.



Could anyone help me? Thank you :)







microsoft-excel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 at 9:08









Anniesoptera

12




12








  • 1




    1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
    – Akina
    Nov 14 at 10:35
















  • 1




    1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
    – Akina
    Nov 14 at 10:35










1




1




1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
– Akina
Nov 14 at 10:35






1) Copy your sample data into question (as a text) and format it (as it is a code); 2) Show desired result (data, not form only) on that source data. 3) And what you want to obtain if 2 or more sites provide the same minimal profit?
– Akina
Nov 14 at 10:35












1 Answer
1






active

oldest

votes

















up vote
1
down vote













Good Day Anniesoptera,



Assuming I understand your question right I would solve accomplish this with a combination of 3 Excel formulas. MIN, INDEX & MATCH.




  1. Sort the data by state

  2. Assuming your information is in cells A1-C14, use the =MIN formula to
    determine which the lowest profit for the state is.

    So for California (MIN(C2:C5)


  3. Use this formula in the MATCH Formula
    (MATCH((MIN(22:C5),C2:5,0). This will give the row which this figure is in



  4. Add this formula to the INDEX Formula to obtain your site
    =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),1).



    This can then be done again to obtain the amount change the final value in the formula
    from a 1 to 3 (The column number).
    =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),3)




Screen Cap of the spreadsheet with a complete formula



I hope this helps.






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%2f1375243%2fexcel-return-value-based-on-lowest-score%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













    Good Day Anniesoptera,



    Assuming I understand your question right I would solve accomplish this with a combination of 3 Excel formulas. MIN, INDEX & MATCH.




    1. Sort the data by state

    2. Assuming your information is in cells A1-C14, use the =MIN formula to
      determine which the lowest profit for the state is.

      So for California (MIN(C2:C5)


    3. Use this formula in the MATCH Formula
      (MATCH((MIN(22:C5),C2:5,0). This will give the row which this figure is in



    4. Add this formula to the INDEX Formula to obtain your site
      =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),1).



      This can then be done again to obtain the amount change the final value in the formula
      from a 1 to 3 (The column number).
      =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),3)




    Screen Cap of the spreadsheet with a complete formula



    I hope this helps.






    share|improve this answer

























      up vote
      1
      down vote













      Good Day Anniesoptera,



      Assuming I understand your question right I would solve accomplish this with a combination of 3 Excel formulas. MIN, INDEX & MATCH.




      1. Sort the data by state

      2. Assuming your information is in cells A1-C14, use the =MIN formula to
        determine which the lowest profit for the state is.

        So for California (MIN(C2:C5)


      3. Use this formula in the MATCH Formula
        (MATCH((MIN(22:C5),C2:5,0). This will give the row which this figure is in



      4. Add this formula to the INDEX Formula to obtain your site
        =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),1).



        This can then be done again to obtain the amount change the final value in the formula
        from a 1 to 3 (The column number).
        =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),3)




      Screen Cap of the spreadsheet with a complete formula



      I hope this helps.






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        Good Day Anniesoptera,



        Assuming I understand your question right I would solve accomplish this with a combination of 3 Excel formulas. MIN, INDEX & MATCH.




        1. Sort the data by state

        2. Assuming your information is in cells A1-C14, use the =MIN formula to
          determine which the lowest profit for the state is.

          So for California (MIN(C2:C5)


        3. Use this formula in the MATCH Formula
          (MATCH((MIN(22:C5),C2:5,0). This will give the row which this figure is in



        4. Add this formula to the INDEX Formula to obtain your site
          =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),1).



          This can then be done again to obtain the amount change the final value in the formula
          from a 1 to 3 (The column number).
          =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),3)




        Screen Cap of the spreadsheet with a complete formula



        I hope this helps.






        share|improve this answer












        Good Day Anniesoptera,



        Assuming I understand your question right I would solve accomplish this with a combination of 3 Excel formulas. MIN, INDEX & MATCH.




        1. Sort the data by state

        2. Assuming your information is in cells A1-C14, use the =MIN formula to
          determine which the lowest profit for the state is.

          So for California (MIN(C2:C5)


        3. Use this formula in the MATCH Formula
          (MATCH((MIN(22:C5),C2:5,0). This will give the row which this figure is in



        4. Add this formula to the INDEX Formula to obtain your site
          =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),1).



          This can then be done again to obtain the amount change the final value in the formula
          from a 1 to 3 (The column number).
          =INDEX(A2:C5,(MATCH((MIN(C2:C5)),C2:C5,0)),3)




        Screen Cap of the spreadsheet with a complete formula



        I hope this helps.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 14 at 14:22









        BradR

        364




        364






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1375243%2fexcel-return-value-based-on-lowest-score%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

            Сан-Квентин

            Алькесар

            Josef Freinademetz