+ Reply to Thread
Results 1 to 6 of 6

Problem getting date-value to combined text-cell

  1. #1
    Registered User
    Join Date
    09-12-2019
    Location
    Stockholm
    MS-Off Ver
    365
    Posts
    3

    Problem getting date-value to combined text-cell

    Hi,

    First time posting here, lets see if anyone can help me I tried to add the excel but can't attach it for some reason?

    As you can see in the picture, the idea is that A2 should contain an order date, B2 tells whether it is an order, if it is an order then it should result in the order date together with text appearing in C2.

    But the problem is that I get the date value while the idea is that the text in C2 should be kind to copy into another program to easily inform which date the order is placed.

    In the real example, it is important that the date field is just a date, so it is not an option to make it a text field.

    In the real example, there is even more text to enter, not just the date. But for the sake of simplicity, I stripped down the excel to the exact problem.

    In short: I want to combine a text with date in a cell while retaining the date format; YYYY-MM-DD.

    The formula used today is:
    =
    IF(
    B3 = "Order";
    "Order Date:"&(A3);
    "No order"
    )

    orderdate.JPG

    Thanks for the help

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Problem getting date-value to combined text-cell

    change A3 to text(a3,"yyyy-mm-dd")
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    09-12-2019
    Location
    Stockholm
    MS-Off Ver
    365
    Posts
    3

    Re: Problem getting date-value to combined text-cell

    Thanks for the response. Though this will give me another problems as I need A3 to be a DATE cell for PIVOT and other stuff.

    EDIT: Oh, you ment change it in the "Response"-cell. I will try that.

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Problem getting date-value to combined text-cell

    Replace A3 in your formula. The dates are stored as numbers in excel, meaning that you will use that formula to convert it to text.

  5. #5
    Registered User
    Join Date
    09-12-2019
    Location
    Stockholm
    MS-Off Ver
    365
    Posts
    3

    Re: Problem getting date-value to combined text-cell

    It worked :D That was way to easy, thanks for the help!

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Problem getting date-value to combined text-cell

    No worries, glad to help. If that took care of your problem, please mark the thread as Solved, from Thread Tools.

+ 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] Cell constancy when transferring combined date/text from one sheet to another
    By Grasshopper Green in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2018, 03:38 PM
  2. Fraction is read as decimal when text is combined in new cell
    By robclark63 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2017, 11:24 PM
  3. [SOLVED] Combined text and date
    By nagesh.tvsr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2015, 02:17 AM
  4. Convert Date To Text To Be Combined With Other Texts
    By katsuya in forum Excel General
    Replies: 2
    Last Post: 07-22-2011, 11:40 PM
  5. [SOLVED] text and number combined in a cell
    By TimN in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-11-2006, 06:05 PM
  6. [SOLVED] How can I remove diff. numbers from a cell combined with text
    By Greg in forum Excel General
    Replies: 5
    Last Post: 02-28-2006, 04:10 PM
  7. Counting based on combined text and date criteria
    By SPUT in forum Tips and Tutorials
    Replies: 8
    Last Post: 10-17-2005, 06:33 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