Adding number to Text

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,115
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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Canapone

Active Member
Joined
May 10, 2007
Messages
463
Hi,

just made some attempts to check the formula.

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

Hope it helps
 

Oeldere

Well-known Member
Joined
Dec 29, 2011
Messages
2,213
Probably you better of working with formula eomonth (instead of +29) since not all months have the same end date.
 

royUK

Well-known Member
Joined
Jul 24, 2002
Messages
1,606
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")
 

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,115
Office Version
  1. 2021
Platform
  1. Windows
Thanks for the help much appreciated
 

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,115
Office Version
  1. 2021
Platform
  1. Windows
Thanks for the help. The EOMONTh formula is great as I do not have to amend each month
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,485
Messages
5,831,962
Members
430,098
Latest member
bemmelen

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