+ Reply to Thread
Results 1 to 8 of 8

Auto Remark Text and color columns based on condition

  1. #1
    Registered User
    Join Date
    04-30-2020
    Location
    Gurgaon
    MS-Off Ver
    Office 365
    Posts
    7

    Auto Remark Text and color columns based on condition

    Dear All,

    I am looking for excel formula or VBA code whicSamp.jpgh will check different cells and highlight in case of repeat or more than approved value.
    Refer below sample

    1> Here excel will check GCS code (B4), Name(C4), Claim Type (D4) - with rest of the below cells in case of repeat entry excel should highlight repeat line with red color and put remark in H column.

    2> At the same time excel will also check GCS code (B7), Claim Type (D7) and Amount (E7) - if found more than approved amount in table 2 excel should highlight repeat line with orange color and put remark in H column.

    Could you please help me in doing this...

    Samp.jpg

  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: Auto Remark Text and color columns based on condition

    Are GCS codes unique to one Name?

    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Show a before and after situation with manually calculated results, explaining which information is data and which is results, and if it's not blindingly obvious how you have arrived at your results some explanatory notes as well.

    To upload a file click the Go Advanced button at the foot of your post, look underneath the post area for the Manage Attachments section and take it from there.
    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
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Auto Remark Text and color columns based on condition

    For the first question.

    I4 = B4&C4&D4

    J4= countif($I$4:$I4,$I4) and drag down.

    Then filter on column J for the value > 1 to get the duplicated ones.

    Since you did not add an excel file I can not show it to you.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Auto Remark Text and color columns based on condition

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. As you are new, I will provide the link for you this time: https://www.mrexcel.com/board/thread...ition.1139082/.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    04-30-2020
    Location
    Gurgaon
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Auto Remark Text and color columns based on condition

    Hi Richard Buttrey

    Have attached file just now...

    Sanket
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-30-2020
    Location
    Gurgaon
    MS-Off Ver
    Office 365
    Posts
    7

    Re: Auto Remark Text and color columns based on condition

    Hi There,

    I understand this and will not be repeated again, sorry for inconvenience.

    Sanket

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Auto Remark Text and color columns based on condition

    question 2

    sheet references.

    Add new column A.

    A3 =D3&B3&C3 and drag down.


    Sheet MISC claim tracker

    K4 =IF($E4>VLOOKUP($I4,References!$A$3:$E$7,5,0),"orange","") and drag down.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,554

    Re: Auto Remark Text and color columns based on condition

    Here is a proposal that is very similar to oeldere's:
    Populate column A using: =C4&D4&E4&G4
    Conditional formatting rule for red: =COUNTIFS($A$4:$A4,$A4)>1
    For orange: =$F4>AGGREGATE(15,6,References!$D$3:$D$7/((References!$C$3:$C$7=$C4)*(References!$B$3:$B$7=$E4)),1)
    Formula to populate column I:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] If Condition met then put the remark between files
    By dumdumbum in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2020, 05:37 AM
  2. [SOLVED] Need a single formula for multi condition remark.
    By Pankaj jaswani in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2020, 09:37 AM
  3. Auto-change the color of a text box based on referenced letter values
    By Phil Lifsey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-20-2020, 04:17 PM
  4. Auto color cell based on text, but leave existing text..
    By salameda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2019, 04:35 PM
  5. [SOLVED] Toggle fill Color in cell based on condition of cell--blank or text added.
    By moosetales in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2014, 08:39 PM
  6. Replies: 3
    Last Post: 01-08-2014, 03:56 PM
  7. Condition based on Cell Text Color
    By yogesh1904 in forum Excel General
    Replies: 2
    Last Post: 09-09-2012, 11:21 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