I'm trying to let Google Spreadsheets return a text value from one cell if the value is in the right interval. This is my formula so far:
=IF(AND(B4>=C37), A37 , IF(AND(B4>=C38 , B4=C39 , B4=C40 , B4=C41 , B4=C42 , B4
Can anyone tell me what I'm doing wrong?
Not sure how your data is laid out but you could use a lookup or vlookup function.
LOOKUP(search_key, search_range|search_result_array, [result_range])
Your column of values goes in the search key, the search range is the cell holding the value you are testing and the result array is a column of text entries.
The column of values and corresponding text entries has to be the same size.
More info here:
https://support.google.com/docs/table/25273?hl=en&rd=2