Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Need formulas to return multiple data matches

Hi,

I have two spreadsheet databases (each in separate sheets) with the
following information in them: the first one contains records about
"projects" with each project having a unique number. The second spreadsheet
database contains details about contractors assigned to a project. In this
database, a "project" may have multiple records - one for each contractor
assigned to the project.

I'm trying to create a "report" in a sheet in which I can put the project
number in a cell, and formulas will return all the contractors assigned to
that project. I have tried to use =vlookup() and =match()... and they work
to return the first record...

How can I set formulas up so that I can return all the contractors assigned
to a project? In other words... let's say the max # of contractors assigned
is 10. Then I would like to have 10 cells in my report... each with a
formula (similar to match() or vlookup()) that will return the contractors
assigned to that project from the correct database.

Any ideas on how to set this up would be very helpful and much appreciated -
thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default Need formulas to return multiple data matches

Jeff,

In cell A1 of your Report sheet, enter the project number. Then in any cell, array enter (enter
using Ctrl-Shift-Enter) the formula

=IF(COUNTIF('Data Sheet'!$A:$A,$A$1)=ROWS($A$1:A1),INDEX('Data Sheet'!A:A,LARGE(('Data
Sheet'!$A$1:$A$999=$A$1)*ROW('Data Sheet'!$A$1:$A$999),COUNTIF('Data
Sheet'!$A:$A,$A$1)-(ROWS($B$1:B1)-1))),"")

and copy down and over to create your extracted table. Delete the columns that you don't need
afterwards.

I wrote the formula for a database on a sheet named "Data Sheet" with project numbers in column A of
that Data Sheet.

HTH,
Bernie
MS Excel MVP


"JeffC" wrote in message
...
Hi,

I have two spreadsheet databases (each in separate sheets) with the
following information in them: the first one contains records about
"projects" with each project having a unique number. The second spreadsheet
database contains details about contractors assigned to a project. In this
database, a "project" may have multiple records - one for each contractor
assigned to the project.

I'm trying to create a "report" in a sheet in which I can put the project
number in a cell, and formulas will return all the contractors assigned to
that project. I have tried to use =vlookup() and =match()... and they work
to return the first record...

How can I set formulas up so that I can return all the contractors assigned
to a project? In other words... let's say the max # of contractors assigned
is 10. Then I would like to have 10 cells in my report... each with a
formula (similar to match() or vlookup()) that will return the contractors
assigned to that project from the correct database.

Any ideas on how to set this up would be very helpful and much appreciated -
thanks in advance.



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
formulas that matches data and subtract dates Sting17 Excel Discussion (Misc queries) 6 September 7th 06 06:51 AM
Is there any way to use HLOOKUP in an array formula to return multiple matches? [email protected] Excel Worksheet Functions 9 August 31st 06 03:55 AM
How do I use lookup to return multiple matches and sum them? Nat Excel Discussion (Misc queries) 1 August 15th 06 06:23 PM
Vlookup to return the sum of multiple matches AussieExcelUser Excel Discussion (Misc queries) 3 August 1st 06 12:29 AM
Can vlookup return multiple matches in a single cell? cchristensen Excel Discussion (Misc queries) 3 December 2nd 04 01:56 AM


All times are GMT +1. The time now is 11:20 PM.

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"