IF formula:logical test; result of formula referred to

MissAJ

Board Regular
Joined
Sep 22, 2006
Messages
86
I am a teacher making a gradebook on Excel 2003 on Windows XP. Can I make the logical test part of an IF formula refer to a cell with another formula in it? Right now, the logical test of my IF formula is B6>0. B6 contains another formula, but I want the IF formula to test for the results of the formula in B6 (to be greater than 0 or not), not for the presence of a formula in B6.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I think it can be done. try an experiment
a1 2
b1 4
c1
=a1*b1
in d1 type
=if(c1>0,c1,0)
see what happens

in excel your must always with trivial examples.
venkat
 
Upvote 0
Thanks very much for your reply. Everyone at this forum is great to be helpful and accomodating. In the meantime, the Lord helped me to realize that I wasn't correctly reading the formula that I was referring to, especially the results it was producing. I've repaired my logical test accordingly. Thanks again.
 
Upvote 0
Thanks very much for your reply. Everyone at this forum is great to be helpful and accomodating. In the meantime, the Lord helped me to realize that I wasn't correctly reading the formula that I was referring to, especially the results it was producing. I've repaired my logical test accordingly. Thanks again.

The test depends a bit on what results the formula in B6 calculates...

Code:
=IF(ISNUMBER(B6), 
      IF(B6 >0, 
          Then-Calculation, 
          Else-Calculation), 
      Else-Calculation)
or:
Code:
=IF(N(B6) >0, 
      Then-calculation,
      Else-Calculation)
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,272
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top