Need help adding text to a formula

leopardhawk

Active Member
Joined
May 31, 2007
Messages
356
Office Version
2016
Platform
Windows
These two formulas are in adjacent cells (I98 and J98) and I want to combine them into one formula and add a bit of additional text.

This formula is returning "2019 OAS Recovery Tax threshold" without the quotes.
Code:
=YEAR(NOW())&" OAS Recovery Tax threshold"
This formula is returning $77580.00
Code:
=SUM(oas_web!B73)

I want to add the word "The" in front of 2019 and the word "is" after the word "threshold". The combined formula would return this result:

"The 2019 OAS Recovery Tax threshold is $77,580.00."

Appreciate any advice.

Cheers!
 

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,000
Try...

="The " &YEAR(NOW())&" OAS Recovery Tax threshold is "&TEXT(SUM(oas_web!B73),"$#,##0.00")&"."

Hope this helps!
 

leopardhawk

Active Member
Joined
May 31, 2007
Messages
356
Office Version
2016
Platform
Windows
Fabulous! I don't know why I couldn't figure it out myself, kept getting errors. Thank you so much for your help.

Cheers!
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,496
Office Version
2010
Platform
Windows
Try...

="The " &YEAR(NOW())&" OAS Recovery Tax threshold is "&TEXT(SUM(oas_web!B73),"$#,##0.00")&"."
I know you copied what the OP posted, but since the highlighted text is a single cell reference, the surrounding SUM function call in not needed.
 

Forum statistics

Threads
1,081,479
Messages
5,358,928
Members
400,515
Latest member
Finagill

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top