I am trying to make a spreadsheet that takes an equipment number and then searches a cable database to tell me the cable_ID of every cable associated with that piece of equipment. I need to search two separate columns in the cable database: eq_cable_from and eq_cable_to. I want my output be cable_id IF eq_cable_to OR eq_cable_from = equipment number.
My variables are as follows:
tofrom = the cable database that i'm searching in
AB = column where cable_id is stored
F = column where eq_cable_from is stored
K = column where eq_cable_from is stored
A3= cell where my equipment number is stored
So far, i've gotten the correct output by just searching in one of the necessary columns using the following formula:
=INDEX(tofrom!$AB:$AB,SMALL(IF(tofrom!$F:$F=Sheet3!$A$3,ROW(tofrom!$F:$F)),ROW(tofrom!F9)))
However, I get hung up when I try to search in BOTH column F and column K. I tried adding an OR command inside of the IF command but that doesnt seem to work. Here is what that attempt looked like:
=INDEX(tofrom!$AB:$AB,SMALL(IF(OR(tofrom!$F:$F=Sheet3!$A$3,tofrom!$K:$K=Sheet3!$A$3),ROW(tofrom!$F:$F)),ROW(tofrom!F5)))
This is my first attempt at using excel and i'm very unfamiliar with the commands. The formulas above were developed from answers to similar questions on this site and i'm still trying to figure out exactly how they work. Any help would be much appreciated
Bookmarks