+ Reply to Thread
Results 1 to 7 of 7

=if(and(... formula in conditional formatting dialogue box not working...

  1. #1
    Registered User
    Join Date
    09-24-2014
    Location
    Auckland, New zealand
    MS-Off Ver
    2013
    Posts
    50

    =if(and(... formula in conditional formatting dialogue box not working...

    Hello there,

    I am not sure if this kind of formula can even work in conditional formatting at all?

    Please see attached image. It shows the formula I'm trying to use in conditional formatting...

    =IF(AND(B18="C Major Scale",D12="C"),1,2)

    The arbitrary values of 1 or 2 were placed in the formula to complete it. They do not effect the values of the cell because that is determined by an array. However if the formula condition is met the text colour format is supposed to go red. What I find is that it has gone red whether the condition is met or not.

    Any thoughts much appreciated

    Chris

    =if(and(... formula in conditiona fomatting.JPG
    Last edited by ChrisCD; 06-27-2016 at 01:40 AM. Reason: Add pic

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Hi Chris,

    Sorry but there is not any image attached.

    Please attach you sample with expected result and criteria for getting fast solution.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Rather than an image - lets see a sample excel file

    conditional formatting uses TRUE or FALSE result - so you dont need to use the 1 or 2
    change
    =IF(AND(B18="C Major Scale",D12="C"),1,2)
    to
    =AND(B18="C Major Scale",D12="C")
    IF true - then it will format the cell RED

    is that what you want the condition TRUE to turn the cell red
    Also you need to be careful the range you select and then the cells you use
    whats the range you want to turn red ?

    And if B18 and D12 is fixed

    so if you select the range B18 to B20 to turn red

    when it gets to B20 it will be using the formula
    =AND(B20="C Major Scale",D14="C")

    if you need any of those cells to stay the same Ie D12 never changes - use a $
    =AND(B18="C Major Scale",$D$12="C")

    now on row 20 it will use
    =AND(B20="C Major Scale",$D$12="C")

    Please upload a small clean sample of your data / workbook (not a picture) to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    We would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "Choose File" (top Left corner).
    Find your file, click "Open" click "upload" click 'close windows" Top Right. click "Submit Reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Last edited by etaf; 06-27-2016 at 01:46 AM.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    09-24-2014
    Location
    Auckland, New zealand
    MS-Off Ver
    2013
    Posts
    50

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Hi Ankur,

    can you see it now? I added it a little after. Sorry about that

    Chris

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Rather than an image - lets see a sample excel file

    see post #3 how to change the rule and also some more questions

  6. #6
    Registered User
    Join Date
    09-24-2014
    Location
    Auckland, New zealand
    MS-Off Ver
    2013
    Posts
    50

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Thanks Ankur,

    the formula change you suggested has fixed the problem. BTW it is a very simplified version of what I will now create. to change the colour of root notes only in music scales depending on the key chosen...

    thank you
    Chris

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: =if(and(... formula in conditional formatting dialogue box not working...

    Chirs I didn't solve your problem, it was Etaf. BTW Still I am unable to get your desired result.

    Regards,
    Ankur Shukla

+ 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] Conditional formatting not working
    By Jamidd1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-20-2016, 04:10 PM
  2. Replies: 4
    Last Post: 02-16-2016, 03:41 AM
  3. [SOLVED] Conditional Formatting Not Working With Formula
    By markd038 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2014, 04:05 AM
  4. Conditional Formatting Formula Not Working Properly
    By Oscar Martin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2014, 08:59 AM
  5. AND in Conditional Formatting Formula not working
    By readyemail in forum Excel General
    Replies: 11
    Last Post: 11-30-2010, 06:00 PM
  6. using a formula in conditional formatting not working
    By missmischa in forum Excel General
    Replies: 4
    Last Post: 02-22-2010, 06:04 PM
  7. Conditional Formatting with LARGE formula not working
    By peri1224 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-02-2010, 09:47 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