how do i format date with text in a formula?

Dark0Prince

Active Member
Joined
Feb 17, 2016
Messages
433
Below is my formula and I need to format the date to the text I've added. I've tried using OFFSET((PIF_REPORT!$J$4,1,0,1,1),"mm-dd-yyyy") nothing seems to work. The date still loooks like 43060

Rich (BB code):
=IF(ISNUMBER(SEARCH("15250E",(OFFSET(PIF_REPORT!B4,1,0,1,1)))),"test3 Manager",IF(ISNUMBER(SEARCH("15251E",(OFFSET(PIF_REPORT!B4,1,0,1,1)))),"test2 Manager",IF(ISNUMBER(SEARCH("15252E",(OFFSET(PIF_REPORT!B4,1,0,1,1)))),"test1 Manager",OFFSET(PIF_REPORT!$J$4,1,0,1,1) &" is the date i'm looking for")))
 

Some videos you may like

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

macattackpro

Board Regular
Joined
Nov 27, 2017
Messages
55
Try using the TEXT formula:

Code:
=TEXT('your formula here'<your here="" formula="">,"mm/dd/yyyy")

Just put in your formula that brings in the 43060 and make sure the quotes are around "mm/dd/yyyy". If you want it in "mm-dd-yyyy" then use hyphens instead of forward slash.</your>
 
Last edited:

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
55,975
Office Version
  1. 365
Platform
  1. Windows
You want to use TEXT, i.e.
TEXT(value you want to format,"mm-dd-yyyy")
 

Watch MrExcel Video

Forum statistics

Threads
1,123,514
Messages
5,602,093
Members
414,501
Latest member
mdhaumyu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top