How do I round a value in between a sentence

darwinl

New Member
Joined
Mar 31, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I'm trying to create a calculator in excel and I'm having trouble rounding the value in between my text.

I'm trying to get the number that is next to "Number of shares required to buy 1 stock with dividend payout"

The number I get in that cell gives me a decimal, so I removed the decimals.

The formulas I have for Cost to buy and Predicted Monthly Income from are:

="Cost to buy " & E15 & " shares today"
="Predicted Monthly Income from " & E15 & " Shares"



1617242050453.png
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Use D16:D17 if you want the number Rounded.
Use D19:D20 if you just want the Integer without Rounding:

Cell Formulas
RangeFormula
D16D16="Cost to buy "&ROUND(E15,0)&" shares today"
D17D17="Predicted Monthly Income from "&ROUND(E15,0)&" Shares"
D19D19="Cost to buy "&INT(E15)&" shares today"
D20D20="Predicted Monthly Income from "&INT(E15)&" Shares"
 
Solution

darwinl

New Member
Joined
Mar 31, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi,

Use D16:D17 if you want the number Rounded.
Use D19:D20 if you just want the Integer without Rounding:

Cell Formulas
RangeFormula
D16D16="Cost to buy "&ROUND(E15,0)&" shares today"
D17D17="Predicted Monthly Income from "&ROUND(E15,0)&" Shares"
D19D19="Cost to buy "&INT(E15)&" shares today"
D20D20="Predicted Monthly Income from "&INT(E15)&" Shares"
Thank you so much!
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,129,791
Messages
5,638,329
Members
417,021
Latest member
moon miner

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