+ Reply to Thread
Results 1 to 6 of 6

How do I code to return the lowest 2 number is a list of cells

  1. #1
    Forum Contributor rkjudy's Avatar
    Join Date
    03-31-2009
    Location
    Longview, TX
    MS-Off Ver
    MS Office 2010
    Posts
    239

    How do I code to return the lowest 2 number is a list of cells

    This is a simple question. I have a list of numbers (6 rows) and I want to write a formula or code something to return the lowest two numbers in the list in the seventh row. If there a function or formula I can use or do I need to write some code? If code is needed, can anyone help?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,242

    Re: How do I code to return the lowest 2 number is a list of cells

    Try using =small()
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor rkjudy's Avatar
    Join Date
    03-31-2009
    Location
    Longview, TX
    MS-Off Ver
    MS Office 2010
    Posts
    239

    Re: How do I code to return the lowest 2 number is a list of cells

    I need the two smallest numbers in the list. Is there a way to have something return this value. I actually need the total of the two lowest numbers. For instance, if the list of cells included 3,4,4,3,4,5,6,3, I need the formula or code to return 7. Any suggestions?

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16/365
    Posts
    52,242

    Re: How do I code to return the lowest 2 number is a list of cells

    Did you even try what I suggested?

    =SMALL(A1:A8,1)+SMALL(A1:A8,2)

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,771

    Re: How do I code to return the lowest 2 number is a list of cells

    In addition to FDibbins suggestion, try in this way too..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: How do I code to return the lowest 2 number is a list of cells

    How about something like this,

    Select your range and bobs your uncle. Or in my case my Dad.
    Please Login or Register  to view this content.
    BTW, I am not sure that is what he is after guys. I could be wrong though.
    Attached Files Attached Files
    Last edited by JapanDave; 07-02-2013 at 12:57 AM.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

+ 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