Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Vik Vik is offline
external usenet poster
 
Posts: 3
Default if then else if nested functions in excel

I need code to give the following result: (I've tried and failed, tho I think
I'm close)
if A=0 then " "
else if B="Y" then (H8-(H8*O8))
else if B="N" then H8

here's what I have now:
=IF(H8=0," ",(IF D8="Y",(H8-(H8*O8)),(IF D8="N",H8)))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default if then else if nested functions in excel

Hi,

Maybe this

=IF(H8=0,"",IF(D8="y",H8-(H8*O8),IF(D8="n",H8,"Unspecified")))

Mike

"vik" wrote:

I need code to give the following result: (I've tried and failed, tho I think
I'm close)
if A=0 then " "
else if B="Y" then (H8-(H8*O8))
else if B="N" then H8

here's what I have now:
=IF(H8=0," ",(IF D8="Y",(H8-(H8*O8)),(IF D8="N",H8)))

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
MS Excel Nested Functions Aussie Barbie Excel Worksheet Functions 4 January 24th 08 01:08 AM
Nested Functions Toppers Excel Discussion (Misc queries) 0 February 22nd 07 07:37 PM
NESTED IF FUNCTIONS EuGene C. White Excel Worksheet Functions 4 July 5th 06 01:06 AM
nested if functions in Excel 2002 Darin Gibson Excel Worksheet Functions 8 November 22nd 05 07:51 PM
ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS Linda Bolton Excel Worksheet Functions 2 January 14th 05 11:58 AM


All times are GMT +1. The time now is 03:20 AM.

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

About Us

"It's about Microsoft Excel"