+ Reply to Thread
Results 1 to 4 of 4

CF OR formula works in Excel 2010 but not 2007 - any idea?

  1. #1
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    CF OR formula works in Excel 2010 but not 2007 - any idea?

    Hi all,

    The following formula used in Conditional Formatting works fine for excel 2010 but not excel 2007. Any idea on how to modify it for it to work in 2007??

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The formula essentially check whether each cell in column 5 is holiday or not based on a list in column D of sheet 'Details' (both sets of cells are date formatted).

    Thanks!

    Geoff.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: CF OR formula works in Excel 2010 but not 2007 - any idea?

    hi geoff. in older versions before 2010, you cannot use a formula directly in CF to reference to another worksheet. a workaround is to name the range. you can also shorten your formula
    1. go to Details sheet & select D10:D25.

    2. you should see a name box below the ribbon & on the left of the formula bar. it shows the cell reference. click on that & type a name. i'll type Reference. Press ENTER

    3. go to the worksheet you wish to apply CF & select from the start range say A1:A10. go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =COUNTIF(Reference,D$5)

    4. format to the colour you desire & click ok

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,679

    Re: CF OR formula works in Excel 2010 but not 2007 - any idea?

    =SUMPRODUCT(--(TestBlock=D5))>0,

    Named range TestBlock --> Details!$D$10:$D$25
    Ben Van Johnson

  4. #4
    Forum Contributor
    Join Date
    04-30-2014
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: CF OR formula works in Excel 2010 but not 2007 - any idea?

    Thank both!

    ..... "=COUNTIF(Reference,D$5)" - clever, I knew there was a very simple way to do it!

    After my post, I workout the following:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Both your solutions and my alternative formula do the trick on my 2010 excel, I have sent the file to the 2007 user but you both seem certain that it should work so I am not worried.

    Thanks again.

    Cheers,

    Geoff.

+ 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. Excel 2007 works but not 2010 or 2013
    By Miliano in forum Excel General
    Replies: 1
    Last Post: 10-02-2014, 03:20 AM
  2. Worksheet_Activate works differently in Excel 2007 and 2010
    By rashroyer1066 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:28 PM
  3. excel 2007 formula works great but when open in 2010 returns##
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2013, 09:25 PM
  4. [SOLVED] Excel macro works in 2010 but nothing happens in 2007
    By onbeillp111 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2013, 08:46 AM
  5. [SOLVED] Conditional Formatting Formula Works in 2010; Not 2007
    By Stang70Fastback in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2013, 01:41 AM

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