excel - How to display results in sheet2 that reference sheet1 without inserting blank lines in sheet 2? -


i have workbook worksheet named "main". main contains name (col a) email (col b) , cols c through f contain codes identifying particular interests. interests "nc" nordic center (col c), "tm" trail maintenance (col d), ss ski swap (col e) etc. person may interested in helping nc , ss. if so, line person's name , email have nc in col c , ss in col e.

i have worksheets (in same workbook) named nc, tm, ss etc. these individual worksheets list name , emails of individuals have codes in main worksheet. want these worksheets list names , emails of people interested in particular area.

in nc worksheet, have formula in col looks this:

=if(main!c:c="nc",main!a:a,"")   

the formula active entire col a. formula list names of people in worksheet nc have nc coded in col c in main. however, if person not have nc listed, blank line in worksheet nc. don't want blank line.

for example if first , third name listed in main have nc in col c, nc worksheet looks like:

name 1  name 3 

i want nc like:

name1 name3 

how do this?

in sheet nc a1 please try:

=iferror(index(main!a$1:a$99, small(if(isblank(main!c$1:c$99),"",row(main!c$1:c$99)-min(row(main!c$1:c$99))+1), row(1:1))),"")   

it array formula entry requires ctrl+shift+enter. have restricted range here 99 rows sheet main because array formulae can adversely impact speed when applied large ranges , seems may want version of formula @ least 3 more times. however, if have more 98 names consider adjust 99 in formula accordingly.

repeat each of other 3 columns in main adjusting references suit. example sheet tm change 'c' column references 'd's.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -