+ Reply to Thread
Results 1 to 8 of 8

removing a date from a series of data values (and not breaking the code)

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2021
    Posts
    8

    removing a date from a series of data values (and not breaking the code)

    I teach English at a university in South Korea. Its been a while since I studied computers. As part of my preparations for the upcoming semester, I am making an excel spreadsheet:



    https://drive.google.com/file/d/0B-Z...w?pref=2&pli=1



    During this semester, there will be two public holidays (highlighted yellow using conditional formatting). I have calculated my syllabus using a formula based upon when the first day of semester for each class is respectively.



    How can I remove these two days (to basically shift each column 'up') without breaking the code for days following the public holiday?
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: removing a date from a series of data values (and not breaking the code)

    Hi theirlaw,

    Try this:

    In B6 put this formula and pull it down
    =IF(B4+7=$I$40,B4+14,B4+7)

    In G6 put this formula and pull it down
    =IF(G4+7=$I$39,G4+14,G4+7)

    I don't know if you want to add 14 days to those skipped days but see if this is close to what you need.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2021
    Posts
    8

    Re: removing a date from a series of data values (and not breaking the code)

    Thanks for that but it didn't seem to work...

    Let me provide another example:

    If I delete the value in A31 (June 6, Foundation Day), I don't want A32:35 to break. Ideally what would happen is, I can delete June 6 (and May 5), and then anything underneath that will move up by one row, while still displaying the correct dates for that class.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: removing a date from a series of data values (and not breaking the code)

    Hi,

    I thought you'd skip ahead 14 days if you hit one of those vacation dates. I think you are better off to simply do a manual date input for the ranges below those vacation dates. I don't really know what to keep and what to move. I did see the formula breaks when you delete the yellow cells, but I didn't know what you wanted to replace them with. Do you want them to go blank for those dates? If so you could Conditional format the text of those dates to match the background color. I'm still at a loss on what you want.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: removing a date from a series of data values (and not breaking the code)

    Keep it simple: Copy/Paste values and then delete the required dates.

  6. #6
    Registered User
    Join Date
    06-21-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2021
    Posts
    8

    Re: removing a date from a series of data values (and not breaking the code)

    Quote Originally Posted by MarvinP View Post
    Hi,

    I thought you'd skip ahead 14 days if you hit one of those vacation dates. I think you are better off to simply do a manual date input for the ranges below those vacation dates. I don't really know what to keep and what to move. I did see the formula breaks when you delete the yellow cells, but I didn't know what you wanted to replace them with. Do you want them to go blank for those dates? If so you could Conditional format the text of those dates to match the background color. I'm still at a loss on what you want.
    Sorry for confusing you. Yes, I do realise that manual data input would be possible and only take a matter of seconds. However, I thought that there may be a more graceful way to handle this sort of situation.

    Essentially, what will happen is my class in column B (ESC111-08) will have a holiday on June 6th. This means that they will not receive the language instruction for unit 12B, and that on the next available day (June 8th) they will need to be taught this.

    Am I over-complicating things by wanting to automate this?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: removing a date from a series of data values (and not breaking the code)

    In my view: YES - for something that could have been addressed in the time it takes to post to this thread!!!!

    And given the simple formula, it is easy enough to quickly replicate if required.

  8. #8
    Registered User
    Join Date
    06-21-2012
    Location
    New Zealand
    MS-Off Ver
    Excel 2021
    Posts
    8

    Re: removing a date from a series of data values (and not breaking the code)

    Thanks for the help - I've finished the timetable using manual data entry as suggested.

    Just for curiosity's sake... what would it take for the functionality I've described above to be implemented?

    I guess it would need some kind of IF statement, to lookup which dates are public holidays, and then some additional behaviour to handle dates that are matched?

+ 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. Replies: 3
    Last Post: 04-14-2015, 04:21 PM
  2. [SOLVED] Removing breaking space after names in cell
    By shockwavemasta in forum Excel General
    Replies: 17
    Last Post: 06-11-2014, 11:15 AM
  3. [SOLVED] Removing Duplicates - while keeping original data series
    By tomdriscoll in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-01-2014, 08:24 PM
  4. BREAKING down a month series into a daily series, quickly
    By skooby in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-13-2014, 02:09 AM
  5. [SOLVED] Removing non breaking spaces with text values
    By lechefox in forum Excel General
    Replies: 3
    Last Post: 11-25-2013, 09:33 AM
  6. [SOLVED] Removing unmatched data from two time series data sets!
    By ImranEF in forum Excel General
    Replies: 4
    Last Post: 07-26-2013, 11:13 PM
  7. Looking up a series of values over a date range?
    By Kitsan in forum Excel General
    Replies: 6
    Last Post: 10-10-2012, 08:17 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