Hi all,
I have a dataset and I'm focusing on two of the columns, Trial and TaskError. I want to calculate the mean TaskError when Trial = 1 and TaskError is either a 1 or a 0. TaskError can also be -99 (as in missing) or -88 (some other criteria).
I tried AVERAGEIFS but found I couldn't put the OR criteria in.
Tried AVERAGE(IF((TRIALCELLS = 1)*((TASKERRORCELLS = 1)+(TASKERRORCELLS = 0)), TASKERRORCELLS)) and ctrl+shift+enter to get the curly bracets based on this post (https://www.excelforum.com/excel-for...statement.html) but I got an #N/A error.
Any help would be much appreciated as this is for around 25 people each with 5 trial types I need to do it for, and this then gets fed into a larger matlab script to do other stuff.
Thanks!!
Bookmarks