ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Fundamental problem with IF statement (https://www.excelbanter.com/excel-worksheet-functions/25951-fundamental-problem-if-statement.html)

David F

Fundamental problem with IF statement
 
I have the following statement in cell E38:
IF(C380,ROUND(H38/C38,1),0)
E38's format is 'General'.
The E38 shows the formulas instead of the calculated values (value_if_true
and value_if_false), regardless of whether C38 contains 0, 1 or left blank.
Under any of those C38 values, E38 is stubborn whether I have the '=' before
the ROUND or not and whether I specify the value_if_false (0) or not. H38
also contains a legitimate value.

In the life of me, I could not figure out why this IF statement does not
work.

Any idea?

Thanks,
David



JE McGimpsey

You had two people answer you yesterday. If those answers didn't help,
mention why in your post rather than simply reposting.

If you can't find your post, you can always look it up in the archives:

http://groups.google.com/advanced_gr...ugroup=*excel*

Use your name or email address in the Author field.

Just one other question - do you have an "=" sign at the beginning of
your formula?


In article ,
"David F" wrote:

I have the following statement in cell E38:
IF(C380,ROUND(H38/C38,1),0)
E38's format is 'General'.
The E38 shows the formulas instead of the calculated values (value_if_true
and value_if_false), regardless of whether C38 contains 0, 1 or left blank.
Under any of those C38 values, E38 is stubborn whether I have the '=' before
the ROUND or not and whether I specify the value_if_false (0) or not. H38
also contains a legitimate value.

In the life of me, I could not figure out why this IF statement does not
work.

Any idea?

Thanks,
David


Duke Carey

Sounds like E38 is formatted as Text. Select E38, press Ctrl-1, and choose
General from the number tab.

"David F" wrote:

I have the following statement in cell E38:
IF(C380,ROUND(H38/C38,1),0)
E38's format is 'General'.
The E38 shows the formulas instead of the calculated values (value_if_true
and value_if_false), regardless of whether C38 contains 0, 1 or left blank.
Under any of those C38 values, E38 is stubborn whether I have the '=' before
the ROUND or not and whether I specify the value_if_false (0) or not. H38
also contains a legitimate value.

In the life of me, I could not figure out why this IF statement does not
work.

Any idea?

Thanks,
David




Safu

Sound like you left "=" infront of your formula which will show you the
incomplete formula instead of doing your calculation.

"David F" wrote:

I have the following statement in cell E38:
IF(C380,ROUND(H38/C38,1),0)
E38's format is 'General'.
The E38 shows the formulas instead of the calculated values (value_if_true
and value_if_false), regardless of whether C38 contains 0, 1 or left blank.
Under any of those C38 values, E38 is stubborn whether I have the '=' before
the ROUND or not and whether I specify the value_if_false (0) or not. H38
also contains a legitimate value.

In the life of me, I could not figure out why this IF statement does not
work.

Any idea?

Thanks,
David





All times are GMT +1. The time now is 05:30 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com