excel help - text formula with date

Mallesh23

Well-known Member
Joined
Feb 4, 2009
Messages
976
Office Version
  1. 2010
Platform
  1. Windows
Hi Team,

I am looking for text formula with Date, want to convert date as per my requirement.

Book3
CDEFG
3Print Today DateTodays datePrevious dayPrevious MonthPrevious Quarters
4
5Expected09-Jun08-Jun08-May
Sheet1



Thanks
Mallesh Gangadhar
Mob - 8208459313
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
In D5: =TODAY()
in E5: =TODAY()-1
in F5: =EDATE(TODAY(),-1)
(if using a European version, it may need to be):
=EDATE(TODAY();-1)

And then just apply the Custom format to those cells of dd-mmm
 
Upvote 0
Hi Joe,

thanks it worked !

How to use text with date and format the date, as I was getting error.

Below not working
=TEXT(date(),"dd-MMM")




Thanks
mg
 
Upvote 0
date() is not valid. If you use the DATE function in Excel, it requires three arguments and you need to provide the month, day, and year values.
You use TODAY() to get the current date, i.e.
VBA Code:
=TEXT(TODAY(),"dd-MMM")
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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
Back
Top