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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -