IF Function returns result of formula

G

Guest

I'm trying to use the IF function to return either a 0 or the result of a
forumla. See example below.

col. A Col. B col. c (Formula)
col. C result
8 $18 =IF (A1<20,"0", A1>20,"result of B1*24")
0
22 $84 =IF (A2<20,"0", A2>20,"result of B2*24")
$2,016

How can I write the formula so that result in Col C. is can return the
result of a formula?
 
C

Chip Pearson

I think you need the formula

=IF(A1<20,0,IF(A1>20,B1*24,FALSE))


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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

IF formula 5
Excel Formula 7
How to calculate Premium Time 2
If function 1
Formula returned instead of result 3
formula returns the formula 2
#Ref! after row deletion 3
rearranging formula suggestion 2

Top