+ Reply to Thread
Results 1 to 2 of 2

Combine lines and then delete

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    120

    Combine lines and then delete

    Hello,

    I am trying to figure out how to do this via VBA and am struggling. I have a spreadsheet with hundreds of lines that is laid out as follows

    Name in Column A
    Rate in Column I
    Account in Column P
    Account Description in Column Q
    Currency In Column R

    What I am trying to do is sum Columns B thru H and J through O (which are all numbers) if Column P and Column Q are the same. Column A, I, and R will be the same on both lines so I would need to carry this information down as well into the newly created summed line.

    Once the summed line is created, I would like to delete the lines that were used to sum it so I am only left with one combined line.

    Any help would certainly be appreciated!

  2. #2
    Forum Contributor
    Join Date
    11-01-2012
    Location
    NJ
    MS-Off Ver
    Excel 365
    Posts
    120

    Re: Combine lines and then delete

    Used concatenate and sumif to get where I needed to.

    Thanks anyway!

+ 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] Combine values from multiple cells into one cell, then delete duplicate lines
    By Ocean Zhang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-21-2015, 07:01 PM
  2. Combine and Sum full lines?
    By blkdymnd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-01-2014, 09:14 PM
  3. [SOLVED] Macro to Delete useless lines, rearrange by dates and skip lines between different days.
    By Tmc2159 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2012, 02:15 PM
  4. combine lines
    By mchipser in forum Excel General
    Replies: 3
    Last Post: 10-10-2008, 03:13 AM
  5. [SOLVED] How to combine lines of code?
    By Papa Jonah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10:06 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