+ Reply to Thread
Results 1 to 4 of 4

Cell with Formula Not Showing Date - Only Showing Serial Number

  1. #1
    Registered User
    Join Date
    07-06-2016
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    4

    Cell with Formula Not Showing Date - Only Showing Serial Number

    Hi all,

    I am using Excel 2010. I have a cell with a formula in it, that involves showing a date multiple times, with carriage returns. The formula is below...sorry I know it is ugly, but it is very specific because I am exporting this from Excel, and importing this into another system, so this is how the format must be.

    My problem is that the date will not show up (or export) as a DATE. The serial number shows up instead. Is there a way to change the formula (or change formatting) to have the date show up in the cell?

    Here is the formula below. Spreadsheet is also attached.

    C2 is where I manually enter the date, and this column is formatted as a date.
    B2 is a picklist, which matches another worksheet cell. If there is a match, I am pulling in the date is C2 multiple times with a carriage return.
    E2 is where I want the date showing, not the serial number. This column is formatted as a date as well.

    =IF(B2='816 826-Admit Attend Location'!$B$1,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$2,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$3,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$4,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$5,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$6,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,IF(B2='816 826-Admit Attend Location'!$B$7,C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2&CHAR(10)&C2,"")))))))
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Cell with Formula Not Showing Date - Only Showing Serial Number

    Yeah, that is one ugly formula!

    I didn't download your file.

    If C2 is your date cell enter this formula in another cell, say D2:

    =TEXT(C2,"m/d/yyyy")

    Then, in your big formula replace every reference to C2 with D2.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-06-2016
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Cell with Formula Not Showing Date - Only Showing Serial Number

    Worked great - thank you!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Cell with Formula Not Showing Date - Only Showing Serial Number

    You're welcome. Thanks for the feedback!

+ 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. Date and Time showing in number format..
    By uttam.mothe in forum Excel General
    Replies: 2
    Last Post: 02-17-2015, 04:14 AM
  2. ComboBox date showing as general number
    By mdex in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2014, 03:21 AM
  3. Date showing up as serial numbers
    By TrueTears in forum Excel General
    Replies: 3
    Last Post: 03-05-2013, 08:02 AM
  4. UserForm ComboBox showing Date Serial
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2010, 04:35 PM
  5. Formatting issues number showing as date
    By MyronCope in forum Excel General
    Replies: 1
    Last Post: 08-06-2008, 08:56 PM
  6. Dates showing as serial
    By gitargr8 in forum Excel General
    Replies: 2
    Last Post: 09-15-2006, 12:21 PM
  7. Date in formula showing as number value instead of date
    By LetterMaker in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-03-2005, 12:36 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