+ Reply to Thread
Results 1 to 16 of 16

Excel 2007 : Highlighting Multiple Cell Values in Same Row If .....

  1. #1
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Highlighting Multiple Cell Values in Same Row If .....

    Hi guys, I'm trying to create a spreadsheet where I want to highlight an entire row of selected cells if a certain cell within the highlighted cells contain the text "S."

    Ex:
    A1 | B2 | C3 | D4 | E5 | F5

    Highlight A1:F5 IF cell B2 contains the letter "S".

    I tried using conditional formatting but it seems like that only highlights one cell... Does anyone have any clue if Excel can do that?

    Thanks!!
    Last edited by boba7523; 04-29-2011 at 03:51 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Highlight cells A1:F5 and conditional format / formula is
    =COUNTIF($A$1:$F$5,"S")
    Last edited by grizzly6969; 04-26-2011 at 04:09 AM.

  3. #3
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    I think i misinterpreted what I wanted. I meant to say if cell A1 contains the letter "S", then fill the cells A5:F5 with red color.

  4. #4
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    highlight cells A1:F5 the conditional format / formula is
    =$A$1:$F$5="S"
    then format your colour
    Last edited by grizzly6969; 04-26-2011 at 02:45 PM.

  5. #5
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    I got a #Value! error :/

    Edit: nevermind fixed it, works, THANKS!

    Is it possible to add an IF function into the conditional formatting?

    For example, if cell A1 contains letter "S", then highlight A1:F5.
    Last edited by boba7523; 04-26-2011 at 02:52 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    not sure why you would want an if formula but you can use
    $A$1="S"

  7. #7
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Quote Originally Posted by grizzly6969 View Post
    not sure why you would want an if formula but you can use
    I placed that formula in the formula bar but it came out as text. Also, where do i go about enabling the highlight function?

  8. #8
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    what version of excel are you using

  9. #9
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    OK if you are using excel 2007 open the file I have attatched
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Thanks so much for taking the time to write it out for me, learned something new today


    BTW, is there a way to duplicate this conditional formatting to the entire sheet so I don't have to repeat the same process for the proceeding rows?

    So like:
    =$A$1="S" ........... Applies to: =$A$1:$F$1
    =$A$2="S" ........... Applies to: =$A$2:$F$2
    =$A$3="S" ........... Applies to: =$A$3:$F$3
    =$A$4="S" ........... Applies to: =$A$4:$F$4
    etc...
    Last edited by boba7523; 04-26-2011 at 04:36 PM.

  11. #11
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Highlight A1:F1 go to conditional format / new rule / use a formula to determine which cells to format
    put in formula
    =$A1="S"
    and format your colour and OK
    now left click and highlight A1:F1 and right click and go COPY drag down as far as you need then right click and go to PASTE SPECIAL then click on FORMATS and click ok
    this will do what you want

  12. #12
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Thank you!

  13. #13
    Valued Forum Contributor
    Join Date
    05-19-2010
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    391

    Re: Highlighting Multiple Cell Values in Same Row If .....

    glad I could help

  14. #14
    Registered User
    Join Date
    04-25-2011
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Btw, is there a way to tell Excel to change the font color if a cell has a value greater than 0?

    I tried using the IF formula but am stuck at how to tell it to change font color if true.

    Ex: If A1>0, change font color to red, if false, input "X".

  15. #15
    Registered User
    Join Date
    09-09-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Highlighting Multiple Cell Values in Same Row If .....

    Quote Originally Posted by grizzly6969 View Post
    Highlight A1:F1 go to conditional format / new rule / use a formula to determine which cells to format
    put in formula and format your colour and OK
    now left click and highlight A1:F1 and right click and go COPY drag down as far as you need then right click and go to PASTE SPECIAL then click on FORMATS and click ok
    this will do what you want

    Hi grizzly6969. I am actually having the same issue as boba7523. Mine though is that I having trouble copying the conditional format I made to the succeeding cells/rows.

    Anyway, what I wanted was that if cell J3 contains the word PENDING, cells B3 to J3 will be highlighted in red. I was able to do it by making a rule on conditional format using formula =COUNTIF($B$3:$J$3,"PENDING")
    What I'm having trouble with is copying the conditional format rule I made to the succeeding rows.

    I am using Excel 2007 and my worksheet contains 200 rows. I would appreciate if you can teach me duplicating such rule so that I don't have to repeat the same process for the succeeding rows.

  16. #16
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Excel 2007 : Highlighting Multiple Cell Values in Same Row If .....

    Hello Saishu, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following and make the necessary change. Thanks.

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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