+ Reply to Thread
Results 1 to 7 of 7

Formula for auto updating calendar

  1. #1
    Registered User
    Join Date
    07-20-2017
    Location
    milwaukee, wisconsin
    MS-Off Ver
    2010
    Posts
    11

    Post Formula for auto updating calendar

    So I am creating a spreadsheet that has automatically updating calendars for testing schedule. I've gotten pretty far with it but now after thinking about it want to go one step further. I used this formula to simply populate the planned testing date into its proper location on the calendar and it worked beautifully.

    {=IFERROR(INDEX('Calendar Data'!$C$9:$C$301,SMALL(IF($A$5='Calendar Data'!$A$9:$A$301,ROW('Calendar Data'!$A$9:$A$301)-MIN(ROW('Calendar Data'!$A$9:$A$301))+1,""),ROW(A1)))," ")}

    Now I want to have it so that if its only planned it will populate under the proper date, but if theres an actual test date entered, that it will "move" to the day it actually went through testing. This is the formula I have so far but its not working properly.

    {=IFERROR(IF(ISNUMBER(SEARCH("TBD",'Calendar Data'!$B$9:$B$301)),INDEX('Calendar Data'!$C$9:$C$301,SMALL(IF($B$93='Calendar Data'!$A$9:$A$301,ROW('Calendar Data'!$A$9:$A$301)-MIN(ROW('Calendar Data'!$A$9:$A$301))+1,""),ROW(B1))),INDEX('Calendar Data'!$D$9:$D$301,SMALL(IF($B$93='Calendar Data'!$B$9:$B$301,ROW('Calendar Data'!$B$9:$B$301)-MIN(ROW('Calendar Data'!$B$9:$B$301))+1,""),ROW(B1)))),"")}

    I've attatched the file that I am working with. Testing the formulas on the Janurary tab, the 29th -31st because i have four tests from the calendar data tab that have all the same dates, except one ive changed the actual to TBD so I can see if the formula is working the way I want it to. The first test should show up in the 29th due to the TBD and the other three should show up in the 31st due to having actual test dates entered.

    Thanks!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Formula for auto updating calendar

    In cell B95, array enter (enter using Ctrl-Shift-Enter) the formula

    =IFERROR(INDEX('Calendar Data'!$C:$C,SMALL(IF('Calendar Data'!$B$9:$B$300="TBD",IF('Calendar Data'!$A$9:$A$300=B$93,ROW($B$9:$B$300))),ROW(A1))),IFERROR(INDEX('Calendar Data'!$D:$D,SMALL(IF('Calendar Data'!$B$9:$B$300=B$93,ROW($B$9:$B$300)),ROW(A1)-COUNTIFS('Calendar Data'!$B$9:$B$300,"TBD",'Calendar Data'!$A$9:$A$300,B$93))),""))

    and copy down, then across.

    Note that when you copy to other blocks of dates, you will need to change the $93 to the row with the date for that block before you copy the formula down and across.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-20-2017
    Location
    milwaukee, wisconsin
    MS-Off Ver
    2010
    Posts
    11

    Re: Formula for auto updating calendar

    You are a god thank you so much

  4. #4
    Registered User
    Join Date
    07-20-2017
    Location
    milwaukee, wisconsin
    MS-Off Ver
    2010
    Posts
    11

    Re: Formula for auto updating calendar

    Quote Originally Posted by Bernie Deitrick View Post
    In cell B95, array enter (enter using Ctrl-Shift-Enter) the formula

    =IFERROR(INDEX('Calendar Data'!$C:$C,SMALL(IF('Calendar Data'!$B$9:$B$300="TBD",IF('Calendar Data'!$A$9:$A$300=B$93,ROW($B$9:$B$300))),ROW(A1))),IFERROR(INDEX('Calendar Data'!$D:$D,SMALL(IF('Calendar Data'!$B$9:$B$300=B$93,ROW($B$9:$B$300)),ROW(A1)-COUNTIFS('Calendar Data'!$B$9:$B$300,"TBD",'Calendar Data'!$A$9:$A$300,B$93))),""))

    and copy down, then across.

    Note that when you copy to other blocks of dates, you will need to change the $93 to the row with the date for that block before you copy the formula down and across.
    Now is there anyway to carry over the red formatting for the TBD dates to the calendar?

  5. #5
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Formula for auto updating calendar

    If your entries in column C of Calendar Data are unique, you could use CF with the formula option and the formula

    =NOT(ISERROR(MATCH(B95,'Calendar Data'!$C:$C,False)))

    Depending on your version of Excel, you may need to name the range in 'Calendar Data'!$C:$C to make that CF formula work (I forget if and when using ranges off-sheet in CF was changed...)

  6. #6
    Registered User
    Join Date
    07-20-2017
    Location
    milwaukee, wisconsin
    MS-Off Ver
    2010
    Posts
    11

    Re: Formula for auto updating calendar

    Quote Originally Posted by Bernie Deitrick View Post
    If your entries in column C of Calendar Data are unique, you could use CF with the formula option and the formula

    =NOT(ISERROR(MATCH(B95,'Calendar Data'!$C:$C,False)))

    Depending on your version of Excel, you may need to name the range in 'Calendar Data'!$C:$C to make that CF formula work (I forget if and when using ranges off-sheet in CF was changed...)
    You are seriously amazing. Thank you sooooooo much

  7. #7
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Formula for auto updating calendar

    Quote Originally Posted by jriemann View Post
    You are seriously amazing. Thank you sooooooo much
    Stop - you're making me blush

+ 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. Formula to auto populate Calendar
    By kh2733 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-05-2017, 10:33 AM
  2. [SOLVED] Excel Auto Updating Calendar in Monthly view
    By Ayemzie in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-08-2017, 12:40 AM
  3. Auto-Updating Calendar for Plant Growth
    By vhdblood in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-12-2014, 05:10 PM
  4. [SOLVED] Formula not auto-updating
    By jmacavali in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-17-2013, 09:13 AM
  5. Auto Updating Calendar
    By briangutan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-09-2012, 07:16 AM
  6. Formula not auto updating
    By vgill in forum Excel General
    Replies: 2
    Last Post: 08-25-2011, 04:52 PM
  7. Auto Updating Formula
    By Anders Salbu in forum Excel General
    Replies: 4
    Last Post: 03-09-2006, 03:09 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