+ Reply to Thread
Results 1 to 8 of 8

collecting information from a table without blanks

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    ישראל
    MS-Off Ver
    Excel 2010
    Posts
    3

    collecting information from a table without blanks

    Hi,
    I have excel file with two sheets.
    In sheet2 there is a table with different columns. In each column there is data and some blank cells.
    In sheet1 I would like to choose name of one column from the sheet2 and then I want to get the information from this column but without the blanks.
    Is there a way to do so using excel formulas, or should I look for a solution using VBA?
    Attached a sample file.


    Thanks.
    Ilan.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: collecting information from a table without blanks

    I'm no sure what is meant to represent row and column headers and what is meant to represent actual cell entries. Please repost your attachemnt showing the data in their actual positions on sheets 1 and 2. Ok, You'll only be able to do that on Sheet 1 for EITHER A or B, it doesn't matter which - but do it for one of them. But it'll take a HUGE amount of pointless guesswork out of your request.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: collecting information from a table without blanks

    It's not quite clear where your data is coming from. In Sheet 1 when you choose the letter A, the number 2 populates letter 'b' (Cell E7). However, on Sheet 2, Column A is blank for the number 2 (Cell J7). Other issues as well, such as row A on Sheet 2 doesn't contain the letter 'f', however you have it populating for the number 7 (Cell E11). Can you provide some clarity as to how this data is connected?

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: collecting information from a table without blanks

    Here's a simple template for removing blanks. Perhaps this will help.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    ישראל
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: collecting information from a table without blanks

    OK,
    I can see now that I was not clear,
    I think that the attached file is better.
    Let's say that I choose TYPE 1 in cell A1 in Sheet1.
    What I actually need is that the excel will do is HLOOKUP of TYPE 1 in Sheet2 and bring back all the data in TYPE 1 column back to columnB in Sheet1 only cells that contains information (none blank).
    I hope that this is more clear.
    Thank you for the quick reply.
    Ilan.
    Attached Files Attached Files

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: collecting information from a table without blanks

    Hi,
    I have done this by using named ranges.
    Just create Named Ranges as below:-
    Table
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Col
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    RowArr
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and Use the following formula anywhere to list the non blank cells.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change the Table Dimensions Manually.

    To add named ranges, Goto Formula ---> Name Manager.
    Edit:- Changed as per new requirements
    Check the attached file:-
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 01-21-2015 at 02:37 PM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: collecting information from a table without blanks

    I selected your little table with the headings A B C D and clicked on the Formula Tab, Create From Selection and chose Top Row. This created names A B C_ D. In order to be able to use all those names, I created a VLOOKUP table in P5:Q8 to translate the value in C6 to the names created. I used those range names in the formula. You can enter any value from A to D and have the correct values returned.

    Formula: copy to clipboard
    Please Login or Register  to view this content.




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

    Here is your file with the formula implemented.....Area with red border.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  8. #8
    Registered User
    Join Date
    12-03-2013
    Location
    ישראל
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: collecting information from a table without blanks

    Hi Guys,
    All your examples are working great!!
    Thank you very mutch.
    Ilan.

+ 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. Collecting information from sheet
    By Kevin62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2014, 02:52 PM
  2. collecting data from numerous sheets and collecting into one
    By molesy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2014, 02:03 PM
  3. Excel 2007 : Collecting Information
    By SoulRebel in forum Excel General
    Replies: 7
    Last Post: 02-28-2012, 10:59 AM
  4. Collecting Information with Excel
    By injest in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2011, 08:00 PM
  5. Collecting information from a template used daily
    By RSGREINER in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-11-2010, 11:15 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