+ Reply to Thread
Results 1 to 7 of 7

Find corresponding negative values

  1. #1
    Registered User
    Join Date
    06-29-2010
    Location
    St. Bess, Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Find corresponding negative values

    Hi,

    I have a worksheet with charges; each negative charge should have a corresponding positive offset. For now both sets of numbers occupy the same column.

    The account has a balance, ie, not all the negative entries have a corresponding offset (pr vice-versa). I have tried separating the negative from the positive and then use the "lookup" formula but if there are three positive entries of the same value and only one negative offset, the formula doesn't account for that. Unfortunately the corresponding numbers don't share the same codes such as purchase order etc.

    Basically I want a code that will alert me of negative entries that are without the corresponding offset and will also factor in the duplications.

    Any help will be greatly appreciated!
    Last edited by rylo; 04-12-2011 at 01:24 AM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Finding corresponding negative values... help

    Hi

    Can you submit an example file showing your data structure and some representative data.

    rylo

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Finding corresponding negative values... help

    For this example let's assume your dollar amount , both debits and credits , are in column A:A ...starting in A1 .... how about using these formulas in nearby columns.


    =COUNTIF(A:A,A1) + COUNTIF(A:A,-A1)

    =SUMIF(A:A,A1,A:A) + SUMIF(A:A,-A1,A:A)

    These formula will tell you how rows have these specific amount and what the balance , of the specific amount , is. Now just sort you columns to group information.

  4. #4
    Registered User
    Join Date
    06-29-2010
    Location
    St. Bess, Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Finding corresponding negative values... help

    Quote Originally Posted by rylo View Post
    Hi

    Can you submit an example file showing your data structure and some representative data.

    rylo
    Thanks for the replies so far guys. I have attached a very small section of the sheet, you can see where the total number of negative and positive values don't add up
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-29-2010
    Location
    St. Bess, Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Finding corresponding negative values... help

    Quote Originally Posted by nimrod View Post
    For this example let's assume your dollar amount , both debits and credits , are in column A:A ...starting in A1 .... how about using these formulas in nearby columns.


    =COUNTIF(A:A,A1) + COUNTIF(A:A,-A1)

    =SUMIF(A:A,A1,A:A) + SUMIF(A:A,-A1,A:A)

    These formula will tell you how rows have these specific amount and what the balance , of the specific amount , is. Now just sort you columns to group information.
    Can you give me another example of what you mean using the data I've attached for clarity please?

    Thanks
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-29-2010
    Location
    St. Bess, Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Finding corresponding negative values... help

    Can anyone else try to help, pleaaaaaaaaaaaaaaaaaaaaasssssse?

  7. #7
    Registered User
    Join Date
    06-29-2010
    Location
    St. Bess, Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: Finding corresponding negative values... help

    Quote Originally Posted by nimrod View Post
    For this example let's assume your dollar amount , both debits and credits , are in column A:A ...starting in A1 .... how about using these formulas in nearby columns.


    =COUNTIF(A:A,A1) + COUNTIF(A:A,-A1)

    =SUMIF(A:A,A1,A:A) + SUMIF(A:A,-A1,A:A)

    These formula will tell you how rows have these specific amount and what the balance , of the specific amount , is. Now just sort you columns to group information.
    It worked!!!!!!!!!!!!
    Thank you so much, May God bless you and preserve you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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