My sheet looks something like this: https://docs.google.com/spreadsheets/d/1IbHLts4V4hyc2bo_TfgZzZhFiMXkD5FSlPlpSm7xloY/edit?usp=sharing
How would I make a formula for the max/min columns, to get the maximum/minimum value for each row, but only including columns that have the value "bar"? (highlighted in green for clarity)