+ Reply to Thread
Results 1 to 4 of 4

Excel 2010 - If statement to pull through Start and End Dates of a Project

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Lincolnshire, UK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Excel 2010 - If statement to pull through Start and End Dates of a Project

    I have a workbook that contains multiple sheets. The first sheet contains start and end dates of a project. On the 2nd sheet I have columns Jan to Dec. I need to create a formula that looks at both the start and end date in Sheet 1, and then puts the corresponding date into the correct month column in Sheet 2. ie. If the start date was 24/02/12 it would put that date in the Feb column. If the End date was 15/03/12 that date would then pull through to the March column in sheet 2.

    I am then hoping to set up a conditional format that places a green dot on the start date, and a red one for the end date so at a glance I can see my project anticipated start and end.

    Any help you can give wold be much appreciated.

    I have had a go at the start bit, but cannot get my head around how to do both Start and End.

    I have attached a dummy sheet which should help.....

    Many thanks

    test.xlsx
    Last edited by NBVC; 02-24-2012 at 01:50 PM.

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

    Re: Excel 2010 - If statement to pull through Start and End Dates of a Project

    See attached.

    First I named the Projects Summary sheet, column C:L as Projects mostly because when using conditional formatting, you can't refer to a range on another sheet directly, but can if you name the range....

    So formula in E8 of Project Scheduling sheet is:

    Please Login or Register  to view this content.
    copied down and across the table.

    Then select the E8 to P510 (or whatever the bottom is) and go to Home|Conditional Formatting|New Rule.

    Select use a formula to determine which cells to format and enter formula:

    Please Login or Register  to view this content.
    click Format and choose green from the Fill tab.

    Click OK... then click New Rule and repeat with formula:

    Please Login or Register  to view this content.
    and pick Red.
    Attached Files Attached Files
    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
    01-10-2012
    Location
    Lincolnshire, UK
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Excel 2010 - If statement to pull through Start and End Dates of a Project

    Great Stuff ! That's just what I needed. Only prob i've got is if the start and end date fall in the same month I obviously can't have green and red in the same cell.

    Thanks for your repy!

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

    Re: Excel 2010 - If statement to pull through Start and End Dates of a Project

    You can use another colour to indicate equality... with formula:

    =AND(MONTH(VLOOKUP($C8,Projects,9,0)),MONTH(VLOOKUP($C8,Projects,10,0)))=MONTH(E$6)

    make sure to set this at the top of the conditional list and check stop if True

+ 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