Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How can I create a list of links (A to B) & search for both A & B

I am trying to create a list of cables in a cable rack. Thus each cable is
linking two points A & B. I have created three columns as follows

A B C
Cable# Port A Port B
0001 F/1 F/2
0002 F/3 F/4

and so on...

Now I want to create a search to find out which cable is connected to port
F/2 for instance. As you can see here I have to search both columns B&C to
find the answer, and i am lost on an easier way of representing the data, or
doing the search.
--
Hany ElKady
IT Consultant
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default How can I create a list of links (A to B) & search for both A & B

Put the number in ColumnA that you are looking for in Cell E1. Then, put
this function in Cell E2:
=IF(INDEX(B1:B12,MATCH(1,--EXACT(A1:A12,E1),0))0,INDEX(B1:B12,MATCH(1,--EXACT(A1:A12,E1),0)),INDEX(C1:C12,MATCH(1,--EXACT(A1:A12,E1),0)))

Commit with Ctrl+Shift+Enter (not just enter).

Regards,
Ryan---

--
RyGuy


"Hany ElKady" wrote:

I am trying to create a list of cables in a cable rack. Thus each cable is
linking two points A & B. I have created three columns as follows

A B C
Cable# Port A Port B
0001 F/1 F/2
0002 F/3 F/4

and so on...

Now I want to create a search to find out which cable is connected to port
F/2 for instance. As you can see here I have to search both columns B&C to
find the answer, and i am lost on an easier way of representing the data, or
doing the search.
--
Hany ElKady
IT Consultant

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default How can I create a list of links (A to B) & search for both A

Hi Thanks for the answer; it is not quite working though...

The match part gives an error if it does not find the item in the column
(which it will do for one of those columns) i had to use iferror to fix that
(is there a better way). Also, what does the -- stand for in the formula ?

--
Hany ElKady
Professional Services Architect
Technology & Service Delivery


"ryguy7272" wrote:

Put the number in ColumnA that you are looking for in Cell E1. Then, put
this function in Cell E2:
=IF(INDEX(B1:B12,MATCH(1,--EXACT(A1:A12,E1),0))0,INDEX(B1:B12,MATCH(1,--EXACT(A1:A12,E1),0)),INDEX(C1:C12,MATCH(1,--EXACT(A1:A12,E1),0)))

Commit with Ctrl+Shift+Enter (not just enter).

Regards,
Ryan---

--
RyGuy


"Hany ElKady" wrote:

I am trying to create a list of cables in a cable rack. Thus each cable is
linking two points A & B. I have created three columns as follows

A B C
Cable# Port A Port B
0001 F/1 F/2
0002 F/3 F/4

and so on...

Now I want to create a search to find out which cable is connected to port
F/2 for instance. As you can see here I have to search both columns B&C to
find the answer, and i am lost on an easier way of representing the data, or
doing the search.
--
Hany ElKady
IT Consultant

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default How can I create a list of links (A to B) & search for both A & B

A2 contains the Port ID you are searching for.
Data starts in A5 (using columns A:C)
D5 contains the formula: =OR(B5=$A$2,C5=$A$2)
D5 also contains Conditional Formatting, using the formula: =D5=TRUE

Fill the formula in column D down alongside your data.
If you put titles over your data in row 4, then you will be able to
use the AutoFilter to display all of the found items (col 4 will equal true).
--
Jim Cone
Portland, Oregon USA



"Hany ElKady"

wrote in message
I am trying to create a list of cables in a cable rack. Thus each cable is
linking two points A & B. I have created three columns as follows

A B C
Cable# Port A Port B
0001 F/1 F/2
0002 F/3 F/4

and so on...
Now I want to create a search to find out which cable is connected to port
F/2 for instance. As you can see here I have to search both columns B&C to
find the answer, and i am lost on an easier way of representing the data, or
doing the search.
--
Hany ElKady
IT Consultant
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I create a list from the results of a file search in Excel? jeejee_r Excel Discussion (Misc queries) 1 May 25th 06 07:25 PM
EXCEL - LINKS cannot easily get list of all links & names in book Tuba Joe Excel Worksheet Functions 1 September 29th 05 10:33 PM
Is there a way to create a drop-down list of links in Excel? t_boden Excel Worksheet Functions 1 February 3rd 05 06:14 PM
Create a search Field within a worksheet to search command buttons Ed P[_2_] Excel Programming 1 December 14th 04 08:04 PM
How do I create a "List If" function.I need to search a database . Flying Solo Excel Worksheet Functions 2 December 7th 04 03:44 PM


All times are GMT +1. The time now is 01:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"