+ Reply to Thread
Results 1 to 7 of 7

find the smallest number

  1. #1
    Forum Contributor
    Join Date
    09-14-2012
    Location
    mumbai,india
    MS-Off Ver
    Excel 2003
    Posts
    367

    find the smallest number

    I have the same number series need to find the smallest number.
    Attached Files Attached Files
    Last edited by sanju2323; 03-24-2015 at 09:07 AM.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: find the smallest number

    Not quite sure whats required..

    Try using the Min function..
    Cheers!
    Deep Dave

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: find the smallest number

    Sanju,
    Try this code: (In VBA editor you will need to go to Tools>References, and check the box next to "Microsoft Scripting Runtime" to use the code)

    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Contributor
    Join Date
    09-14-2012
    Location
    mumbai,india
    MS-Off Ver
    Excel 2003
    Posts
    367

    Re: find the smallest number

    Sir, your VBA code, the error appears.
    Attached Images Attached Images

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: find the smallest number

    Sanju, did you read my whole post? You need to add a reference to the Microsoft Scripting Runtime
    in VBA editor->Tools->References, and check the box next to "Microsoft Scripting Runtime"

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: find the smallest number

    How about just a formula?

    =MIN(IF($B$3:$B$66=B3, $C$3:$C$66))

    Confirmed with Ctrl+Shift+Enter.

    Or a pivot table:

    Row\Col
    G
    H
    2
    Min of Value
    3
    Equal Total
    4
    0
    17
    5
    1000
    5
    6
    2000
    14
    7
    3000
    32
    8
    4000
    -2
    9
    5000
    1
    10
    6000
    -53
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: find the smallest number

    Maybe:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Find the smallest number in a column that has some #N/A in it.
    By JimLau in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2014, 11:02 AM
  2. [SOLVED] find smallest Number in a col
    By bnwash in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2013, 10:26 PM
  3. [SOLVED] How to find the smallest number for each category
    By BNCOXUK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2013, 01:13 PM
  4. Replies: 1
    Last Post: 04-20-2010, 02:34 PM
  5. find smallest number not equal to 0
    By dave in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-20-2005, 06:06 PM

Tags for this Thread

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