Forum Discussion
Use IF statement in Excel with set of cells
Thanks for your reply, What I exactly want, is that, if the value of specifc cell in column C is lower than the fixed value (placed in cell C40) the the output from If-statement is the same value of specific C-cell, else, the output value is zero. C40 is only used for condition/comparesion and not used as an output neither in True nor in false conditions.
Thanks
=(C4<C$40)*C4
The above formula returns either C4 or 0.
- m81hassan_51Apr 26, 2019Copper ContributorWhat I need is to use a set of cells (C4:C22) instead of only one cell C4.
The use of min function is to serve other purpose. The overall picture is that, I have a set of numbers which represent a test scores between 0 and 50. What I want to find is the highest score below the succeed point which is 25. For example, If I have the scores: 10,20,23,30,40,49; the value I need to find should be 23 in this example.
Here, C40=Constant=25. Thanks- TwifooApr 26, 2019Silver ContributorYour new logic is now entirely different from the old one. Can please provide a clear example of your data and desired result?
- m81hassan_51Apr 26, 2019Copper Contributor
Ok,
Lets us assume we have the following students scores:
Student No. Score
------------- ----------
1 41
2 20
3 23
4 27
5 30
6 10
7 49
the test maximum possible score is 50. That is the minimum success degree that student need to take for passing the exam is 25.
I need to find thclosest student score to 25 for failed students (below 25).
In this above example, the required score will be 23 for student no. 3...
What I am doing is that storing the 23 in a specific cell, say cell C40. and the students score are along column C.
then, follow anyone of the following algorithms:
1) find the minimum difference between C40-value and the student score which is bellow C40
2) find the maximum value of student score which is still bellow C40.
Thanks a lot for your help