+ Reply to Thread
Results 1 to 8 of 8

Problem With Conditional Formatting

  1. #1
    Registered User
    Join Date
    02-17-2020
    Location
    Louisville, KY
    MS-Off Ver
    2016
    Posts
    43

    Problem With Conditional Formatting

    Attached is a listing of broker transactions for a month. The first column represents what was settled by the end of the month, as per the broker. The second column represents the total transactions for the month as per my register. The broker downloads daily my trades; I do not enter anything manually. Inasmuch as column one represents only settled trades, the cells that are in column one should also be in column two. However, when I do a Conditional Formatting to highlight duplicate cells in each column, the total of the duplicates in the second column does not equal those in the first column.

    Any help?
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem With Conditional Formatting

    Not sure why you think that. The matches are the same in each column. See attached. I've also conditionally formatted A & B t show which match
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-17-2020
    Location
    Louisville, KY
    MS-Off Ver
    2016
    Posts
    43

    Re: Problem With Conditional Formatting

    Thanks Richard. What is confusing me is that when I do a conditional sort with all of the green cells on top in the second column, I get a total of ($5,845.54) in the green cells (as per the sum feature on the task bar), as compared to the total of $241.96 in the first column. What am I doing wrong?
    Thanks again.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problem With Conditional Formatting

    I presume you're refferring to a Conditional Filterin not a conditional sorting.

    When I filter column B for Green I see the total 241.96 so I'm not sure how you arrive at your number.
    That's why I put in the column E numbers. These identify where there is a column B cell match with column A, i..e it's the same as the CF that paints the cells green.

    In order to be getting a large negative number like you mention I guess somehow you're picking up the non matched cells in B219:B473 althoug they are not exactly the number you mention

  5. #5
    Registered User
    Join Date
    02-17-2020
    Location
    Louisville, KY
    MS-Off Ver
    2016
    Posts
    43
    Quote Originally Posted by Richard Buttrey View Post
    I presume you're refferring to a Conditional Filterin not a conditional sorting.

    When I filter column B for Green I see the total 241.96 so I'm not sure how you arrive at your number.
    That's why I put in the column E numbers. These identify where there is a column B cell match with column A, i..e it's the same as the CF that paints the cells green.

    In order to be getting a large negative number like you mention I guess somehow you're picking up the non matched cells in B219:B473 althoug they are not exactly the number you mention
    Thanks again. I will check again.

  6. #6
    Registered User
    Join Date
    02-17-2020
    Location
    Louisville, KY
    MS-Off Ver
    2016
    Posts
    43

    Re: Problem With Conditional Formatting

    OK, Sheet 2 shows the results of the following procedure: I first highlight Columns A and B. I then click "Conditional Formatting", then "Highlight Cell Rules", then "Duplicate Values", then ok to "Duplicate values with Light Red Fill with Dark Red Text". I then perform a custom sort of Column B to list all of the shaded cells at the top of the list. Summing all of these red cells, I get ($5,724.16). In addition, there are 6 more cells shaded in Column B than are entries in Column A. I must be overlooking something.
    Thanks again for your help and patience. art the top
    Attached Files Attached Files

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Problem With Conditional Formatting

    Look like it is "Duplicate in pair".
    You are trying to mark duplicate in B column, including duplicate itself.
    For example: see below image: 4 & 6 in B, does not exist in A, but duplicate itself in B. 1 extra Number 3. All should not be highlighted
    Therefore, using these:
    For column A:
    =COUNTIF($A$2:$A$229,A3)=COUNTIF($B$2:$B$484,A3)
    Apply to A only

    For column B:
    =COUNTIF($B$1:$B2,B2)<=COUNTIF($A$2:$A$229,B2)
    Apply to B only

    Total duplicate in both column should be equal 430.99
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by bebo021999; 02-27-2020 at 01:45 AM.
    Quang PT

  8. #8
    Registered User
    Join Date
    02-17-2020
    Location
    Louisville, KY
    MS-Off Ver
    2016
    Posts
    43

    Re: Problem With Conditional Formatting

    Thanks Bebo.
    A little background: Column A represents cleared, i.e. "settled" transactions as per the statement from my broker. There are more transactions listed on the statement ("unsettled") but they are separate and not part of this exercise inasmuch as they occurred after the "cutoff" date the broker uses (usually 2-3 days before the end of the month). Column B represents transactions that I download into Quicken on a daily basis electronically. These latter transactions occurred on each day of the month, including the days after the "cutoff" date used by the broker in his statement. What I am trying to do is "isolate" transactions in Column B that match the "settled" transactions in Column A. If there are duplicates in Column B, that is ok. The total $$ amount of the broker's settled transactions (228 in number) is $241.96. In the end that should be total of the column B cells that are highlighted (disregarding duplicate cells, if any).
    In a nutshell, I am trying to match All of the "SETTLED" transactions as per my broker's satement to the correspomding daily transactions in Quicken; hence, I would like all of the broker's transactions matched up with corresponding entry in Quicken, with the total in . There may be duplicates, that's ok.
    I hope this helps, and again, thanks.
    Attached Files Attached Files
    Last edited by jeffkirk; 02-27-2020 at 03:34 PM.

+ 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 Problem
    By davidingilbert in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-29-2014, 06:14 PM
  2. [SOLVED] Conditional Formatting Problem
    By powerade1985 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-04-2014, 04:03 PM
  3. [SOLVED] Conditional formatting problem
    By rjacko10 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2013, 11:46 AM
  4. Conditional Formatting Problem
    By Paul Cooke in forum Excel General
    Replies: 4
    Last Post: 12-13-2012, 06:40 AM
  5. Conditional Formatting Problem
    By dave6726 in forum Excel General
    Replies: 4
    Last Post: 04-02-2011, 06:51 AM
  6. [SOLVED] Conditional formatting problem
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2010, 08:39 PM
  7. Conditional Formatting Problem
    By msimpy22 in forum Excel General
    Replies: 1
    Last Post: 03-01-2005, 01:06 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