+ Reply to Thread
Results 1 to 4 of 4

Date Formatting when Formula Includes Text

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Date Formatting when Formula Includes Text

    I need help with a formula that combines text and a date.

    ="For Week Ending "&TODAY()-WEEKDAY(TODAY()-15)

    It should look like:

    For Week Ending 3/8/15

    My problem is that it's converting the date to a numeric value. Instead of 3/8/15 it's returning 42071. And date formatting doesn't change it.

    I'd rather not split this into two cells. Is it possible to force the date formatting?


    Thanks!!

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Date Formatting when Formula Includes Text

    How about:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or without 0 in front if date is one digit:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Date Formatting when Formula Includes Text

    Everything is possible. Like Unicorns. Totally real.

    Option 1:

    ="For Week Ending "&Text(TODAY()-WEEKDAY(TODAY()-15),"mm/dd/yyyy")

    Option 2:

    Select the cell, hit Ctrl+1
    Custom Format
    "For Week Ending "mm/dd/yyyy
    And hit Enter
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Forum Contributor
    Join Date
    02-18-2014
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2013
    Posts
    197

    Re: Date Formatting when Formula Includes Text

    Perfect! Thanks so much

    And...solved

+ 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 formula that functions like WORKDAY but includes weekends
    By 1gambit in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-07-2017, 04:31 PM
  2. [SOLVED] Find & Edit Formatting of text in string that includes line breaks
    By Jennasis in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-07-2014, 11:50 AM
  3. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  4. SUMIFS formula that includes specific text
    By aurisab in forum Excel General
    Replies: 15
    Last Post: 12-16-2012, 08:20 PM
  5. [SOLVED] Counting Cells that includes exact match and also if a cell includes specific text
    By smclachlan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2012, 07:42 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