Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 12 months ago.
Improve this question
This is absurdly simple but I am not getting what I am doing wrong, please help me out.
My formula is very simple:=V40 - SUM(O40:P40,R40:S40)
The values of V40 is 107, O40 is 80, P40 is 0, R40 is 1, S40 is 0
Ideally the result should be 107 - 81 = 26, but no matter what I do the result that comes is 0
Things that I have tried
Changed the format of all the cells to Number format
Tried to use Numbervalue on the formula to get correct value, but no result =NUMBERVALUE(V40)-NUMBERVALUE(SUM(O40:P40,R40:S40))
PFB the cells in question:
PFB result in Evaluate Formaula :
For anyone looking for an answer or facing the same problem. Do the following things to resolve the issue
If your values are a result of other functions check if the formulas for these functions still hold true, if not correct them
try recreating the same formula in different parts of the worksheet/workbook, if the formula works then error is isolated to the cell where you are getting the results
Try with static values in the formula instead of dynamic, if the problem still pertains then issue is with the cell
** Check the format of the cell** Change it to number format
** Check whether the calculations for the sheet/workbook are set to automatic instead of manual**
These steps should help you isolate the problem to a certain degree
Thanks to #Rory & #MayukhBhattacharya for helping me figure out how to sort this issue
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 days ago.
Improve this question
an example of the data set I have is shown below: enter image description here
With this I want to be able to combine rows that have the same (Date, Scope & Category) and have the Val/COArea Crcy column sum together the rows values so I then have one row displaying the Date, Scope, Category, and value.
Hopefully this makes sense... Thanks!
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I'm hoping to find a solution for the following problem. Consider a column of numbers in the following sequence:
{2,2,2,2,4,4,4,4,7,7,7,7,8,8,13,13,13,13,13}
Now I want to check if in this sequence at some time, there is a particular increase in the sequence. So if I'm looking for an increase of 5, I notice that between 8 and 13 the sequence increases by 5.
I have two possible solutions in mind, but I can't seem to find a kind of elegant way of achieving this without VBA.
Solution 1: Get the unique values from the list, taking the difference between the numbers and see if 5 is in it.
Solution 2: Subtract the first value until the (N - 1)th value from the second to Nth value and see if 5 is in it.
I'm also hoping to fit the code in one cell!
Any help would be greatly appreciated.
Assuming you data is in Column A, then the formula
{=OR(($A$2:$A$20001-$A$1:$A$20000)=5)}
will get TRUE if there is a increase of 5 between two cells in $A$1:$A$20000.
This is an array formula. Input it into the cell without the curly brackets and press [Ctrl]+[Shift]+[Enter] to confirm. The curly brackets should then appear automatically.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need a function that returns the closest value to zero from from a range e.g A1 - A10.
I have found solutions for this on other websites however the value that is returned is rounded to no decimal places.
For my purposes I need the closest value to zero that retains up to ten decimal places.
I have tried the formula:
=INDEX(A1:A15,MATCH(SMALL(INDEX(ABS(A1:A15),0,1),COUNTIF(A1:A15,0)+1),INDEX(ABS(A1:A15),0,1),0))
however, If say the closest value is -1.0896 It will return -1 not -1.0896
I have a vba procedure changing the values in the range. so a vba solution that saves the closest value to zero to a variable would work.
When I use your solution from your question it seems to work, it does not round -1.002 to -1, it shows -1.002 if that is the closest to 0. However an alternative:
It isn't very pretty but if you need it to retain the negative value then this should work:
{=IF(MIN(ABS(A1:A25))=MIN(ABS(IF(A1:A25>0,A1:A25,MAX(A1:A25)))),1,-1)*MIN(ABS(A1:A25))}
I think the only time it wouldn't work is if all the numbers were negative, in which case it would return the number as a positive. The only way I can think of to negate this would be:
{=IF(MAX(A1:A25)<=0,-1,IF(MIN(ABS(A1:A25))=MIN(ABS(IF(A1:A25>0,A1:A25,MAX(A1:A25)))),1,-1))*MIN(ABS(A1:A25))}
As I said, not pretty but without VBA I can't think of a better solution; I'd love someone smarter than me to show me a better way...
Note The { curly brackets denote an array formula, you type it without the brackets and hold Shift + Ctrl while hitting Enter to tell Excel it is an array.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
A1 = 317.84, B1 = 422.79.
Cell A1 and B1 performs a SUM on couple of numbers that are calculated through basic math operators and a ROUND function.
Calling the following function in a nearby cell:
=SQRT(A1*A1+B1*B1) constantly yields a 0.
Edit: this actually applies to any function that contains any of those two cells
Now this problem is reproducible but clearly doesn't make any sense.
Some Information That Might Help
Working on Excel 2010
I did add some VBA code but it has nothing to do with the functions
A download link of the file:
http://speedy.sh/QaZ7Z/.xlsm
http://speedy.sh/bfMZM/.xlsx
See cells BY35:BW35
Any ideas what might lead to that?
The reason is that you have circular references in BX68, BW68, BU68, BS68, BR68. Change in each of this cells 68 to 67. Correct formulas:
BX68: =SUM(BX65:BX67)
BW68: =SUM(BW65:BW67)
BU68: =SUM(BU65:BU67)
BS68: =SUM(BS65:BS67)
BR68: =SUM(BR65:BR67)
A guide for finding circular references easly: http://blogs.mccombs.utexas.edu/the-most/2012/06/22/find-circular-references-in-excel/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to find a formula that I can use for any number, and have it output a number identified to correspond to that range.
For instance, I need to be able to input:
A number >2.50 and <7.49, and the formula spit out $0.05
A number >7.50 and <24.49, and the formula spit out $0.10
A number >25.00 and <74.99 and the formula spit out $0.50, and so on/so forth.
If you want to have a set of pre-defined values that you output as you showed in your example then I would use =VLOOKUP() like this:
Using this you can set what your desired output is in the table. Now I cannot tell if there is a pre-defined pattern you are using to determine your outputs, if so a simple math algorithm might make more sense than this.
It is possible to do this in a single formula:
=INDEX({0,0.05,0.1,0.5,10},MATCH(B1,{0,2.5,7.5,25,75},1))
You'll have to jiggle about with the cut-off points as you haven't stated clearly where the between values should fall, and what happens with larger or smaller values.