+ Reply to Thread
Results 1 to 2 of 2

Extracting cell values but keeping out the blanks in original order.

  1. #1
    Registered User
    Join Date
    05-29-2019
    Location
    Oslo
    MS-Off Ver
    Office 365
    Posts
    1

    Extracting cell values but keeping out the blanks in original order.

    Hi,

    I've got a challange related to extracting numbers in the original order from the below table (top image - don't know how to remove the second one).

    I want to extract the Y values from the table in seperate rows, as well as getting the associated X values in another row.

    I need to use a formula, as the original dataset is a dynamic table.

    Let me know if any additional information is needed.

    /Thanx


    Excel.PNG
    Attached Images Attached Images

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Extracting cell values but keeping out the blanks in original order.

    if we assume your source values (incl. headers) is A1:H3 then

    Y - where first "A" result is to appear in B6

    =IFERROR(AGGREGATE(15;6;MOD((COLUMN($B2:$H2)*1000+($B2:$H2))/ISNUMBER($B2:$H2);1000);COLUMNS($B6:B6));"")
    applied to matrix B6:H7 (where row 7 is "B")

    X - where first "A" result is to appear in B10

    =IFERROR(AGGREGATE(15;6;MOD((COLUMN($B$1:$H$1)*1000+($B$1:$H$1))/ISNUMBER($B2:$H2);1000);COLUMNS($B10:B10));"")
    applied to matrix B10:H11 (where row 11 is "B")

    the only real difference for the "X" is that you reference row 1 given this should determine result -- highlighted change (from Y) in red

    note: ; delimiter assumed given locale - modify as required

+ 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. Replies: 0
    Last Post: 08-07-2015, 08:44 PM
  2. Replies: 1
    Last Post: 01-14-2013, 10:35 PM
  3. [SOLVED] Copy formulas from one spreadsheet to another keeping the original sheet cell reference
    By Sheepdog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-08-2012, 02:41 PM
  4. Replies: 2
    Last Post: 10-13-2011, 04:05 PM
  5. Replies: 2
    Last Post: 06-07-2010, 09:23 PM
  6. Using VBA to add new results but keeping original in cell?
    By peakymatt in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-19-2008, 08:35 PM
  7. keeping original sheets as original
    By stevesunfold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-04-2008, 05:33 AM

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