multiple outputs for a single entry

jedi_jr

New Member
Joined
Oct 5, 2004
Messages
42
I have worksheet(cover) that I enter a "value" into and I want it to lookup that value on another worksheet(data) and fill in the data from there. If that "value" appears only once on the worksheet(data) it gives me the info that I require. If it appears more than once, how do I get the info from the subsequent entrys.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
In worksheet"cover" I have six columns:
col A - local site
col B - ipaddress
col C - facing site
col D - Link
col E - radio
col F - Device

I enter the value in Col A, and various lookups fill in the subsequent columns with the values given in worksheet"data". My issue is that the value that I enter may appear once or as many as five times in worksheet"data", and I need all of the values to be reported. For each of the entries. Please note that I cannot make changes to worksheet"data" as it is not my worksheet.

I hope that this makes my request a little clearer...
 
Upvote 0
Worksheet "Data"
Book1
ABCDEF
1Local SiteIP AddressFacing SiteLinkRadioDevice
2Development123.456.6661123
3M1145.256.3212234
4M2555.555.6663345
5J2777.888.9994456
6Development101.125.1245567
7M4111.225.3326678
8Development888.999.1117789
9F1111.222.3338890
Data


Worksheet "Cover"

A1 is where you enter you input (search item from column A in the Data sheet).

Formula in B2:
=IF(ROW(Data!$B2)-ROW(Data!$B$1)>COUNTIF(Data!$A$1:$A$9,$A$1),"",INDEX(Data!A$1:A$9,SMALL(IF(Data!$A$1:$A$9=$A$1,ROW(Data!$B$1:$B$9)),ROW(Data!$B2)-ROW(Data!$B$1))))

Adjust the ranges to suit (leave the $ symbols in tact) and confirm with CTRL+SHIFT+ENTER.

Then copy to the right as many columns as necessary and down as far as necessary.
 
Upvote 0
Here is a cut of my worksheet"data"
Harris MW Checklist2.xls
ABCDEFGH
3MarketSubnetLocalIPAddressFacingLinkRadioDevice
4BC.240BC075510.56.26.3BC0764DS1ConstellNetcom
5BC.240BC075610.56.26.5BC0761DS1ConstellNetcom
6BC.240BC075610.56.26.4BC0764DS1ConstellNetcom
7BC.240BC076110.56.26.6BC0756DS1ConstellNetcom
8BC.240BC076410.56.26.2BC0755DS1ConstellNetcom
9BC.248BC076410.56.26.18BC0756DS1ConstellEthernet
10BC.240BC076410.56.26.1BC0756DS1ConstellNetcom
data



Here is my worksheet"cover" where I want the info to showup when I enter the local site name
Harris MW Checklist2.xls
ABCDEF
1localsiteipaddressfacingsiteLinkRadioDevice
2BC076410.56.26.2BC0755DS1ConstellNetcom
3?????
4?????
cover


in the worksheet"data" it has multiple entries for BC0764 and I can only get either the first or last one to show up on the worksheet"cover". I am sure that the formulae that I am using are not the correct formulae for this situation.
 
Upvote 0
Why don't you use the formulas that I provided. They do exactly what you are looking for?

In your B2 of Cover sheet enter this (you can copy it from here and paste it) and instead of hitting Enter, hold the Ctrl and Shift Keys down and then press Enter then copy the formula from B2 to the end of the row of data and then copy down as far as you wish. :

=IF(ROW(Data!$D2)-ROW(Data!$D$1)>COUNTIF(Data!$C$1:$C$9,$A$1),"",INDEX(Data!D$1:D$9,SMALL(IF(Data!$C$1:$C$9=$A$1,ROW(Data!$D$1:$D$9)),ROW(Data!$D2)-ROW(Data!$D$1))))
 
Upvote 0
Thank you NBVC, I kept getting only the first values for each entry, but I figured out what I was missing. Your formula works great.

Thanks,
Al
 
Upvote 0

Forum statistics

Threads
1,203,538
Messages
6,055,992
Members
444,839
Latest member
laurajames

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top