Forum Discussion
JQuinn
Jul 23, 2020Copper Contributor
Excel formatting in a mixed cell
Hello, I'm trying to set up a cell to display "on mm/dd/yy", where the date is pulled from another cell via an index and match function. The cell formula is ="on "&INDEX(...)). However, instead o...
mathetes
Jul 23, 2020Silver Contributor
Assuming your date is in cell A1, use this ="on "&TEXT(A1,"m/d/y")
Because what you're doing is creating a text entry, you need to turn the date into a text and format it. The TEXT function takes care of that, and one of the arguments is the way you want it displayed. The same sort of thing would apply if you were dealing, say, with financial numbers and wanted it to be in dollars and cents.
JQuinn
Jul 23, 2020Copper Contributor
Thank you for the offer. However, there's a ton of confidential info in that file, some of which is integral to the that cell. For now, I'll just generate the Index/Match date elsewhere and refer to it in the mixed content cell, using your suggested approach.
Gratefully,
JQuinn