+ Reply to Thread
Results 1 to 3 of 3

Change the format in column O depending on other columns format

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Göteborg
    MS-Off Ver
    2010
    Posts
    130

    Change the format in column O depending on other columns format

    I got a datafile with a lot of dates, see attached file. In column O (15) there is a delivery date which is the column of my focus. I would like to change the format on the following range: (Range(Cells(2,15),Cells(LastRow,15)). In my attached file there is "Before" and "After" sheets which is how it is today and how I would like to have it after my code. Every cell in column O can have five different formats;

    1. Red fill and Bold text (example row 2,3,4..)
    2. Green Fill and Bold text (example row 16,24..)
    3. Red Font (example row 10,15,28..)
    4. Green Font (example row 5,11..)
    5. Normal Format (example row 8,21..)

    The format of column O depends on the columns F to N. A bold cell with a date means that this is a actual date. If on the other hand the date isn't bold it means that the date is a scheduled date. If a date is red, than its mean its after schedule, green on the hand means before or on scheduled date. Therefore if the last date in column F to N are bold then its mean that this ID is delivered and the format of the column O should then be bold and red or green fill depending if the last date is on or off schedule (green or red).

    If the last date is not bold (delivered) then the column O should not be bold and instead have a font in red or green depending on the last bold cell status (On or off Schedule - Red or Green).

    This is a bit hard to explain but check the attached file and maybe its easier to follow this explanation.

    Im kinda new to VBA so if anyone would like to help me out I would be very happy.

    /Niclas
    Attached Files Attached Files

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

    Re: Change the format in column O depending on other columns format

    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Göteborg
    MS-Off Ver
    2010
    Posts
    130

    Re: Change the format in column O depending on other columns format

    Thank you very much!!

+ 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] Formula to combine two columns and change third column depending if it's a match
    By james1539 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-07-2016, 07:52 AM
  2. Replies: 3
    Last Post: 02-24-2015, 02:58 AM
  3. Change cell format depending on number
    By nicholas.jacka in forum Excel General
    Replies: 1
    Last Post: 04-16-2014, 03:36 AM
  4. [SOLVED] Change Format of Column to Phone Format
    By basketball2524 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2013, 10:38 AM
  5. Replies: 4
    Last Post: 01-12-2013, 02:42 PM
  6. [SOLVED] Change decimal format of cells depending on conditions?
    By Cornelius in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 09:06 PM
  7. Both columns change when I format only one column (A)
    By Wayne in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-31-2005, 05:06 PM

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