# How do I round a value in between a sentence

#### darwinl

##### New Member
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"

### 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
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"

#### darwinl

##### New Member
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
You're welcome, thanks for the feedback.

Replies
1
Views
48
Replies
2
Views
34
Replies
6
Views
121
Replies
4
Views
334
Replies
0
Views
88

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.

### Which adblocker are you using?

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

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