+ Reply to Thread
Results 1 to 4 of 4

Pulling values from one tab to another in descending order, skipping null values

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    5

    Pulling values from one tab to another in descending order, skipping null values

    I have values in one tab, call it RAW DATA. The values are culled from the main data dump using a date criteria. I need those values transferred to the main tab, in descending order, ignoring the null values.

    Attached:
    Main Tab - Where I need the data to go into
    Raw Data: Column A through H is raw data i drop in

    I need a formula that will take the first viable data point in RAW DATA tab, column AH, and drop it into MAIN TAB cell B2. Then the next viable data point in B3, etc. And so on for the next 4 days.

    The QTY is just a VLOOKUP, but I am really having trouble figuring out the transfer of the LOAD # data.

    Suggestions? I tried a ton of different formulas, including:
    =IFERROR(INDEX(OUTBOUND!$AH$2:$AH$100,SMALL(IF(OUTBOUND!$AH$2:$AH$100<>"",ROW(OUTBOUND!$AH$2:$AH$100)-ROW(OUTBOUND!$AH$2)+1),ROWS(C$5:C5)),COLUMNS($C5:C5)),"")

    This got me close, almost there.

    Last bit: I cannot use VBA or Macros, the computers running this are vastly different, and not all have the ability to run Macros or VBA, so i have to do it the long way.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Office 2010
    Posts
    27,113

    Re: Pulling values from one tab to another in descending order, skipping null values

    In B6

    =IFERROR(INDEX('RAW DATA'!AH$2:AH$100,SMALL(IF('RAW DATA'!AH$2:AH$100<>"",ROW('RAW DATA'!$AH$2:$AH$100)-ROW('RAW DATA'!$AH$2)+1),ROWS($AH$2:AH2))),"")

    ...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.


    Copy across and down
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-17-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2016
    Posts
    5

    Re: Pulling values from one tab to another in descending order, skipping null values

    Thank you! What is the purpose of the following section? I think i dissected the rest to understand it, but I cannot figure out the purpose of this?
    =IFERROR(INDEX('RAW DATA'!AH$2:AH$100,SMALL(IF('RAW DATA'!AH$2:AH$100<>"",ROW('RAW DATA'!$AH$2:$AH$100)-ROW('RAW DATA'!$AH$2)+1),ROWS($AH$2:AH2))),"")

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Office 2010
    Posts
    27,113

    Re: Pulling values from one tab to another in descending order, skipping null values

    ROWS($AH$2:AH2)) is simply a "counter": the first value $AH$2:AH2 is 1; when formula is dragged down we get $AH$2:AH3, $AH$2:AH4 giving values of 2. 3 etc.

    This is used as the second parameter in the SMALL function so we the 1st (non-blank) value, then the 2nd, 3rd etc. note the first element $AH$2 is an absolute (static)reference, while the second (AH2) is a relative (dynamic) reference.

    You could use ROWS($1:1) where it is (I think) more obvious what this count is doing, so we will get ROWS($1:1), ROWS($1;2) etc

+ 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] Cancatenate values on one cell on descending order
    By score in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-28-2015, 09:35 PM
  2. [SOLVED] Formula to Rank Values in Descending Order
    By brent_excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2015, 07:44 PM
  3. Validate if values associated with the same part number are in descending order
    By forbesk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-03-2014, 03:47 PM
  4. Replies: 5
    Last Post: 05-29-2014, 11:55 AM
  5. [SOLVED] Rank values in descending order with duplicates
    By mcain1981 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2012, 01:15 PM
  6. Sorting in descending order and show duplicate values
    By cceze in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-19-2012, 09:33 AM
  7. Replies: 14
    Last Post: 04-17-2012, 05:18 PM

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