简体   繁体   中英

Formula to get last value in columns then value of another cell in the same row

I have a table with rows = depth and columns = value of the surveys done in each month and year. Not all years/months have surveys so some cells are blank. What I want to do is to determine to which depth each survey has been done, because it is not the same for all years/months. The depth values are stored in Column E and the survey value s are from Column F to DM.

I was able to call the last value in each column using this formula from Pearson :

=INDIRECT(ADDRESS(MAX((F1:F111<>"")*(ROW(F1:F111))),COLUMN(F:F)))

but this gives me value (which I don't need), not depth .

I want to know which depth (row value) this last value corresponds to.

Please try:

=INDEX($E:$E,MAX((F1:F111<>"")*(ROW(F1:F111))))  

entered as an array formula in a row outside the range 1:111 and copied across to suit (so probably from F:DM).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM