Add Formula to Same Cell as Hard Typed Number.

Roj47

Board Regular
Joined
May 4, 2011
Messages
68
Office Version
  1. 365
Platform
  1. Windows
Hi all,

A sheet I receive each month has a long list of data of which I manually change the Price to the nearest 0.25 via MROUND.

Normally I copy all numbers into column D (Workings) and adjust price one-by-one to include the formula MROUND(D6,0.25) and paste back as a value but is there a way to select the relevant cells under QTY and just apply the formula to the value to gain the result quickly?

One thing that is important though is the value needs to return in multiples of 0.25 as the data is used in a calculation afterwards for stock.

Much appreciated - I have included what I have tried below the capture to resolve this.

BookItemQtyWorkings
Book 1Pages
300​
Book 1Price
5.57​
5.50
Book 1GenreFiction
Book 1GenreScience
Book 2Price
9.99​
9.99
Book 2GenreFiction
Book 3Price
1.97​
1.97
Book 4Price
2.24​
2.24

1. Insert function in the Home ribbon.
2. Find replace the last number 10 times (e.g. find 5 replace with 5, 0.25) and the equivalent at the start but I ended up making errors and it was still slow.
3. Copying all of the QTY into Workings, applying the MROUND formula to the price rows and then copy the column back into QTY, this seems too slow and a problem that shouldn't exist (?).
4. Using VBA is a no-no from my management which may be the deal breaker.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about
Fluff.xlsm
ABCD
1BookItemQtyWorkings
2Book 1Pages300300.00
3Book 1Price5.575.50
4Book 1GenreFictionFiction
5Book 1GenreScienceScience
6Book 2Price9.9910.00
7Book 2GenreFictionFiction
8Book 3Price1.972.00
9Book 4Price2.242.25
Sheet5
Cell Formulas
RangeFormula
D2:D9D2=IF(ISNUMBER(C2),MROUND(C2,0.25),C2)
 
Upvote 0
How about
Fluff.xlsm
ABCD
1BookItemQtyWorkings
2Book 1Pages300300.00
3Book 1Price5.575.50
4Book 1GenreFictionFiction
5Book 1GenreScienceScience
6Book 2Price9.9910.00
7Book 2GenreFictionFiction
8Book 3Price1.972.00
9Book 4Price2.242.25
Sheet5
Cell Formulas
RangeFormula
D2:D9D2=IF(ISNUMBER(C2),MROUND(C2,0.25),C2)

Thank you, it works but there's sensitive information I wasn't able to include in my capture which is affected which you could never have known. The thinking out of the box is why I come here and read other threads for ideas to help on other aspects.

I would guess that selecting cells and a quick fix to wrap a cell round the value is not a feature that can be adopted.

Really appreciate the input.
 
Upvote 0
You can only change the values in col C manually, or with VBA.
 
Upvote 0
Solution
You can only change the values in col C manually, or with VBA.

Thank you - I have used your formula above combined with another from this board and a bit messy, but functions better than I had previously.

Appreciate the nudge (shove :) ) to get me working better, thanks again.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,217,388
Messages
6,136,298
Members
450,002
Latest member
bybynhoc

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