Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
The NOW() syntax | Excel Discussion (Misc queries) | |||
VBA syntax | Excel Discussion (Misc queries) | |||
If then syntax | Excel Worksheet Functions | |||
when writing an IF statement what is the syntax for "Not Equal to. | Excel Discussion (Misc queries) | |||
when writing an IF statement what is the syntax for "Not Equal to. | Excel Discussion (Misc queries) |