+ Reply to Thread
Results 1 to 5 of 5

=IF formula using Conditional Formatting

  1. #1
    Registered User
    Join Date
    12-14-2011
    Location
    Dominican Republic
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post =IF formula using Conditional Formatting

    I need help on how to do the following:

    In Cell C4 i have the following text: HBO
    now from C7:AI44 I have lots of name text channels.
    what I want to do is.

    =If(C4=¨HBO¨, on that range mentioned above i would like to fill in with colors the name text channels
    that corresponds to HBO.

    is this Possible?

    Than you in advance.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =IF formula using Conditional Formatting

    Select C7:AI44 and go to Home|Conditional Formatting|New Rule

    Select Format Only Cells that Contain from Rule types...

    Select Cell Value >> Equal to from drop downs and enter =$C$4 in last field

    Click Format and choose colour from Fill tab.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-14-2011
    Location
    Dominican Republic
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: =IF formula using Conditional Formatting

    the lists of text channels i have are different from the cell at C4.

    for example; when you buy the entire package of HBO it comes with Sony channel, Warner Channel,
    History Channel, Biography, E! entertainment, AXN, A&E, all these channels corresponds to the HBO
    package, i want it to say something like, If C4 which is HBO, =IF(C4=¨HBO¨ then i would it for
    all the channels mentioned above to fill in with colors.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =IF formula using Conditional Formatting

    Ok, so in a separate sheet make lists of all the packages. Select each package one at a time and enter a package name in the NameBox (found just to the left of the Formula Bar). Enter the name that you would enter in C4... but do not use spaces or other symbols (for e.g. HBO or DiscoveryChannel)

    Then in C4 you can enter the name with or without spaces.

    and reselect the cells to highlight and change rule to Use a formula to determine which cells to format and apply formula:

    =MATCH(C7,INDIRECT(SUBSTITUTE($C$4," ","")),0)

    click Format and choose colour.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: =IF formula using Conditional Formatting

    Hi Leonj79,

    I would request you to upload the sample file. Choose "Go Advanced" while replying and look for paper clip icon to attach the file.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

+ 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