+ Reply to Thread
Results 1 to 11 of 11

conditional format with conditons

Hybrid View

  1. #1
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    conditional format with conditons

    i have this table:

    sample 376.xlsx

    i want to conditional format column f if the matching value in column a (ex. 1180) is populated in column c and d even if on different rows..

    i have this - =COUNTIFS(a1:a14,f2,c1:c14,">0",d1:d14">0") which applies to "1185". however i cant figure out how to have it look in different rows also to apply to "1180" also.


    Thanks!
    Last edited by excel wannabe pp; 01-05-2023 at 01:02 AM.

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    I've some questions:
    Attached Images Attached Images

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    I'm wasting my time. I'm figuring out what you want and meanwhile you're changing the example and question in Post #1.

    But I don't really understand the new situation either.
    I do not see 1180 and 1185 in column C and in column D.
    So why do they need to be marked anyway?

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: conditional format with conditons

    Use this conditional format formula and apply to F2 to F12

    =SUMPRODUCT(--(F2=$A$2:$A$14)*IF($C$2:$C$14<>"",1,0)+--(F2=$A$2:$A$14)*IF($D$2:$D$14<>"",1,0))= 2
    Spreadsheet attached and I've shown the formula in column H to explain what it is doing in each instance.
    Happy with my advice? Click on the * reputation button below

  5. #5
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: conditional format with conditons

    thanks for your help

    let me just try to clarify. pretty obvious that im not an excel expert so please bear with me...

    my data is a bunch of rows of ID # along with various data points in the next few columns.
    i am trying to find any ID # in Column A that has an entry in both Column C and D (Value 1 and Value 2) throughout any of the rows. In the sample I attached, only 1180 (A5:6) and 1185 (A12) have an entry in both Column C and D (C6 & D5 for "1180" and C12:D12 for "1185)

    The formula you made also highlights "1184" although it doesnt have an entry in Column D.

    i hope this clarifies a bit

    thanks!

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    In the meantime I also understand what the intention is.

    Please try this CF-rule appy to $F$2:$F$12:

    Formula: copy to clipboard
    =SUMIF(A$2:A$14,F2,C$2:C$14)*SUMIF(A$2:A$14,F2,D$2:D$14)>0
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11

    Re: conditional format with conditons

    perfect! thanks!

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    The formula you made also highlights "1184" although it doesnt have an entry in Column D.
    My formula in Post #5 does not highlight 1184.

  9. #9
    Registered User
    Join Date
    11-22-2022
    Location
    usa
    MS-Off Ver
    365
    Posts
    11
    Quote Originally Posted by HansDouwe View Post
    My formula in Post #5 does not highlight 1184.
    I was referring to Crooza's answer. Your's worked great.
    Sorry for the misunderstandings

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    You are welcome, thanks for the rep .

  11. #11
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: conditional format with conditons

    In that case please start the post with @Crooza, especially in case you don't refer to the previous post.

+ 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] Copy data to next row but with conditons
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2017, 04:40 AM
  2. [SOLVED] If formula that will check certain conditons
    By geliedee in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-28-2015, 07:35 AM
  3. Replies: 9
    Last Post: 03-20-2015, 04:32 AM
  4. multiple conditons for conditional formatting
    By leem in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-03-2012, 09:38 AM
  5. Matching Multiple Conditons
    By Azam Ali in forum Excel General
    Replies: 8
    Last Post: 06-13-2011, 06:42 AM
  6. Average if two conditons are met
    By shilloh in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 05-18-2011, 12:07 PM
  7. Formula with conditons
    By dhampatel in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-25-2006, 10:20 PM

Tags for this Thread

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