Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default need help with syntax of if statement

I have a workbook in which on worksheet 1, cell A40 has the formula:
=average(B8:B38)

Then, on worksheet 2, I would like the cell A1 to have:
= worksheet 1'!B40

EXCEPT, if the result equals zero, then I would like the result to say
"NODI=C".

What syntax do I use to formulate this IF STATEMENT?

In plain words, I want it to be:
= worksheet 1!B40, enter the result, if the result is zero, then display
"NODI=C"
--
Melody
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default need help with syntax of if statement

=if('worksheet 1'!b40=0,"NODI=C",'worksheet 1'!b40)

Melody wrote:

I have a workbook in which on worksheet 1, cell A40 has the formula:
=average(B8:B38)

Then, on worksheet 2, I would like the cell A1 to have:
= worksheet 1'!B40

EXCEPT, if the result equals zero, then I would like the result to say
"NODI=C".

What syntax do I use to formulate this IF STATEMENT?

In plain words, I want it to be:
= worksheet 1!B40, enter the result, if the result is zero, then display
"NODI=C"
--
Melody


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 207
Default need help with syntax of if statement

=IF(worksheet1!B40<0,worksheet1!B40,"NODI=C")

"Melody" wrote in message
...
I have a workbook in which on worksheet 1, cell A40 has the formula:
=average(B8:B38)

Then, on worksheet 2, I would like the cell A1 to have:
= worksheet 1'!B40

EXCEPT, if the result equals zero, then I would like the result to say
"NODI=C".

What syntax do I use to formulate this IF STATEMENT?

In plain words, I want it to be:
= worksheet 1!B40, enter the result, if the result is zero, then display
"NODI=C"
--
Melody



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default need help with syntax of if statement

Try this:

=IF('worksheet 1'!B40,'worksheet 1'!B40,"NODI=C")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Melody" wrote in message
...
I have a workbook in which on worksheet 1, cell A40 has the formula:
=average(B8:B38)

Then, on worksheet 2, I would like the cell A1 to have:
= worksheet 1'!B40

EXCEPT, if the result equals zero, then I would like the result to say
"NODI=C".

What syntax do I use to formulate this IF STATEMENT?

In plain words, I want it to be:
= worksheet 1!B40, enter the result, if the result is zero, then display
"NODI=C"
--
Melody


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
The NOW() syntax Tom Excel Discussion (Misc queries) 3 January 4th 08 04:10 PM
VBA syntax Sunantoro Excel Discussion (Misc queries) 1 September 21st 05 03:19 AM
If then syntax RL Excel Worksheet Functions 3 June 22nd 05 05:30 AM
when writing an IF statement what is the syntax for "Not Equal to. NEEDTOKNOW Excel Discussion (Misc queries) 1 December 10th 04 04:45 PM
when writing an IF statement what is the syntax for "Not Equal to. NEEDTOKNOW Excel Discussion (Misc queries) 1 December 10th 04 04:32 PM


All times are GMT +1. The time now is 03:12 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"