If excel does not work

Unnecessary complexity tends to make things harder. 
For starters, you’ve got a pair of parentheses that you don’t need. 
(And, by the way, spaces make things easier to read.)

                                     ↓                        ↓
=IF(F17>0,  (ABS(D17)/100*G16)+G16,  (G16-((ABS(D17)/100)*G16)) )

is equivalent to

=IF(F17>0,  (ABS(D17)/100*G16)+G16,   G16-((ABS(D17)/100)*G16)  )

A trivial rearrangement yields

=IF(F17>0, G16 + (ABS(D17)/100*G16), G16 - ((ABS(D17)/100)*G16) )

and at this point the common terms are jumping off the page. 
The above can be simplified to

=G16 + IF(F17>0, (ABS(D17)/100*G16), -((ABS(D17)/100)*G16) )

and hence to

=G16 + IF(F17>0, 1, -1) * (ABS(D17)/100)*G16

and now another set of parentheses becomes redundant:

=G16 + IF(F17>0,1,-1) * ABS(D17)/100 * G16

And guess what:

=G16 + SIGN(F17) * ABS(D17)/100 * G16

‎Apr 18 2018

09:22 AM

— last edited on

‎Jul 25 2018

11:44 AM

by

TechCommunityAPIAdmin

I have a workbook with 2 worksheets.  I want the IF statement to look at the second worksheet and if a certain number is in the list to return a yes, if not a no.  what I have is:

=IF(‘Direct-Bills-4-16-17’!A:A=B6, «Yes», «No»)

Am I using the wrong function?  It seems to work for 192 rows then just puts no in every cell, even if it should be yes.

Really appreciate any ideas/help anyone can give me.

Thank you,

Connie

View best response

I have some problems with the if function in excel.
I have a set of data I would like to build the average only with some special values. The data is in two columns and the average should be build from column2 if 95if function. If I try a example with simple data, I get this result:

result of if function

As you can see there are values >5 but I get the result 0.

Can anybody help me?

asked Nov 4, 2014 at 7:31

Froop's user avatar

3

You should use the AVERAGE function or the AVERAGEIF function for this

answered Nov 4, 2014 at 7:47

Goos van den Bekerom's user avatar

Not sure where you are trying to calculate the average, but the way you have used your array formulas will reference only the first cell in each array. Perhaps you want something like:-

{=if(max(X15:X38)<5,1,0)}

or

{=if(average(X15:X38)<5,1,0)}

(Replace the commas with semicolons if that is required by your language settings.)

answered Nov 4, 2014 at 7:43

Lord Peter's user avatar

Lord PeterLord Peter

3,4132 gold badges33 silver badges33 bronze badges

For some odd reason, I can not get the =IF function to work in Excel 2010.  I have the full version of Microsoft Excel 2010 installed from Microsoft Office Professional Plus 2010.

I originally used the Starter version and it did not work, so I assumed it was because of the limited functionality.  Now I’ve tried on a fully upgraded version, and I still keep getting function error.

This is the function I used:

In cell A1, I put the value of 1.

In cell B2, I put: =IF(A1=1,»true»,»false») and it told me there was an error.

I then used the function wizard.  In the first textbox I put: A1=1 for the logic_test and it came out as TRUE.

In the second textbox I put true for value_if_true and in the third textbox I put false for value_if_false.  However, in the function wizard screen, it could not tell me which value A1=1 would give.

I confirmed the wizard function and it produced =IF(A1=1 true false) and it still gave me a Function Error!  Even though this function was produced by Excel itself.

I also tried =IF(A1=1 «true» «false»).  I’ve tried it almost every way.  I went on my laptop which has a full version of Microsoft Excel 2007 and tried the exact same function there, and it worked.  The Wizard showed that Excel can determine
if A1=1 is TRUE or FALSE, but for some reason it has an error after that.

  • #1

Cell G5 = Day()-F5
Cell G5 is titled «Days left»
F5 is titled «expires date» -formated 1/1/01
So the outcome to G5 is a integer in days

When I put
=IF(G5>90,»NO»,»YES»)
into H5 which is titled «Send email»
H5 column does not change it just displays my equation.

This is becoming really fursterating!

I opened a new excel and it worked that is why I am not sure why it is not working for this one!

Remove leading & trailing spaces

Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

  • #2

im not exactly sure why this happens but if you change the format of the cell you entered your formula into to «general» and re-enter the formual it will work. (you can also just click on the = sign on the formula bar then click the check mark or hit enter. I believe if you look at the current format it will be text

  • #3

Thanks a lot it works know!
It was that I had it formatted as text instead of general.

  • #4

First, DAY() is not an Excel function! (At least in USA version)You need to use TODAY().
Make sure G5 is formatted as General
If, however, which I assume, your expires date is in the future, I believe your formula should be F5-TODAY()

Your IF formula is correct
HTH
lenze

  • #5

First, DAY() is not an Excel function!

Have they removed it in 2007?.:eek::)

  • #6

Don’t know Norie. Never used 2007

lenze

  • #7

lenze

I’m just joshing.:)

Did you forget about this?

Excel Help said:

DAY

See Also
Returns the day of a date, represented by a serial number. The day is given as an integer ranging from 1 to 31.
For more information about how Microsoft Excel uses serial numbers for dates, see the Remarks section.

  • #8

Yes, Norie, I had a senior moment, The point was, it was the wrong function for what the OP said they were doing and requires an argument.

lenze

  • #9

I was having the problem and struggled and got a little frustrated. Excel is never wrong!

What I did is just re-enter the number in the reference cell and…BANG!!!

Hey…it worked for me..maybe it could help you too.

Fluff

Понравилась статья? Поделить с друзьями:
  • If error vba excel 2007
  • Idioms with word black
  • If error null excel
  • Idioms with word beat
  • If error excel 2010