+ Reply to Thread
Results 1 to 12 of 12

Matching a negative value with a positive value using conditional formatting.

  1. #1
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Matching a negative value with a positive value using conditional formatting.

    Good afternoon everyone,

    I am new to the forum. I have been browsing and found some of the information helpful.
    I was looking to find an answer to the above question, but I was not successful.
    I am trying to reconcile an account with over 40,000 lines in excel.
    I need to match a negative amount with a positive amount, eliminate these items so I know what makes up the ending balance. Ex. -4000 matched with a +4000.
    These items are listed in one column. I would like to use conditional formatting because it has the strikethrough feature.
    Any help given is greatly appreciated! If this question has already been asked and solved, please guide me to the thread containing the answer. Thank you so much.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Matching a negative value with a positive value using conditional formatting.

    Hi and welcome to the forum

    Could you post a small sample of data in a workbook and show your expected results?
    It's not entirely clear what you're attempting to achieve here. Well not to me anyway...

    BSB

  3. #3
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Re: Matching a negative value with a positive value using conditional formatting.

    (7,064.00)
    240.00
    7,064.00
    115.00
    (115.00)
    (240.00)
    115.00

    BSB, thank you for responding! Given the above data in a column I want conditional formatting to highlight one negative value with one matching positive value.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Matching a negative value with a positive value using conditional formatting.

    So in the case of 115.00 in your sample data, are you saying you only want one of the them highlighted because there is a -115.00?

    Are you looking for each matching "pair" (one negative, one positive) to be a different colour?

    BSB

  5. #5
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Re: Matching a negative value with a positive value using conditional formatting.

    Yes. So if there are 2 +115 and only 1 (115) I only want one pair highlighted and the other left unhighlighted. I only want pairs highlighted basically. So at the end all the pairs should sum to zero. Hope that makes sense.

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching a negative value with a positive value using conditional formatting.

    Hi
    Suppose your list from A2:...
    In B2 try use these formula
    =IFERROR(MATCH(-A2,A3:A$10,0)+ROW(A2),MATCH(ROW(),B$1:B1,0))
    and copy down

  7. #7
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Re: Matching a negative value with a positive value using conditional formatting.

    Hi Jose,

    Thank you for responding. All the data is in one column.

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching a negative value with a positive value using conditional formatting.

    Yes Jenna.
    All data is in column A. Column B as a number which represent the line where the pair can be found. If is not number the pair can't be found.
    See the file Test23.xlsx

  9. #9
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Re: Matching a negative value with a positive value using conditional formatting.

    Thank you Jose, I will try that and let you know how it works!

  10. #10
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching a negative value with a positive value using conditional formatting.

    Hi Jenna
    Instead using the previous formula post #6 try these (resolve duplicate values better)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Regards

  11. #11
    Registered User
    Join Date
    03-30-2016
    Location
    Atlanta GA
    MS-Off Ver
    2010
    Posts
    6

    Re: Matching a negative value with a positive value using conditional formatting.

    Evening Jose,

    The first formula in post 6 worked a little, but when I summed all the matches the formula identified, it did not equal to zero.

    Trying the second formula, but it is not identifying all the matches.. Maybe I put it in wrong for my data.. Can you attach a test file for this formula like you did the other... Thanks again for your help.

  12. #12
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Matching a negative value with a positive value using conditional formatting.

    Hi Jenna
    See the file Test23(1).xlsx with the formulas (post #6 and post #10)

+ 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. Conditional Formatting - Positive/Negative Values
    By jamie1985 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2024, 12:15 AM
  2. [SOLVED] Matching negative value w/ corresponding positive value
    By Tom K in forum Excel General
    Replies: 22
    Last Post: 05-14-2019, 02:27 AM
  3. Matching positive to negative values
    By harrison298 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2017, 11:52 PM
  4. Matching negative value w/ corresponding positive value
    By clarayee82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 04:15 PM
  5. Replies: 6
    Last Post: 05-31-2013, 04:49 AM
  6. Conditional formatting for positive/negative numbers
    By amartino44 in forum Excel General
    Replies: 5
    Last Post: 04-24-2013, 07:17 PM
  7. Replies: 4
    Last Post: 07-08-2010, 09:33 AM

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