Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
321 views
in Technique[技术] by (71.8m points)

excel - Array formula with does not equal condition

Essentially, I want to omit location(Y) from the result of the below array formula.

I'm using the array formula to find the Nth closest location to a postcode(X) - in this case the 1st closest. However, postcode(x) is chosen via another location(Y).

{(INDEX(PROXIMITY!$B$2:$B$14199,SMALL(IF(DASHBOARD!$C$22=PROXIMITY!$A$2:$A$14199,ROW(PROXIMITY!$A$2:$A$14199)-ROW(PROXIMITY!$A$2)+1),1))}

Cell C22 - is the postcode location
A2 - A14199 : list of Postcodes
B2 - B14199 : list of locations

UPDATE: Have solved this now. Am using the below formula. It was a lot simpler than I first thought (added the IF function), and probably was a little confusing with my explanation.

={IFERROR(INDEX(PROXIMITY!$B$2:$B$14199,SMALL(IF(DASHBOARD!$G$5<>PROXIMITY!$B$2:$B$14199,IF(DASHBOARD!$C$22=PROXIMITY!$A$2:$A$14199,ROW(PROXIMITY!$A$2:$A$14199)-ROW(PROXIMITY!$A$2)+1)),1)),"No repairers cover this postcode")}

question from:https://stackoverflow.com/questions/65844037/array-formula-with-does-not-equal-condition

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...