Concatenating Complex String

jski21

Board Regular
Joined
Jan 2, 2019
Messages
133
Office Version
  1. 2016
Platform
  1. Windows
Good day Mr. Excel Team,

I think I've been staring at this a wee bit too long:

=IF(AND(E27>=0,E27<=0.25),"Monthly spend to reach "&TEXT(ChartData!C13,"0%"& "("&((DATEDIF($A$2,ChartData!B14,"M")&" mnths)"),"-")

Basically trying to string together text that has a percentage in it, along with a month time frame that is calculated on the difference between two dates. If the number (E27) is between two values, the string appears, if it is not, the cell will only show a dash.

Red-eyed and bleary and stumped. Any solution would be appreciated. Thanks.


jski21
 

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.
How about
Excel Formula:
=IF(AND(E27>=0,E27<=0.25),"Monthly spend to reach "&TEXT(ChartData!C13,"0%")& " ("&DATEDIF($A$2,ChartData!B14,"M")&" mnths)","-")
 
Upvote 0
Solution
Parentheses and commas...gotta love 'em. Thanks Fluff!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,748
Members
448,989
Latest member
mariah3

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