+ Reply to Thread
Results 1 to 7 of 7

Holiday / Vacation calendar #value errors

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    18

    Holiday / Vacation calendar #value errors

    Hello,

    I had some help on here before, but for some reason every time I open up this file, I am getting #VALUE! errors on some cells and not others, and the Calendar tab is not pulling over the data for me.

    The #VALUE! errors are happening on the 1st tab labeled "Season 1" and also on the "2012" tab on certain cells only, not sure why it works on some and not others.

    My main area that I would like to work and be fixed would be for the "Calendar" tab to work properly. I am using Excel 2010 if that makes a difference. I have labeled on the "Calendar" tab on what I would like to happen. If anyone can help out, I much appreciate it!

    Thank you so much!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-05-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Holiday / Vacation calendar #value errors

    Just to add to this, I have opened the file and it appeared to work, but the minute I selected "Enable Editing" it all disappeared. So the code appears to be working, but when I select Enable Editing everything vanishes.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Holiday / Vacation calendar #value errors

    It's working only on the ambiguouse dates (both month/day are <13).
    It's failing on the dates that have a day of 13 or more.

    we first need to determine what you believe those dates to be..

    Take the value in C4 on the 2012 tab
    07/05/2012 - 07/05/2012

    Does 07/05 represent May 7th or July 5th ??

    It looks like you're putting the MONTH part of the original string into the DAY part of the DATEVALUE String
    And vice versa
    Depending on which regional settings you have on your computer.

    If you format a cell as General, then type 05/07/2013 and press enter.
    Then format the cell as mmm dd
    what does it show? May 07 or Jun 05 ?
    Last edited by Jonmo1; 06-03-2013 at 04:28 PM.

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Holiday / Vacation calendar #value errors

    Jonmo1, the 07/05/2012 - 07/05/2012 are copied over from a scheduling software. That would represent July 5th, 2012.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Holiday / Vacation calendar #value errors

    Well your formula was trying to convert
    07/05/2012 to May 7th, not July 5th.

    Therein was the problem when it got to say 05/21/2012.. There is no 21st month.


    Also, it looks like you're making your task WAY more difficult than it needs to be.
    Unless your sample is not consistent with your actual data..

    Your strings in column C appear to be VERY consistent in lenth..
    ALWAYS in the format of
    mm/dd/yyyy - mm/dd/yyyy

    If this is true, it is far simpler...
    Try
    G4: =DATE(MID(C4,7,4),LEFT(C4,2),MID(C4,4,2))
    H4: =DATE(RIGHT(C4,4),MID(C4,14,2),MID(C4,17,2))

  6. #6
    Registered User
    Join Date
    02-05-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Holiday / Vacation calendar #value errors

    That fixed it! Thank you so much!

    **See below... added another problem
    Last edited by boxermack; 06-03-2013 at 04:55 PM.

  7. #7
    Registered User
    Join Date
    02-05-2013
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Holiday / Vacation calendar #value errors

    Disregard ... editing, all works now thanks
    Attached Files Attached Files
    Last edited by boxermack; 06-04-2013 at 02:23 PM.

+ 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