ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nested IF (https://www.excelbanter.com/excel-worksheet-functions/192147-nested-if.html)

tony

Nested IF
 
I can't figure out a formula for the following problem:
Student A has the choice of taking 4 out of 5 possible test but if he took
all 5 then the lowest grade would be dropped??

Don Guillett

Nested IF
 
Assuming grades are in d18,d19,d20,d21,d22 then put this in e18 and copy
down FOUR
=IF(LEN(TRIM(D18))<1,"",LARGE($D$18:$D$22,ROW(A1)) )

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Tony" wrote in message
...
I can't figure out a formula for the following problem:
Student A has the choice of taking 4 out of 5 possible test but if he took
all 5 then the lowest grade would be dropped??



Bernie Deitrick

Nested IF
 
Tony,

=(SUM(B2:B6)-IF(COUNT(B2:B6)=5,MIN(B2:B6),0))/MIN(COUNT(B2:B6),4)

with test grades in B2:B6

HTH,
Bernie
MS Excel MVP


"Tony" wrote in message
...
I can't figure out a formula for the following problem:
Student A has the choice of taking 4 out of 5 possible test but if he took
all 5 then the lowest grade would be dropped??





All times are GMT +1. The time now is 11:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com