+ Reply to Thread
Results 1 to 7 of 7

How do i find smallest and largest number that start with specific number?

  1. #1
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    220

    How do i find smallest and largest number that start with specific number?

    From a range how do i find largest and smallest number that start with 688 and 670 etc.
    Can anyone help me?
    Attached Images Attached Images

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: How do i find smallest and largest number that start with specific number?

    Welcome to the Forum, although I can see that you joined over 4 years ago (nearly 5 years !!).

    A picture of a worksheet is not much use - it would be better to attach a sample Excel workbook, and you can do this by following the instructions in the yellow banner at the top of the screen.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: How do i find smallest and largest number that start with specific number?

    Let's say you put the first 3 numbers in A1 like 670

    Then use this formula for the largest value

    Please Login or Register  to view this content.
    This for the smallest
    Please Login or Register  to view this content.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: How do i find smallest and largest number that start with specific number?

    In your version of Excel MAX-IF is an array formula. To avoid the use of array formulae, use:

    =AGGREGATE(15,6,$C$1:$D$6/(LEFT($C$1:$D$6,3)="667"),1)

    and

    =AGGREGATE(14,6,$C$1:$D$6/(LEFT($C$1:$D$6,3)="667"),1)

    for the smallest and largest, respectively.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    220

    Re: How do i find smallest and largest number that start with specific number?

    [QUOTE=Glenn Kennedy;5612844]

    Many thanks. I got exactly what I wanted. I am grateful to you.

  6. #6
    Forum Contributor
    Join Date
    02-16-2017
    Location
    Bangladesh
    MS-Off Ver
    2021
    Posts
    220

    Re: How do i find smallest and largest number that start with specific number?

    [QUOTE=JEC.;5612839]

    Thanks a lot.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: How do i find smallest and largest number that start with specific number?

    In Excel 2019 you can use MAXIFS and MINIFS, as an alternative.

    Hope this helps.

    Pete

+ 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. Sort column number smallest to largest ignoring blank cells
    By pierceofmind in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2021, 06:45 AM
  2. Replies: 1
    Last Post: 03-02-2021, 12:09 AM
  3. Find largest decimal number based on selected whole number
    By primed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-07-2018, 08:22 AM
  4. [SOLVED] Coloring to largest and smallest number except zero
    By royalshah4all in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-02-2016, 03:19 AM
  5. Replies: 2
    Last Post: 06-03-2015, 02:50 PM
  6. Formula to populate cells based on largest number to smallest
    By kenadams378 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-14-2015, 07:12 AM
  7. Excel 2007 : sort smallest number to largest
    By ravihotwok in forum Excel General
    Replies: 1
    Last Post: 12-06-2011, 11:35 AM

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