Consulting

Results 1 to 8 of 8

Thread: Solved: Finding opposite entries.

  1. #1
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location

    Question Solved: Finding opposite entries.

    Hello people,

    I have a list of amounts like:
    124.69
    108.83
    59.4
    120.52
    41.49
    41.09
    19.8
    70.51
    168.3
    -124.69
    -108.83
    In column I.

    Is there a formula (to be placed in column J) which returns false
    (or anything else) if there is no opposite entry amount in column I?.

    For example, the first amount 124.69 has a minus -124.69
    in the list, so this should return TRUE.
    The amount 59.4 doesn't have a minus amount so should FALSE.

    Any ideas please?,

    Thanks,

    Marcster.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =ISNUMBER(MATCH(-A1,I:I,0))

  3. #3
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    Hi XLD,

    That doesn't work.

    I have data in columns A:I
    But it's just the amounts in column I i'm interested in.
    Ive tried =ISNUMBER(MATCH(-K1,I:I,0))

    Marcster.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Marcster
    Hi XLD,

    That doesn't work.

    I have data in columns A:I
    But it's just the amounts in column I i'm interested in.
    Ive tried =ISNUMBER(MATCH(-K1,I:I,0))

    Marcster.
    Are you trying to identify any number in A:I that has a negative value. If so, I would use conditional formatting with a formula of

    =COUNTIF(A$1:$H400,-A1)=0

  5. #5
    VBAX Mentor tpoynton's Avatar
    Joined
    Feb 2005
    Location
    Clinton, MA
    Posts
    399
    Location
    what about =ISNUMBER(IF(I1>0,MATCH(-I1,I:I,0))) ? that way only positive #'s are evaluated...

  6. #6
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    What I have is a list of data 1,192 rows covering columns A:I
    In column I i have various amounts, postive and negative amounts.
    Most of them will cancel each other out.
    ?124.69 and -?124.69
    but there will be some with no negative or positive entry.
    A ?59.40 doesn't have a -?59.40 in column I.
    A -?41.59 doesn't have a ?41.59 in column I.
    I need to find all these. A formula or validation in column J?.

    Thanks for your help,

    Marcster.

  7. #7
    VBAX Mentor tpoynton's Avatar
    Joined
    Feb 2005
    Location
    Clinton, MA
    Posts
    399
    Location
    then I believe that XLD's original formula basically works:

    =ISNUMBER(MATCH(-I1,I:I,0))

    this returns false if the opposite of the # is not in column I...at least it does in the attachment!

  8. #8
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    That works .

    Don't know what I did earlier .

    Thanks,

    Marcster.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •