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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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"
 
Upvote 0
Solution
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!
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,933
Members
449,134
Latest member
NickWBA

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