+ Reply to Thread
Results 1 to 6 of 6

merge data from range to range without blank cells

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    merge data from range to range without blank cells

    hello
    i need merge data from column b,c to column i,j without blank cells so i put the expected result in column i,j
    Attached Files Attached Files
    Last edited by ABDELFATTA; 06-05-2020 at 05:48 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: merge data from range to range without blank cells

    Using Power Query, you can Append one table to the other. Attached is the file showing both tables loaded and then appended.

    Review PQ
    In the attached file
    Click on any cell in the new table
    On the Data Tab, click on Queries & Connections
    In the right window, double click to open Query
    Review PQ steps

    M-code basics:
    - "let" is the start of a query
    - "in" is the closing of a query
    - each transformation step sits in between those 2 lines
    - each step line is ended by a comma, except the last one
    - "Source" is always the first step (Source Data)
    - After "in" you have the last step referenced
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: merge data from range to range without blank cells

    Here with the AGGREGATE function in column I , and SUMIF in column J:

    In I3:
    =INDEX($B$1:$B$24,AGGREGATE(15,6,(ROW($B$3:$B$24)/(($B$3:$B$24<>"")*($B$3:$B$24<>"Name"))), ROWS($A$1:A1)))

    In J3:
    =SUMIF(B:B,I3,C:C)
    Attached Files Attached Files
    Last edited by Limor_OP; 06-06-2020 at 03:37 AM.

  4. #4
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: merge data from range to range without blank cells

    thanks, belinda200 it's perfect this is what i want

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: merge data from range to range without blank cells

    You're welcome

    If your problem is solved, please go to Thread Tools and select Mark This Thread Solved

  6. #6
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: merge data from range to range without blank cells

    thanks alansidman it's nice work

+ 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. find relative merge cell data and paste adjacent range
    By cgat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2018, 10:44 PM
  2. Replies: 9
    Last Post: 05-19-2016, 06:48 PM
  3. Replies: 0
    Last Post: 05-18-2016, 04:52 PM
  4. Replies: 4
    Last Post: 12-19-2014, 06:50 PM
  5. Macro to merge and Center varied range of data in a fixed row
    By lbesley in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-11-2014, 12:39 AM
  6. Merge data in a range of cells using a macro
    By Upparna in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-04-2012, 06:19 PM
  7. Merge data in a range of cells using a macro
    By Upparna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 02:57 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