Featured
- Get link
- X
- Other Apps
Using text and numbers together in excel
Using Text And Numbers Together In Excel
Now we'll use the & to join text and numbers, not just text and text
Look at cells C28:D29. See how the date and times are in separate cells? You can join them together with the & symbol like you'll see in cells C32:C33, but that doesn't look right does it? Unfortunately, Excel doesn't know how you want to format the numbers, so it breaks them down to their basest format, which is the Serial date in this case. We need to explicitly tell Excel how to format the number portion of the formula, so it displays the way you want in the resulting text string. You can do that with the TEXT function and a format code.
1. In cell C36, enter =C28&" "&TEXT(D28, "MM/DD/YYYY"). MM/DD/YYYY is the US format code for Month/Day/Year, like 09/25/2017.
2. In cell C37, enter =C29&" "&TEXT(D29, "HH: MM AM/PM"). HH: MM AM/PM is the US format code for Hours: Minutes AM or PM, Iike 1:30 PM.
Comments
Post a Comment