+ Reply to Thread
Results 1 to 2 of 2

Quick and Easy Way to Align Rows

  1. #1
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Quick and Easy Way to Align Rows

    Hi,

    I have an accounts report (spanning several pages) that I have exported to Excel however, the export isn't fit for purpose. The underlying issue here rests with the reporting format in the accounts software, which hasn't been set up properly by the accounts software support team. This will be addressed separately but for now I need a short term solution.

    Essentially the report consists of a few different columns, the last three of which are debit, credit and cumulative balance. If I were to print the report and it was say, across 100 pages, the export is such that Excel recognises each page by leaving a few blank rows between each page, so that there are effectively 100 blocks of info on Excel. I have now condensed the information so that these blank rows have been deleted and I now have just one block on information approximately 9,000 rows long.

    The problem lies in the fact that, when the report is initially exported, each of the 100 blocks of information present the debits, credits and balances in different columns (the scope of the shift is 3 columns i.e. if the debits, credit and balance column should be in columns F, G and H respectively, most of the block will present them in these columns however, some will present them in E, F and G and others present them in G, H and I. The only consistent here is that the debit, credit and balance column are always found to be together i.e. in 3 adjoining columns.

    I wonder if there is a way to align all debits, credits and balance columns in one swift manoeuvre?

    AttachedExcerpt.xlsx is an excerpt of the spreadsheet to demonstrate. Debits are highlighted yellow, credits green and cumulative balances are red.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Quick and Easy Way to Align Rows

    This is going to take some VB. Use the attached spreadsheet as a "template." That is, click on the Clear Source Button and copy and paste the data into cell A4. Then click on the Condense Button and read the results on the results page.

    The spreadsheet makes use of Excel Tables. For more information about Excel Tables see: http://www.utteraccess.com/wiki/inde...ables_in_Excel.

    I'll explain the VB code if you are up to it. Otherwise, enjoy.
    Attached Files Attached Files

+ 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] Quick question about automatic row deletion (should be very quick and easy!!)
    By poptart141 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-09-2013, 12:56 PM
  2. Easy / Quick way to select 2 columns, 100's of rows?
    By DavidJ726 in forum Excel General
    Replies: 4
    Last Post: 05-19-2006, 02:35 PM
  3. [SOLVED] Quick and easy
    By db in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 05:05 PM
  4. Quick and easy
    By chisigs2 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. Quick and easy
    By chisigs2 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 PM
  6. Quick and easy
    By chisigs2 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. [SOLVED] Quick and easy
    By db in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 09:05 AM
  8. Quick and easy
    By chisigs2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2005, 04:05 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