+ Reply to Thread
Results 1 to 5 of 5

Automatically updating a reduced number sorting from low to high

  1. #1
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Automatically updating a reduced number sorting from low to high

    In my attached sample worksheet, you’ll see in Column A an list of 44 numbers.

    I’m trying to “automate” my calculations because of daily entries…

    In Column D I’m using =IF(A1="","",IF(COUNTIF($A$1:A1,A1)=1,ROW(),"")) to eliminate any and all duplicates and in Column E are the results using =IF(ROW(A1)>COUNT($B$1:$B$44),"",INDEX($A$1:$A$44,MATCH(SMALL($D$1:$D$44,ROW(C1)),$D$1:$D$44,0)))…

    You’ll notice I’m getting a “#NUM!” at the bottom of Column E…what am I missing in my formula to get that?

    And in Column G – I’m eliminating all numbers that fell outside my criteria…and in “Column I” are my results…is there a formula I could use to “automatically” sort from low to high…like in my example in Column K?
    Attached Files Attached Files
    Last edited by khank; 07-19-2012 at 11:02 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Automatically updating a reduced number sorting from low to high

    hi khank. you have lots of formulas in there, so i was too lazy to look at everything. but if you need to improve the template, do share with us what you need to do. there's probably a shorter way. but just to answer your questions:

    you #NUM! error is due to your SMALL formula that shows:
    SMALL($D$1:$D$44,ROW(C40))
    since D1:D44 only has 39 numbers, there's no 40th smallest number

    And in column G, you can use the same SMALL formula to help you rank. but is I40 value of 76 to be inside too? saw that you excluded it. i put it in my range anyway:
    =SMALL($I$1:$I$44,ROWS($K$1:K1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Automatically updating a reduced number sorting from low to high

    I understand about there aren't any numbers after the 39th number - what I've failed to understand is how can I eliminate "#NUM" showing in my current formula if my numbers don't go to 44?

    Some days I may have 44 - some days maybe 15 numbers - so on and so forth.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Automatically updating a reduced number sorting from low to high

    your counting the wrong column ,you need to count the column you are getting the small from ie d:D
    =IF(ROW(A1)>COUNT($D$1:$D$44),"",INDEX($A$1:$A$44,MATCH(SMALL($D$1:$D$44,ROW(C1)),$D$1:$D$44,0)))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    11-13-2010
    Location
    Warren, Michigan
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    307

    Re: Automatically updating a reduced number sorting from low to high

    Thanks to both of you... sometimes you simply can't see the answer even if its staring you straight in your eyes...again thanks.

+ 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