+ Reply to Thread
Results 1 to 13 of 13

IFERROR Function not recognizing Date from Drop down calendar

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    IFERROR Function not recognizing Date from Drop down calendar

    I have a drop down calendar that I want linked to a cell. In this case cell "B1". If I manually put the date in, the formula works, if I link the drop down calendar to the cell it doesn't pull the data over from the log to the report. All it is doing is on the report is looking for the date in Cell "B1" and if the dates in column "D" on the log match, it is pulling it over. Can someone tell me what I need to do? Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: IFERROR Function not recognizing Date from Drop down calendar

    May be from date format between the 2 sheets? try date format in Log sheet follow mm/dd/yyyy
    Quang PT

  3. #3
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Tried this, but it doesn't make a difference at all.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,885

    Re: IFERROR Function not recognizing Date from Drop down calendar

    I never use calendars and array formulas like this, so there may be something I am overlooking. My first test was to put =ISTEXT(B1) into F1, which returned TRUE. I don't really understand what B1 is doing, but it is receiving the date as a text string and not as a real date value (review this if yoiu need a refresher on how Excel stores dates and times: http://www.cpearson.com/Excel/datetime.htm ). Replacing the reference to Report!$B$1 in each of the formulas with DATEVALUE(Report!$B$1) to convert the text date to a real date seemed to resolve the issue (DATEVALUE() help file) https://support.office.com/en-us/art...3-b7471bbff252
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: IFERROR Function not recognizing Date from Drop down calendar

    How does that date picker get on the sheet?
    It's just a dead picture to me, nothing happens when I click on it.

  6. #6
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Is the macro acceptable?
    Teach me Excel VBA

  7. #7
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Jonmo1, the calendar goes to the top left of the sheet for some reason? I have never embedded a calendar into excel before.

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

    Re: IFERROR Function not recognizing Date from Drop down calendar

    What I meant is where did it come from ? How did you put it there ?

  9. #9
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Using the developer tab,design mode,insert, more controls, and then clicking Microsoft Date and Time Picker Control 6.0 (SP6)

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

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Yep, that date picker control is indeed entering the date as a Text String.

    Try adjusting your formulas to do +0 on the date cell.
    Formula in A4, change from
    =IFERROR(INDEX(Log!A$1:A$1000,SMALL(IF(Log!$D$1:$D$1000=Report!$B$1,ROW(Log!$D$1:$D$1000)-MIN(ROW(Log!A$1:A$1000))+1),ROWS($1:1))),"")
    to
    =IFERROR(INDEX(Log!A$1:A$1000,SMALL(IF(Log!$D$1:$D$1000=Report!$B$1+0,ROW(Log!$D$1:$D$1000)-MIN(ROW(Log!A$1:A$1000))+1),ROWS($1:1))),"")

  11. #11
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: IFERROR Function not recognizing Date from Drop down calendar

    Thanks a million Jonmo1. Do you happen to know why every time I save the file an re-open the calendar drop down box is moved to the top left of the screen? If I go back to the developer mode and and click on the calendar and get back out of the design mode it goes back to normal, but process is repeated after every save?

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

    Re: IFERROR Function not recognizing Date from Drop down calendar

    You're welcome.

    No I have no ideas on that.

  13. #13
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: IFERROR Function not recognizing Date from Drop down calendar

    It appears to be a Microsoft Office 2010 and newer issue. I found some code to make a new calendar. Thanks again

+ 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] FAST HELP NEED PLEASE: date should be result of IFERROR function.
    By Berthuib in forum Excel General
    Replies: 6
    Last Post: 04-21-2016, 05:42 AM
  2. How can I Insert a date in a cell from a drop down calendar?
    By Tbledsoe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2006, 11:25 AM
  3. [SOLVED] Choose date from drop-down calendar
    By +alcheme in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-08-2006, 01:05 PM
  4. Replies: 1
    Last Post: 08-03-2006, 09:35 AM
  5. [SOLVED] Can I put a calendar in a drop down list to select a date?
    By goldsie2003 in forum Excel General
    Replies: 1
    Last Post: 01-23-2006, 07:50 AM
  6. A DROP DOWN CALENDAR FOR DATE ENTRY
    By GURU in forum Excel General
    Replies: 1
    Last Post: 09-24-2005, 02:05 PM
  7. [SOLVED] how do I add a calendar function to excel as a drop down?
    By Dennis in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-26-2005, 05:15 PM

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