+ Reply to Thread
Results 1 to 6 of 6

Fill one tab with certain non contiguous cells from another tab

  1. #1
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Fill one tab with certain non contiguous cells from another tab

    Sorry for the poor description.

    I have a list of items on the first sheet of a workbook.
    Only items in column A that have a value in column B (it can be any value), need to be copied to the second sheet.

    If I use something like =if(sheet1!B1="","", A1) and fill this down, I get the data but also all the blanks which then requires a copy/paste and sort to bring them together.

    Is there a formula I can use to copy just the relevant items to the second tab and miss out on the blanks?



    FIRST TAB DATA
    A B
    __
    1 a
    2
    3 c
    4
    5 a
    6 j
    7
    8


    SECOND TAB CURRENT
    A B
    __
    1

    3

    5
    6



    SECOND TAB - REQUIRED
    A B
    __
    1
    3
    5
    6

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Fill one tab with certain non contiguous cells from another tab

    Instead of snap shot, attach sample file with before & after result required.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: Fill one tab with certain non contiguous cells from another tab

    Quote Originally Posted by avk View Post
    Instead of snap shot, attach sample file with before & after result required.
    I've tried to attach a sample file.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Fill one tab with certain non contiguous cells from another tab

    In second tab sheet "B2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In Second Tab Required sheet "B2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-23-2011
    Location
    Sydney Australia
    MS-Off Ver
    Excel for Mac V16.39
    Posts
    68

    Re: Fill one tab with certain non contiguous cells from another tab

    Thanks avk!

    A couple of issues.
    Firstly, the formula is returning the data from column B instead of column A.
    Also, is there any way of doing away with the "Second Tab Required" worksheet altogether. I only had it there to show the output I was wanting on the second tab.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Fill one tab with certain non contiguous cells from another tab

    Try the following:
    1) Select cell A2 on the Second Tab sheet,
    2) Paste the following array entered formula* into the formula bar:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3) Simultaneously press the *Ctrl, Shift and Enter keys
    4) copy down as far as needed
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Fill non contiguous ranges with zeros
    By drgkt in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-03-2017, 10:49 PM
  2. [SOLVED] Using scripting dictionary to add contiguous group of items from non contiguous range
    By stnkynts in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2014, 06:12 PM
  3. [SOLVED] copy and paste from contiguous cells to non-contiguous cells using the = function
    By shameus in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-05-2013, 06:48 PM
  4. Replies: 5
    Last Post: 11-22-2013, 05:58 PM
  5. [SOLVED] How to sum non-contiguous columns applied as a formula on contiguous cells
    By figo12 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2013, 01:07 PM
  6. [SOLVED] How to delete multiple contiguous (and/or) non-contiguous rows, in an excel table
    By jimmalk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2012, 05:48 AM
  7. Copy and Paste an array (contiguous & non contiguous ranges)
    By Xrull in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-09-2010, 09:17 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