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

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

venkat1926

Well-known Member
Joined
Aug 21, 2005
Messages
4,824
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
 

MissAJ

Board Regular
Joined
Sep 22, 2006
Messages
86
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.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,126
Messages
5,857,522
Members
431,883
Latest member
Hien

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
Top