+ Reply to Thread
Results 1 to 9 of 9

Dates & Values

  1. #1
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Dates & Values

    In column I, I have a list of dates and comments regarding a shipping schedule. I have a formula that calculates my dates but if there is a comment I want the value of just the comments in column J. I've attached an example of what I'm working with and what I want.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Dates & Values

    why is J2 31-7-2017?
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Dates & Values

    Quote Originally Posted by oeldere View Post
    why is J2 31-7-2017?
    In my post I stated that "I have a formula that calculates my dates but ..."

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

    Re: Dates & Values

    That doesn't actually answer the question..

    How does J2 become 7/31/2017. because that value doesn't exist in I2

  5. #5
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Dates & Values

    Quote Originally Posted by jonmo1 View Post
    that doesn't actually answer the question..

    How does j2 become 7/31/2017. Because that value doesn't exist in i2
    =iferror(if($j2="vsl",edate($k2+7,1),$k2+7)

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Dates & Values

    Please Login or Register  to view this content.
    Ben Van Johnson

  7. #7
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Dates & Values

    Quote Originally Posted by protonLeah View Post
    Please Login or Register  to view this content.
    Thanks this works... Question though. What does "D4" represent in this formula?

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Dates & Values

    The CELL() function returns information about a cell. In this case, it is looking at I2, and it returns "D4" because the data in I2 is:
    m/d/yy or m/d/yy h:mm or mm/dd/yy , a standard date.

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

    Re: Dates & Values

    That's not quite correct.
    It returns D4 because the cell is 'formatted' as a date. The data in the cell can be anything.
    I can write "Hello, My name is Jon" in I2, and the Cell function would still return "D4"
    Then the I2+7 would be a #Value! error.

    Although it is a clever formula.
    Verifying if a cell contains an actual date is next to impossible with Excel Formula.

    But that Cell function takes us one step closer.
    Before we could do =ISNUMBER(I2)
    But that only verifies it's numeric, and dates are numeric. But isnumber is true for ANY number, not necessarily the numeric value of a date.

    The combination of Isnumber with that Cell function in an And is probably as close as we can get.
    AND(ISNUMBER(I2),CELL("format",I2))

+ 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: 7
    Last Post: 08-30-2016, 12:48 PM
  2. [SOLVED] Skipping dates have blank values and plot remaining dates.
    By Sekars in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-31-2016, 11:15 AM
  3. Adding values between dates and Dates are derived from formula
    By jenita.kurlawala in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-09-2013, 04:03 AM
  4. Replies: 2
    Last Post: 10-21-2013, 07:55 PM
  5. Replies: 7
    Last Post: 05-02-2013, 09:50 PM
  6. [SOLVED] Request a Macro to Convert data into Dates (Multiple Dates Values separated by Line)
    By seenai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 02:28 AM
  7. [SOLVED] Averaging values if desired dates fall between range of dates
    By gbcpurdue in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2012, 02:51 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