+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] Put a border around cells that make up an amount

  1. #1
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    [SOLVED] Put a border around cells that make up an amount

    Hello everyone

    Please see attached. In the attachment, the desired result is in the Desired Result sheet.

    The objective is to look at each transaction amount (either a Debit or Credit), determine the detail amounts that make it up, put a border around those detail amounts, then green highlight the transaction amount. Debit transaction amounts will be made up of positive detail amounts, and credit transaction amounts are made up of negative detail amounts. The detail amounts will always be in sequence. So the first transaction amount will be made up of the first n detail amounts. The second transaction amount will be made up of the next n detail amounts, and so on.



    So for example, the first transaction is a debit of 6 (cell B3). The amounts 2, 1, and 3 (cells C12 to C14) make up this debit. Therefore, put a border around C12 to C14, then green highlight B3.

    The second transaction is a debit of 10 (cell B4). The amount 10 (cell C15) makes up this debit. Therefore, put a border around C15, then green highlight B4.

    The third transaction is a credit of 2 (cell C5). The amounts -1, and -1 (cells C16 to C17) make up this credit. Note that since it is a credit, then negative amounts make it up. Therefore, put a border around C16 to C17, then green highlight C5

    And so on and so forth. I currently do this manually but it is very tedious since there can be many transactions. So I am hoping for a macro that can do this instead. I would really appreciate any assistance on this.
    Attached Files Attached Files
    Last edited by uberathlete; 06-21-2016 at 08:58 AM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Put a border around cells that make up an amount

    there is no matching owner , can one assume first come first serve

  3. #3
    Forum Contributor
    Join Date
    10-27-2005
    Posts
    177

    Re: Put a border around cells that make up an amount

    Yes rcm. Actually, the owner can be random

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Put a border around cells that make up an amount

    this routines will do as requested...
    further automation can be done. A button can be added to call

    Please Login or Register  to view this content.

+ 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. How to make the short border?
    By ajing in forum Excel General
    Replies: 3
    Last Post: 01-27-2016, 02:56 PM
  2. make border wt selection only
    By ash3angel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-22-2015, 08:43 AM
  3. Conditionally make thick border
    By gmcconnell in forum Excel General
    Replies: 1
    Last Post: 10-26-2011, 02:21 PM
  4. [SOLVED] Make cells negetive amount
    By ggant in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-19-2006, 11:20 AM
  5. [SOLVED] How do I make a border flash, blink or otherwise?
    By DWALLACE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. [SOLVED] How do I make a border flash, blink or otherwise?
    By DWALLACE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. How do I make a border flash, blink or otherwise?
    By DWALLACE in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10: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