简体   繁体   中英

Capping a value in Excel using data validation

Wonder if someone can help?

I'm trying to cap a mark for an assignments spreadsheet if it is submitted late, or the attempt is more than 1. One exception is that it is submitted late, however their assignment was "Accepted - Late". I have checked all the references and all seem to be OK. It is not capping if G4 is blank but E4 is larger than F4, but it should and I can't see why it won't here.

As far as I can tell:

(is the work late (E4>F4) AND is it Accepted late) if so, keep below 101, if not check if the work is late, if it is late then cap at 50, if not, check if attempt is more than 1, if it is cap at 50, if not cap at 101.

=IF(AND($E4>$F4, $G4="Accepted - Late"), $J4<101, IF($E4>$F4, $J4<51, IF($B4>1, $J4<51, $J4<101)))

更改某些格式后,这似乎可行,请注意一些列已移动。

=IF(AND($D3>$E3, F3="Accepted - Late"),  $I3<101,IF(K3>1, $I3<41, IF($D3>$E3, $I3<41,$I3<101)))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM