Excel calculates wrong - excel-formula

I have a value (B3*40*52) where B3 == $16.09. If I calculate this value manually (16.09*40*52), my answer is $33,467.20. If I use the value B3 in a formula =B3*40*52, my answer is $33,476.35. The cells are formatted to Accounting. What gives?
I've tried using SUMPRODUCT(), ROUND(), SUMPRODUCT(ROUND()), SUM()...etc.
=SUM(B3*40*52), =SUMPRODUCT(B3*40*52), =ROUND(B3*40*52), =SUMPRODUCT(ROUND(B3*40*52))...
I expect $33,467.20, but instead, excel calculates $33,476.35. If the answer was within a few cents, it wouldn't be a big deal, but this is a $9 difference.excel formulas

The value in cell B3 might not be exactly 16.09. If you divide 33476.35 by 40*52 you get 16.094399...
So if you set the cells to accounting with only two digits, Excel will round the display to 16.09. So actually Excel is right because it uses the full precision and your calculation just uses a rounded value.

Related

Modify value according to couple of conditions

I am very new to Excel and no idea if something like that is possible and if I am able to write down what I would like to achieve but let's try. Please be understanding.
I have to write down a concentration of specific reagent in an excel cell but:
if value is smaller than 0.1 such "message" should be left in the cell "<0.1".
if value is smaller than 1 it has to be rounded to two decimal places.
if value is greater or equal to 1 and smaller than 10 it has to be rounded to one decimal place.
if value is greater or equal to 10 such "message" should be left in the cell ">10".
Is smth like that doable in excel ?
You could try:
=IF(A3<0.1,"<0.1",IF(A3<1,ROUND(A3,2),IF(AND(A3>=1,A3<10),ROUND(A3,1),IF(A3>=10,">10"))))
Try this formula, just change the cell reference A3 as needed
=IF(A3<0.1,"<0.1",IF(A3<1,MROUND(A3,0.01),IF(A3<10,MROUND(A3,0.1), ">10")))

Excel not properly comparing dates, despite same cell format

I have two date rows. Both are formatted as dates. When I do a logic test to see whether the two dates, excel is not recognizing them as the same.
Here is a screenshot of the cells:
This is to confirm that both cell rows are formatted as date:
This is to confirm that the equality check row is referencing the right cells:
I'm stumped. Does anyone have any idea what's going on here? Thanks
If you have confirmed that both are actually dates, and not text masquerading as dates, then time is most likely the issue. Note that time is represented via the decimal such that .5 equals noon.
Assuming you just want to know if the dates match independent of time you can use
INT(G4) = INT(G6)
If you want to compare just the dates use:
=Floor(G4,1) = Floor(G6,1)
Format can mask the real cell value. Format both cells as General, then you can see the difference.
If a cell stays a "date" when it is formatted as General, then the cell is most likely text, not a date.
When formatted as General, you can clearly see if the number has any decimals, i.e. time on top of the date.

How can write a formula in an excel 2010 cell that returns an answer based on 3 different conditions?

I am trying to get my invoice to autofill a cell when I pick a category from a combobox and then fill in a number in another cell. If the category is Residential, Duplex or Multi-Family the cost is the value entered into B28xthe value of the constant in F28 and this does work.
If I pick Deck I need it to use the same formula unless the Product is less than 60 in which case it should enter 60 as a minimum which does happen.
It's when I need it to return a value greater than 60 which would mean B28 is >400 that the problem arises. The value won't go over 60.
N41 is kind of a holding cell for the value for Deck. When the combobox is empty the formula returns false which I don't want to show in the cell.
Here is my formula
=IF(I13="Residential",(B28*F28),IF(I13="Duplex",(B28*F28),IF(I13="Multi- Family",(B28*F28),IF(I13="Deck",IF(N41=0,MAX(0),IF(N41<112.5,MAX(60),IF(N41>=60,MIN(N41),"")))))))
Min() and Max() are usually used with two arguments, to deliver the smaller or the bigger of two values respectively. You use it with one parameter only, which will return exactly that number. That does not make any sense.
Also, consider using OR() to bundle the first three IFs into one.
It is not clear what the last part of the formula is meant to achieve.
=IF(OR(I13="Residential",I13="Duplex",I13="Multi- Family"),B28*F28,IF(I13="Deck",IF(N41=0,0,<here is where it gets unclear>))))
Please edit your question and clarify, making sure to post the values and formulas of the contributing cells.

Excel Formula for a task in my studies need help please

I have a task to do in my It studies Where I need to come up with the formula myself and I am completely stuck it says I need one formula only to get these answers basically at the top of the graph it says Cost per Square metre of vinyl is $12.50 then I have to make one formula to get these answers $13,$25,$38,$50,$63,$75,$88,$100,$113 and $125 this is just for the first column it has width of vinyl in metres 1 and length of vinyl in metres 1 and I am suppose to get the answer $13 for that one Please Help
The image follows:
Place the following formula in cell c9:
=C$8*$B9*$L$4
then extend it across the desired range, and ensure all cell formats are rounded to zero decimal places.
The use of the $ "fixing" prefix will ensure, that on extending the formula, it will reference the correct height and width of the vinyl, as well as the correct cost per square meter.
You could also forget about cell formatting if you were to use the formula:
=round(C$8*$B9*$L$4,0)
That may be necessary if the costing rule isn't actually rouding but something like rounding up to the nearest dollar, in which case you could do something like:
=trunc(C$8*$B9*$L$4+0.99)
For example, here's the use of the trunc formula in a real Excel 2013 spreadsheet (albeit without your fancy formatting like borders and currency symbols):

Excel: Subtracting Dates Without Reference Cells

I want to program a cell to calculate the number of days I have left before I meet a deadline.
I would like to do this without reference cells, unlike this tutorial.
An (incorrectly formatted) example of the kind of formula I want would be:=(3/2/2015-TODAY()), where 3/2/2015 is my deadline. This yields some negative serial number,-42051.00, which yields a #NUM! error when put into the DAY formula.
Any idea how to do this without putting TODAY() and 3/2/2015 into their own reference cells? I would like to use functions to keep these paraments completely embedded in the formula.
Right clock the cell with the answer and reformat it as NUMBER. You want to use the Days function not the date function.
=DATE(2015,3,2)-TODAY() is what you want, but I would recommend doing the date in a separate cell for a number of reasons and using "today()" in the formula.
EDIT: Anyone trying to find midpoints would use the date function in this case.
Also, as a general rule for people trying to subtract dates the two trouble shooting methods you want are
A) Check your format-If you want number of dates, it needs to be set as number, if you want a date, you need it to set as date. If you get a long decimal it means you have it formatted as general OR your expression returns a date value rather than a number value. Refer to my original answer.
B) Reverse your dates. Depending on the function and what you want, you may need to move the dates around.
=DATEDIF(DATEVALUE("03/02/2015"), TODAY(), "d")

Resources