ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nested If help (https://www.excelbanter.com/excel-worksheet-functions/124700-nested-if-help.html)

JoeA2006

Nested If help
 
I am getting #Name? using this formula

=iif(O455<0,0,(IF(N4550,(P455*M455),0)),((N455*M4 55)-(O455*M455)))
I want to the cell to be 0 if the calculations are negative.
Thanks


Dave F

Nested If help
 
Use IF, not IIF

IIF is for Access; IF is for Excel.

Dave
--
Brevity is the soul of wit.


"JoeA2006" wrote:

I am getting #Name? using this formula

=iif(O455<0,0,(IF(N4550,(P455*M455),0)),((N455*M4 55)-(O455*M455)))
I want to the cell to be 0 if the calculations are negative.
Thanks


Bob Phillips

Nested If help
 
Even with IF the formula still doesn't work as you have

=IF(condition1, action1,IF(condition2, action2_true,action2_false)),more
code)

it should stop before the more code, it will never get there.

What are you trying too do?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Dave F" wrote in message
...
Use IF, not IIF

IIF is for Access; IF is for Excel.

Dave
--
Brevity is the soul of wit.


"JoeA2006" wrote:

I am getting #Name? using this formula

=iif(O455<0,0,(IF(N4550,(P455*M455),0)),((N455*M4 55)-(O455*M455)))
I want to the cell to be 0 if the calculations are negative.
Thanks





All times are GMT +1. The time now is 02:11 AM.

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