I need to calculate the Root Mean Square Deviation for various ranges of values. In the basic spreadsheet I attached, there are two sheets, DATA and ANALYSIS. DATA contains two columns (spectroscopic data, wavenumbers and absorbances in Columns 1 and 2) and has >17,000 rows. In ANALYSIS I have a set of rows with Upper and Lower Wavenumber columns. I need to calculate the RMS Deviation for the absorbance values in the range between the Upper and Lower Wavenumbers using the equation:
=SQRT(DEVSQ(a:b)/COUNTA(a:b))
where a and b are the absorbances at the Upper/Lower Wavenumbers. I tried the following equation to calculate it:
=SQRT(DEVSQ(VLOOKUP(B2,Data!A2:B17010,2,TRUE):VLOOKUP(c2,Data!A2:B17010,2,TRUE))/COUNTA(LOOKUP(B2,Data!A2:B17010,2,TRUE):VLOOKUP(c2,Data!A2:B17010,2,TRUE))
but it gives an error. Is there a way to use VLOOKUP in an equation like this?
Bookmarks