Adding number to Text

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,561
Office Version
  1. 2021
Platform
  1. Windows
I have the following text on sheet TB

Trial Balance : 01/09/13 to 31/08/14

I have the following formula on sheet "Notes"


="Balance "&TEXT(MID(TB!A3,17,8),"DD MMM YYYY")+29

The result of the formula is Balance 41548

It should read Balance as at 30 September 2013 as I want to extract the ef of month date from 01/09/2014 (format dd/mm/yyyy)

Your assistance in resolving this is most appreciated
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hi,

just made some attempts to check the formula.

="Balance "&TEXT(MID(TB!A3,17,8)+29,"DD MMM YYYY")

Hope it helps
 
Upvote 0
Probably you better of working with formula eomonth (instead of +29) since not all months have the same end date.
 
Upvote 0
It's much easier to have cell with a master date in somewhere , maybe a hidden sheet then refer to that cell. I would name the cell masterDate and use that in formulas.

As suggested EOMONTH is the best way for a dynamic date .

="Balance at " &TEXT(EOMONTH(MID(TB!A3,17,8),0),"DD MMM YYYY")

Your formula has the number of days in the wrong place

="Balance "&TEXT(MID(TB!A3,17,8)+29,"DD MMM YYYY")
 
Upvote 0
Thanks for the help. The EOMONTh formula is great as I do not have to amend each month
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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