Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Clear Some Cell Values Based on Another Cells Value

$
0
0

Just looking for some help with the below script, as I need the IF statement to be between "29" and "50" and not just 29 or more, as this impacting other cells that it shouldn't.

function clearSomeCellsLeaversLockers () {  const ss = SpreadsheetApp.getActive();  const sh = ss.getSheetByName('Form Responses 1');  const sr = 1;  const vs = sh.getRange(sr,147,sh.getLastRow() - sr + 1).getValues().flat();  vs.forEach((e,i) => {    if(e > 29) sh.getRange(i + sr,133,1,6).clearContent();  })}

Any help will be greatly appreciated.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>