excel - Formula to compare a set of cells and return value -


my formula is

{=iferror(if(max(if(n17:$n$32="d",row(n17:$n$32)))=  min(if(isblank(e17:$e$32),row(e17:$e$32)))-e17,"d",""),"")} 

basically, rows delegated 2 different types: parent , child.

the type shifts if variable changes in cell. formula's purpose identify how many rows below still child rows, , (with d being placed in next cell) determine if child complete. if children below parent row complete, current cell should return value "d".

this formula work... able identify if last cell of children complete. not check children between , parent have data put in or not.

to answer question, changed angle of attack , have made formula:

{=if(isblank(c7),"",if(countif(n8:indirect("n"&min(if(isblank(n8:$n$98),row(n8:$n$98)))),"d")=counta(e8:indirect("e"&min(if(e8:$e$98=0,row(e8:$e$98)-1)))),"d",""))} 

rather assigning value cell, instead decides whether cell true or false , counts base on number of true's. allow me retain variable length assign "d"one if cells in question have "d" in them.


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -