+ Reply to Thread
Results 1 to 3 of 3

Returning non-blank cell column/row headers to new array

  1. #1
    Registered User
    Join Date
    05-19-2013
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2011
    Posts
    4

    Returning non-blank cell column/row headers to new array

    I have a set of changing data that I need a formula to help with. There are column (month) and row (person) headers with data (like sales), and I would like to return all of the non-blank cells with both headers and the value.

    This is a pic of the sample data, with some blank cells thrown in the mix.
    Screen shot 2013-08-16 at 11.18.17 AM.png

    And this is what I'm attempting to get as the output.
    Screen shot 2013-08-16 at 11.18.01 AM.png


    I've attached a small demo sheet with the sample data, as well as what I'm aiming to get it to look like when the formula is applied. I've been playing with some of the non-blank things, but can't quite seem to get what i want out of it. Any suggestions?

    Thanks!
    Josh

    Sample.xlsx

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Returning non-blank cell column/row headers to new array

    Sample(1).xlsx
    A small challenge but please see attached.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    05-19-2013
    Location
    Greensboro, NC
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Returning non-blank cell column/row headers to new array

    Thank you Robert!!! That works beautifully. I was hoping, since I'm not an Excel guru, if you could help explain a few parts (in case I need to change the size or orientation of the input array). I've tried migrating the formulas you provided into a more complex, real-life scenario sheet (attached here) yet I couldn't get the same consistency out the answers... maybe I'm copying something wrong? Or do the formulas need to be tweaked depending on the placement of the array? (The matrix in question in my attached file is colored red, starting at B55, and the three columns below the matrix are my output areas).

    Thanks again!
    block1.xlsx

+ 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: 2
    Last Post: 05-09-2012, 01:30 PM
  2. Replies: 1
    Last Post: 02-18-2012, 01:32 AM
  3. Returning a Specific Cell's Column Header from a Row in an Array
    By zpenacho in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2011, 07:29 PM
  4. Returning selected column headers
    By risys82 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-28-2008, 12:46 PM
  5. Excel - returning column headers in a seperate column
    By ExcelConfused in forum Excel General
    Replies: 1
    Last Post: 03-28-2006, 09:55 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