Function writing help

G

Gator

Trying to figure out how to write a function for the following issue:
I want to have a cell that reads from another (first) cell the number and
then report action based on the number in the first cell. It needs to
consider first if the cell has a “0†in it should then report a “0â€, If it is
not a “0†it then needs to run the equation “269.9+(9.538*F7)â€. The function
I have at this point is “=IF(D7=0, "0","269.9+(9.538*F7)")†the problem is
that the first part works and it reports “0†as it should but if I put
another number in get the equation printed rather than it running the
equation.
 
T

T. Valko

"=IF(D7=0, "0","269.9+(9.538*F7)")"

Remove *all* the quotes from the formula:

=IF(D7=0,0,269.9+9.538*F7)
 
M

Mike H

Hi,

Ditch the quotes around the numbers is making them text

=IF(D7=0, 0,269.9+(9.538*F7))

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Link to an empty cell question. 2
Eliminate Negatives 3
SumIf formula 1
Nested IF & MAX Function 4
Eliminating #DIV/O! 8
Min+Max from other Tabs 4
Conditional Currency 5
Transfer data between two tables 3

Top