+ Reply to Thread
Results 1 to 8 of 8

Offset debits and credits - p/o

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Offset debits and credits - p/o

    Hello,


    I have an excel spreadsheet with debits and credits I have to manually offset. I have attached my document

    What I would like to do is if a p/o (column H) has an offsetting debit and credit, or that same p/o has multiple debits and credits that offset-----> highlight these lines one colour

    It gets tricky in that the following criteria should be met, If the p/o has a remaining amount on it, that remaining amount should be from the last TRX Date (the most recent date row should remain on the spreadsheet).
    (please see offset spreadsheet and disregard accrued pop)
    If possible these remaining lines should be highlighted another colour

    I'm looking for a formula that can help me with this.

    Thank you very much
    Attached Files Attached Files
    Last edited by leebird; 08-02-2015 at 09:34 PM.

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Offset debits and credits - p/o

    if a p/o (column H) has an offsetting debit and credit, or that same p/o has multiple debits and credits that offset-----> highlight these lines one colour
    Is this what you mean for this part?

    Looking at the second part yet.
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Offset debits and credits - p/o

    How would you handle the bookings in this example?
    The entries with the letters A, B and C are actually offsets.
    Could they be coloured green and the remaining entries red?
    Or should these offsets be disregarded?
    Offsets.JPG

    the most recent date row should remain on the spreadsheet
    Do you mean the other entries should be deleted or hidden?

  4. #4
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Offset debits and credits - p/o

    Hello, Yes you are correct that is what I meant ------> highlight these lines one colour

  5. #5
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Offset debits and credits - p/o

    Hello,

    In your example they would be coloured green (to align with the other offsets). The remaining entries with no offsets can be red. I would prefer to keeping them on the sheet as opposed to being hidden or deleted please.

    Thank you so much for your help.

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Offset debits and credits - p/o

    Ok, it indeed is a bit tricky. Need to chew on that.
    Would you oppose to a little piece of vba? Just in case.

  7. #7
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Offset debits and credits - p/o

    Think I figured it out. And without turning to vba :-)
    The colouring is done thru Conditional Formatting.
    The formula for the CF however is in a helper column ("Matched") to make the CF faster (or rather less slow).
    I also introduced 2 helper columns to hold the instance of an amount within it's po.
    This is necessary to make a match when there are multiple (equal) amounts to match with.
    For instance if within a po there is a record with $ 100 credit and 2 or more records with $ 100 debit.
    In that case there is no identifier in the table to support choosing a debit amount other than the TRX date.
    But using the TRX date would make things very complex.
    Hope you're ok with using instances for the solution of that.
    The formula is in the column "Matched" for which I made a named range to use in the CF- formula.
    See notes in the sheet for further details.

    It doesn't delete or hide any rows. Filtering on red color will leave only the unmatched records visible.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Offset debits and credits - p/o

    Amazing!! Thank you very much. The trx date was the tricky part but I think your solution works. I very much appreciate your time spent on this. Thank you again!

+ 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. getting the total of debits and credits
    By ammartino44 in forum Excel General
    Replies: 5
    Last Post: 07-24-2015, 06:10 PM
  2. Matching Debits and Credits
    By Hiruy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2015, 07:06 AM
  3. Debits and credits
    By Willow350 in forum Excel General
    Replies: 2
    Last Post: 12-07-2014, 11:34 AM
  4. [SOLVED] debits and credits in one column
    By childothe1980s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2013, 03:47 PM
  5. [SOLVED] Lookup Debits & Credits
    By Sniper in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2012, 10:25 AM
  6. Highlighting Debits and Credits
    By vharjani in forum Excel General
    Replies: 15
    Last Post: 02-23-2012, 02:20 PM
  7. [SOLVED] Change debits to credits
    By Yo in forum Excel General
    Replies: 1
    Last Post: 04-10-2006, 08:20 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