#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested Sub-Totals in Excel NC Yoko Excel Discussion (Misc queries) 5 October 4th 06 10:44 PM
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
Nested Subtotals in Excel 2002 KG Excel Discussion (Misc queries) 2 September 10th 05 11:51 AM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 04:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"