+ Reply to Thread
Results 1 to 3 of 3

Change conditional formating with a formulae?

  1. #1
    Registered User
    Join Date
    03-31-2010
    Location
    paris, france
    MS-Off Ver
    Excel 2003
    Posts
    2

    Change conditional formating with a formulae?

    In Cell A I have a Date in 1.1.2010.
    If condition X applies I want to have it on Cell A2 in english format (January 2010), if condition Y applies, I want to have it on french format (Janvier 2010).

    Is it possible to create a formulae that changes the formating?

  2. #2
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Change conditional formating with a formulae?

    Not that I'm aware of, but you can do it with VLOOKUP. Put numbers 1-12 in a column, then Jan-Dec next to it and the French version next to that. Let A1 be the cell that determines which version and it can read "English" or "French". If A2 has your date, and the VLOOKUP table is in D1:F12, B2 can have =VLookup(Month(A2),$D$1:$F$12,IF($A$1="English",2,3),0).

    Alternatively, you can put the months in without the numbers and use =Index($E$1:$F$12,Month(A2),IF($A$1="English",1,2))

  3. #3
    Registered User
    Join Date
    03-31-2010
    Location
    paris, france
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Change conditional formating with a formulae?

    Thank's for your reply.

    Works perfectly.

    joxo

+ 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