I have a worksheet like this, where A1:C14 records the temperature of different tanks everyday.
I want to make an excel formula or vba macro that is able to pull the latest temperature of each tank so that I can fill in a new table in E1:G6?
How does one go about making a code that is able to:
- Find the correct tank
- Find the latest date when each tank was measured
- Give out a value of the temp of that selected tank
I tried applying this formula but just got more confused:
=INDEX(,SMALL(IF(COUNTIF(,),MATCH(,),""),ROWS),COLUMNS)
Thank you all!


