+ Reply to Thread
Results 1 to 3 of 3

Problem with formula for a gantt chart

  1. #1
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Problem with formula for a gantt chart

    Evening all. I have created gantt chart in excel and it it working fine for what i need it for, but there is one formula i am struggling with. it is to generate the number of cells to highlight for my conditional formatting.

    19-03-2019 20-14-45.png

    Cells Columns F and G work out the cells to highlight. So F5 the amout of cells before start highlight and G5 the cell to finish highlighting.

    You can see the formula in the bar that works. But i have to type the highlighted date in for it to work. is there anyway i can use a formula that will give me the same result but instead of me typing the highlighted date in everytime, will populate from Cell C5.

    =ROUND((C5-DATE(2019,3,16))*24+1,0) This is the formula in the C column
    =ROUND((D5-DATE(2019,3,16))*24,0) This is the formula in the D column

    in red are the parts i hve to change manually to represent what is in the C or D column

    Thanks

    BS

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Problem with formula for a gantt chart

    Please try
    =MOD(C5,1)*24+1

    =(D5-INT(C5))*24

  3. #3
    Registered User
    Join Date
    03-19-2019
    Location
    Cumbria
    MS-Off Ver
    Office 365
    Posts
    10

    Thumbs up Re: Problem with formula for a gantt chart

    Excellent. Thank you

+ 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] Have the ability to view a daily Gantt chart as a monthly gantt chart
    By adam_d_john in forum Excel General
    Replies: 3
    Last Post: 03-13-2018, 09:11 PM
  2. [SOLVED] Gantt Chart Formula Problem
    By adam_d_john in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2017, 08:14 PM
  3. Formatting problem - text okay, numbers invisible on Gantt chart
    By Ian99099 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2016, 08:03 AM
  4. Replies: 0
    Last Post: 07-13-2012, 06:40 PM
  5. Gantt Chart problem - using time
    By jlink3 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-05-2012, 02:19 AM
  6. gantt chart problem
    By joe316 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-13-2007, 05:56 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