+ Reply to Thread
Results 1 to 4 of 4

Matching PO number with matchin negative value w/ corresponding positive value

  1. #1
    Registered User
    Join Date
    03-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Matching PO number with matchin negative value w/ corresponding positive value

    I have a spreadsheet of invoices and credits. Is there a way to highlight both the positive and negatives values in column H if they have matching PO No in column C as well as matching positive and negative value in H? For example in row 5 and 6, there is a matching PO No in C as well as matching value in H, I would like Excel to highlight the values in H5 and H6.


    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Matching PO number with matchin negative value w/ corresponding positive value

    I think if you highlight column H and with H2 active apply this formula to the conditional formatting:
    =SUMPRODUCT(IF(H$2:H$100=-H2,1,0),IF(C$2:C$100=C2,1,0))>0
    it would do what you want.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Matching PO number with matchin negative value w/ corresponding positive value

    hi infra. another alternative. select the range you want to apply to (say from H2:H73)
    go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =COUNTIFS($C:$C,C2,$H:$H,-$H2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    03-14-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Matching PO number with matchin negative value w/ corresponding positive value

    Hi! guys,

    Thank you very much for your help. It indeed solve my problem.

    By the way, should I decide to delete the matching values, how should I do it?

    Once again, thank you.

+ 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] Matching negative value w/ corresponding positive value
    By Tom K in forum Excel General
    Replies: 22
    Last Post: 05-14-2019, 02:27 AM
  2. Matching positive to negative values
    By harrison298 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-08-2017, 11:52 PM
  3. Matching negative value w/ corresponding positive value
    By clarayee82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2013, 04:15 PM
  4. Replies: 1
    Last Post: 11-20-2008, 01:52 AM
  5. Replies: 2
    Last Post: 11-13-2008, 12:35 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