+ Reply to Thread
Results 1 to 3 of 3

Excel Formula/VBA-Conditional Sum to find contra from multiple entries

  1. #1
    Registered User
    Join Date
    02-11-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    2

    Excel Formula/VBA-Conditional Sum to find contra from multiple entries

    Hi Experts,

    I have a sheet which runs into over 30000 rows. I need to find contra entries within a company in column B for a each job in column C. Basically I need to find which transactions sum to 0 in column K (Balance in Base). so for example, in company code IN9073 in column B, there are 30 transactions which sum to 3,000 in column K (Balance in base). I have manually identified whether in each transaction is contra on not in column L (Marker2). If a particular transaction is not summing to 0, I have marked it as WIP.

    The problem is there can be transaction with amount + and - which can be identified AND transactions where different amounts with different signs sum to 0.

    I need this to be achieved by way of some formula or VBA. I tried sumifs but failed when there are 10 transactions out of which 8 are contra and 2 are not.

    File is attached.

    P.s. Rounding off to 1 or 2 is completely allowed

    Thanks in advance.


    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,744

    Re: Excel Formula/VBA-Conditional Sum to find contra from multiple entries

    Hi

    If I correctly understand this should works (into K2):

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and drag it down as much as needed.

    and into L2 You can put something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Be aware (as I've notice) due to lots of transactions related to the same ID credit/debit are not summing into 0, some decimal can be still outstanding, so formula in L2 should be less strict (<0.5 or something).
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    02-11-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    2

    Re: Excel Formula/VBA-Conditional Sum to find contra from multiple entries

    Hi KOKOSEK,

    Thanks for the revert. My apologies, I could not put up a question in correct way.

    Column K (Balance in Base) is a total of Column I(Debit) and J(credit). I.e. Amount in debit column will be positive in Balance in base column and amount in credit column will be negative in Balance in base column.

    I need answer in column M. Infact you can safely ignore column I and J.

    Moreover, in company code IN9073 in column B, there are 30 transactions which sum to 3,000 in column K (Balance in base). I have manually identified whether in each transaction is contra on not in column L (Marker2). If a particular transaction is not summing to 0, I have marked it as WIP.

    Hope this helps.

+ 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] Excel VBA to find Duplicate Entries with multiple column combination and Display Rows Numb
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2018, 05:36 AM
  2. Replies: 4
    Last Post: 05-11-2017, 03:27 AM
  3. Contra items - multiple lines
    By RossInk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-13-2015, 03:33 PM
  4. Excel Formula need help searching, multiple entries-???
    By thursday140 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2013, 01:47 PM
  5. Macro to identify contra entries and then preparing summary for same
    By caavimak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2012, 01:04 AM
  6. Replies: 3
    Last Post: 07-20-2010, 11:38 AM
  7. Using find function to find entries in multiple cells
    By stanigator in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2007, 08:45 PM

Tags for this Thread

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