+ Reply to Thread
Results 1 to 9 of 9

Sort volumes from a random table to a new Table.

  1. #1
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Sort volumes from a random table to a new Table.

    Sort random volumes to a new Table. There are prices vs volumes but at times there are no volumes as shown in column B and C. What formula can be used to assemble them in the order they happen ( from top to bottom) as displayed with the new serial number in col G and H. The SN in F is not important but the order is .Please see the attached sheet

    Essentially, if there is a way that we can check out and copy down where-ever there is a Volume(in Col C) and the price against it in Col B, then we can also paste it in col G and H.
    Attached Files Attached Files
    Last edited by omega0010; 08-15-2014 at 06:19 AM. Reason: to simplify the question

  2. #2
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: Sort volumes from a random table to a new Table.

    "Bump no response"

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sort volumes from a random table to a new Table.

    These two array formulas will do it. In G

    =IFERROR(INDEX($B$5:$B$14, SMALL(IF($C$5:$C$14<>"",ROW($C$5:$C$14)-ROW($C$5)+1),ROWS($A$1:$A1))),"")

    In H
    =IFERROR(INDEX($C$5:$C$14, SMALL(IF($C$5:$C$14<>"",ROW($C$5:$C$14)-ROW($C$5)+1),ROWS($A$1:$A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort volumes from a random table to a new Table.

    Why not with an filter?

    See theattache file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: Sort volumes from a random table to a new Table.

    Dear ChemistB,

    This is nothing short of Magic really ! Just help me with one more thing .... what if the sorting was to be done in a reverse order ie the lesser price will be first and the highest price will be at the bottom ? Thanx for your time and kindness.

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort volumes from a random table to a new Table.

    See the yellow cells in the attached file.

    Please reply.

  7. #7
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: Sort volumes from a random table to a new Table.

    That's great ! Thanks for the help and God Bless

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Sort volumes from a random table to a new Table.

    Thanks for the reply.

    Glad I could help.

    For the future, please also add to who you are replaying (since you get several responces).

  9. #9
    Forum Contributor
    Join Date
    12-11-2012
    Location
    India
    MS-Off Ver
    Excel 2019
    Posts
    308

    Re: Sort volumes from a random table to a new Table.

    Best way is described by ChemistB.
    There can also be a simple way to do this. 1. We make a duplicate table 2. We make a sorting macro the way we like ( ascending or descending prices). This thing can alternately also be done on the original table if it does not disturb other sequences.

+ 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] Look at column in table, remove duplicates and sort to another table
    By pdx-adm-trm01 in forum Excel General
    Replies: 1
    Last Post: 03-19-2014, 06:56 PM
  2. Re-sort table without affecting original table?
    By jfrog in forum Excel General
    Replies: 1
    Last Post: 01-30-2013, 01:19 PM
  3. [SOLVED] Need a formula to sort a table into table (for a Table Plan) and name in column 2
    By jbpianoman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-07-2012, 09:21 AM
  4. Replies: 2
    Last Post: 05-19-2010, 05:14 AM
  5. Replies: 8
    Last Post: 08-14-2009, 11:22 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