Header concatenation

bknight
BronzeLounger
Posts: 1416
Joined: 08 Jul 2016, 18:53

Header concatenation

Post by bknight »

I desire a header concatenation that would look like this
Text & Month/Year(current date.
I tried various combinations
="Weighted S & P " & format(@date()"mm,yy"
="Weighted S & P " & format(NOW()"mm,yy")
This was an attempt to add the date then i would struggle to format it Month/Year.
Both failed.

bknight
BronzeLounger
Posts: 1416
Joined: 08 Jul 2016, 18:53

Re: Header concatenation

Post by bknight »

Close but no winner yet.
="Weighted S & P " & formatdate(NOW();mm/yy)

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Header concatenation

Post by HansV »

Do you want to do this in VBA, or interactively?
Best wishes,
Hans

YasserKhalil
PlatinumLounger
Posts: 4931
Joined: 31 Aug 2016, 09:02

Re: Header concatenation

Post by YasserKhalil »

If you are using formulas try

Code: Select all

="Weighted S & P " & TEXT(NOW(),"mm/yy")

bknight
BronzeLounger
Posts: 1416
Joined: 08 Jul 2016, 18:53

Re: Header concatenation

Post by bknight »

Thanks