How do I format a date in a formula result?

lhazou

New Member
Joined
Aug 20, 2002
Messages
11
I'm using the below formula:
=IF(J10="n",(CONCATENATE("id",J21,"_promo",J5,"_front_",L6,".jpg")),"")

In the result, I would like what L6 is to be formatted the same way as L6.

The formula returns:
id49_promoJockeyB2G1Bras_front_38986.jpg
What I would like it to return is:
id49_promoJockeyB2G1Bras_front_200600926.jpg

So how do I put in my formula how I want a number to be formatted?
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Use the TEXT function:

=IF(J10="n",(CONCATENATE("id",J21,"_promo",J5,"_front_",TEXT(L6,"yyyymmdd"),".jpg")),"")
 
Upvote 0
Hello

try

=IF(J10="n",(CONCATENATE("id",J21,"_promo",J5,"_front_",text(L6,"yyyymmdd"),".jpg")),"")
 
Upvote 0

Forum statistics

Threads
1,217,508
Messages
6,137,036
Members
450,041
Latest member
MM2024

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