Rounding Format Still Retains True Value
Aug 23, 2006
My industry works with public money and must account for it perfectly. The formulas that are in use with my estimating spreadsheet are creating rounding problems due to formulas carrying out numbers to many decimal places. When I then shorten them to currency they appear to round up but when you multiply these numbers they give incorrect totals due to still being many decimal places. How can this be fixed so that the cells are permanently rounded?
View 5 Replies
ADVERTISEMENT
Oct 22, 2007
I have =(D4-C4)<40 (if the difference is 40 or less then color the font orange) but if the difference is 0 or a negative, I need it to do nothing. I don't know how to do the nothing part. I tried using the IF but couldn't figure out how to make the true format the color
View 5 Replies
View Related
Jan 14, 2009
Let's say I have three cells; A1, B1, C1. A1 = a random number (RandBetween 0 and 100) B1 = If(A1>99,1,0). I want to increment C1 everytime I refresh the randbetween via f9 so that the first time A1 returns a value of over 99, C1 picks up a value of 1 from B1 and then the next time I get a value of A1 over 99, C1 adds the value of 1 from B1 to its existing total, giving a total of 2 etc etc etc.
Essentially, what I want is: If A1>99,C1=C1+1. I can't work out how to get C1 to hold its value when I refresh the sheet. I realise it's probably pretty simple, but it would appear that so am I.
View 2 Replies
View Related
Nov 8, 2008
I am selecting a block of cells to apply numerous "Replace" functions to.
So I use the Selection.Replace command - for example:
Selection.Replace What:="Street", Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False
if I have been working with Excel previously and did my own "Replace" and applied it to the entire Workbook (i.e. changed the within field from ' Sheet' to:
"Within: Workbook"
Then that field stays set to "Workbook" for subsequent Replace activities, including my VBA code !! Therefore if I do not manually go back and run one "Replace" and set the within field back to "Sheet", the VBA code will apply my Replacements to every sehhet and every cell in the entire workbook. Even if I have selected a Range of cells before issuing the command !! It ignores the selected Range and runs the "Selection.Replace" for the entire Workbook.
The "fix" I found on another site is to run a dummy command:
Set dummy = Worksheets(1).Range("A1:A1"). Find("Dummy", LookIn:=xlValues)
Which works. However, I am looking for a way to add a parameter to the "Selection.Replace" command that will cause it to search using the "Within: Sheet" setting. Otherwise I always have to remember to add that dummy line of code for every single Selection.Replace line of code.
View 9 Replies
View Related
Feb 25, 2014
Here is the qtn if two cells A1 and A2 has "ab 1" and "ab 2" the answers for comparing cells should be true as both cells has first 2 letters as alphabets then space followed by numeric..format of cells is same.
View 2 Replies
View Related
Jul 9, 2008
I am trying to round similar to Banker's Rounding or Scientific Rounding but I can't find a consistent formula that works perfect with decimals.
Using three decimal places for all the samples, I can get 0.0785 to round to 0.078 but 0.1785 wants to round to 0.179 instead of staying 0.078. Or 0.0005 will round to 0 but 0.5115 wants to round to 0.511 instead of 0.512.
Here is a list of sample numbers along with desired results:
.0785 should be .078
.5115 should be .512
.5035 should be .504
.0005 should be 0
.0025 should be .002
.0194 should be .019
.0195 should be .02
.0135 should be .014
.0115 should be .012
.8115 should be .812
I cannot find a formula which gives me all of these results. Here is a list of the formulas I have tried so far (NOTE: cell A2 is the working cell in my worksheet where I enter the number to be rounded)
1) =MROUND(A2,0.001)
3) =ROUND(A2,3)
4) =IF(ISERROR(IF(MOD(MID(A2,4,1),2)=1,CEILING(A2,0.001),FLOOR(A2,0.001))),0,IF(MOD(MID(A2,4,1),2)=1,CEILING(A2,0.001),FLOO R(A2,0.001)))
5) =EVEN(A2)
6) =ROUNDUP(A2,3)
7) =ROUNDDOWN(A2,3)
View 9 Replies
View Related
Aug 2, 2009
I have a worksheet where I have around 300 rows, each with 7 columns. What I want to do is add a checkbox to each column. I plan on setting non-applicable checkboxes to mixed status and locking the worksheet. I will unlock applicable checkboxes and sumif or countif their value according to row-based scoring, for example, each checked checkbox represents a value of 3. I do not know VBA and have chose to use the form control checkboxes rather than ActiveX.
I believe that a formula for this would be something like: =SUMIF(B1:B3,True,"3") or =COUNTIF($B$1:$B$3,True)*3
I am wondering firstly if I have that right and secondly if there is a way to stop my checkboxes from displaying labels. Currently, if I click on one it displays True behind the active checkbox. If I uncheck it, it displays False.
View 8 Replies
View Related
Oct 19, 2012
I have a spread sheet with a date colume that reads: 2012-06-27-19 I need to have this read like 06/27/2012 but nothing I do is working I have tried to go to the formatting process and backing the hr:mm out and that doesn't work. I really don't want to go line by line to manually correct this issue.. HENCE ... over 2000 lines
Second question: If I have a column that reads 02/15/2012 and another column that reads 3/27/2012 how to a format a 3rd column to make it read total number of days between 1st date and 2nd date?
View 1 Replies
View Related
Nov 15, 2006
I am trying to Sum lines of info with "True or False" and "Yes and No". I would like to assign 1 to True and Yes and 0 to False and No when I total the rows. Never tried this in Excel, on Lotus and the formula does not work. I can find and replace, but I would like to be able to use a formula.
View 2 Replies
View Related
Sep 7, 2006
I have a report that was created for 2005 that contains two worksheets: a "source data" worksheet and a " pivot table" worksheet. I cleared out the 2005 data in the "source data" worksheet and replaced it with 2006 data...after this I refreshed the Pivot Table and everything seemed fine. When looking at the file size I noticed that it was almost twice its original size....upon further investigation I found that the Pivot Table was internally holding onto the old source data (the "Show" functionality of the rows/columns in the table lists the 2005 row/column headers as well as the 2006 headers....even though no data from 2005 is shown in the Pivot Table).
Does anyone know how to purge the old data from the internal Pivot Table memory?
I hope this is enough information....let me know if you need more.
Thanks in advance for any help,
Jon
View 9 Replies
View Related
Jul 23, 2009
What is the code to round up a range of numbers at certain decimal.
View 14 Replies
View Related
Jan 30, 2008
I have a sheet that i use for doing quotes for sound systems. i have a qty and price column that i input and then a column which gives me the overall total. ie qty 2 x unit amount 160.00 = 320.00 i also have a discount column that i use and a column that gives them the final price after discounts. so i will put 22% into my discount column and get 249.60 as my final price for the 2 items after the discount.
what i am wanting to do is "round up or down to the nearest 5.00 mark. so for instance, the final price in this case would be 250.00 is this possible?
View 9 Replies
View Related
May 23, 2009
I have a worksheet (Sheet1) that gets information from other sheets (1)
So in cell D7 I have the function ='1'!K33
K33 is from the Sheet labeled (1) obviously. Now the problem I am having is if the number 20.6, it automatically rounds up to 21. I need to number to round down to 20 regardless if its 20.1, or 20.9.
Since I already have a formula in D7, how do I still get the information from the other sheet but have the number round down for me. Is it possible?
View 11 Replies
View Related
Jan 7, 2010
Am currently calculating the total number of cartons used for different items with this formula:
=SUM(F99/352)+(H99/135)+(J99/110)+(L99/60)+(N99/28)
The divisors are the number of items in a carton.
Would like to round up each of the 5 subtotals in the above formula to the next full number, so that the total will be the sum of full numbers.
What would be the correct formula?
View 4 Replies
View Related
Apr 21, 2008
Cell "CostPerEvent" has the value .298896, and when I run the following statement I expect that A2 will contain the same value .298896, yet it is entered into the cell as .3
Cells(1, 2).Value = Range("CostPerEvent").Value
Is there some kind of implicit rounding going on? I rewrote the code to:
Cells(1, 2).Value = CDbl(Range("CostPerEvent").Value)
But I am curious whether this behavior is documented...
View 9 Replies
View Related
Jan 16, 2007
I have written a macro which includes a number of calculations. This has resulted in a value with a number of decimal places. I want this value rounded to 1 decimal place and this value written to a cell. How can i round this value correctly.
View 4 Replies
View Related
Jul 16, 2007
How can I make excel display 321.165 as 321.16 when I have the cell format set to number and 2 decimal places instead of rounding it up to 321.17?
View 11 Replies
View Related
Jun 24, 2008
custom number format.
The numbers in the worksheet read like this: 114'31.5
The number behind the hyphen are not to exceed 32, after 32 they become a full point (115'00.0).
View 12 Replies
View Related
Jan 9, 2009
I have been trying for ages to get a formula where any number prefixing .5 automatically rounds up and not down as the excel standard does.
16.4999999 does show with no decimal places as 16.
16.5 does show with no decimal place as 16. But I want it to round up to 17.
and obviously 16.50000001 does indeed round to 17 anyway.
Its purley numbers that have .5 I need to go up and not down.
View 5 Replies
View Related
May 22, 2009
In one cell i have £92.00 to 2 decimal places. If i increase that to 4 decimal places it is £91.9998. I need this £92.00 to show as £91.99 (only as 2 decimal places not 4)but when i go back to 2 decimal places it shows as £92.00 again.
View 2 Replies
View Related
Nov 11, 2009
looking for for some help on a fairly simple problem: i've attached a worksheet, and in column B (Due to Supply Chain) i'd like to insert a formula that will subtract 21 days from the date in column Z (Pub Date), and then round that date to the nearest wednesday. is this possible?
fyi: the dates in column Z are in a yyyy-mm-dd format; they don't have to remain that way.
View 6 Replies
View Related
Oct 25, 2009
I have a section of code that build a single sheet workbook that incudes names and phone numbers to upload in to a web site.
The numbers are in internation format eg 4412345678987
The code works fine but when it saves as a CSV Delimited it round the numbers up so they end up 4412346000000.
View 9 Replies
View Related
Apr 25, 2007
I need a formula showing that if a number is less than say 1.25 then it rounds down to 1.0 and if its between 1.25 and 1.75 then it rounds to 1.5 and then if greater than 1.75 then it rounds up to 2. I need it to work for all numbers not just 1.
View 10 Replies
View Related
Nov 21, 2008
I am trying to write a formula that will round numbers to $.05, $1, $5, and $10. The formula needs to be written in a way that If c75 <100 round to $.05, if c75 is greater than $101 but less than $500, round to $1, if c75 is greater than $501 but less than $1,000, round to $5, and if c75 is greater than $1,001, round to $10.
=IF(C75<100,ROUND(C75*20,0)/20)
but i can't quite figure out how to get the rest of it to work.
View 4 Replies
View Related
Nov 26, 2008
numbers in one column need to be rounded to the nearest half decimal, with next conditions(ill took number 704,00 for example):
- if last two decimals are < 0,25 then my number has to be 704.00
- if last two decimals are >0,25<0,75 then my number has to be 704.50
- and finally if last two decimals are >0,75 then my number has to be 705.00
I tried with IF, CEILING, INT and ROUND functions but i didn't made it work with three options, that i need. I only made it work if i use only two options.
View 5 Replies
View Related
Mar 16, 2009
I have a spreadsheet which has a daily schedule. It goes from 8am to 9pm in 15 minute slots.
I am looking to do a Time Bar. Using Conditional Formatting I was wanting to know if the time now can be rounded up or down in any way
Example, As I write this the time is 15:37 I have this in a cell F4
In row8 Cells C to BC I have the time in 15min slots like 08:00 08:15 08:30 and so on. What I was thinking was could I round the time from 15:37 down to 15:30 so I can use a Conditional Format to trak the time in my schedule?
Or is there an alternate way?
View 6 Replies
View Related
Sep 27, 2007
I have a set of data that is meant to distribute a certain number of items to different groups.
I have 10 groups, some will get more than others depending on previous usage. The problem is that I need the percentages to be in whole numbers and the total percentage needs to be 100%. I tried rounding but it doesn't work. Here is an example from one item's line.
Group#,1,2,3,4,5,6,7,8,9,10
Dist %,.1,0,.04,0,0,0,0,0,.87,0
These are rounded and it comes out to be 101%.
View 9 Replies
View Related
Dec 4, 2012
I have a number 53.30242 in a cell a1. How can I just make it 53.302? I don't want to round it to 3 decimal place, just keep the first 3 digits.
View 6 Replies
View Related
May 30, 2007
I have a sum in my sheet (=U27*0.5).
Now obvously this is the value of U27 x 0.5, this varies depending on the value of U27, however is there a way to round up the sum to the nearest even number. So if the sum produces .75 then I want it to be .76.
View 9 Replies
View Related
Jul 3, 2007
This is what I am attempting to do via a formula in a worksheet (not VBA):
IF the last two digits of H8 are greater than 50 AND if those digits are less than the last two digits of the values contained in H9, H10, H11, H12, H13, H14, H15, and H16 THEN I would like to ROUNDDOWN(H8, 2), ELSE ROUND(H8,2).
What do you think? I've tried using multiple AND's in a conditional statement but to no avail.
View 9 Replies
View Related