A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup to return multiple matching values



 
 
Thread Tools Display Modes
  #1  
Old June 17th, 2009, 09:49 PM posted to microsoft.public.excel.worksheet.functions
olssonj
external usenet poster
 
Posts: 5
Default Lookup to return multiple matching values

Hi!

I have one workbook with two sheets. Sheet one is used to define where our
consultants are booked every day through the fiscal year. The sheet includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I have every
days date in column A and then each consultants' name in A2, A3, etc. also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to end up on
the right date (row) and the right consultant (column) in the Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing here

Thanks!

//Jonas

  #2  
Old June 17th, 2009, 10:13 PM posted to microsoft.public.excel.worksheet.functions
olssonj
external usenet poster
 
Posts: 5
Default Lookup to return multiple matching values

Hi again!

My bad... The names of the consultants are of course in B1, C1, D1, etc. in
the sheet called Gantt...

Thanks again!

//Jonas

"olssonj" wrote:

Hi!

I have one workbook with two sheets. Sheet one is used to define where our
consultants are booked every day through the fiscal year. The sheet includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I have every
days date in column A and then each consultants' name in A2, A3, etc. also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to end up on
the right date (row) and the right consultant (column) in the Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing here

Thanks!

//Jonas

  #3  
Old June 18th, 2009, 08:33 AM posted to microsoft.public.excel.worksheet.functions
hardeep.kanwar[_14_]
external usenet poster
 
Posts: 1
Default Lookup to return multiple matching values


What Formula are you using

or Post ur Sheet






olssonj;385049 Wrote:
Hi again!

My bad... The names of the consultants are of course in B1, C1, D1,
etc. in
the sheet called Gantt...

Thanks again!

//Jonas

"olssonj" wrote:

Hi!

I have one workbook with two sheets. Sheet one is used to define

where our
consultants are booked every day through the fiscal year. The sheet

includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I

have every
days date in column A and then each consultants' name in A2, A3, etc.

also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to

end up on
the right date (row) and the right consultant (column) in the

Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have

tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing

here

Thanks!

//Jonas



--
hardeep.kanwar
------------------------------------------------------------------------
hardeep.kanwar's Profile: http://www.thecodecage.com/forumz/member.php?userid=170
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=107693

  #4  
Old June 18th, 2009, 10:18 AM posted to microsoft.public.excel.worksheet.functions
olssonj
external usenet poster
 
Posts: 5
Default Lookup to return multiple matching values

Hi,

I am writing in Swedish so I hope my translation is ok.

I am using following function:
=IF(ISTEXT(IF(INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Date];0);6)=Gantt[[#Headline];["ConsultantName"]];INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Date];0);5);""));IF(INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Datum];0);6)=Gantt[[#Headline];["ConsultantName"]];INDEX(Data;MATCH(Gantt[[#This row];[Date]];Data[Date];0);5);"---");"---")

The last "---" is to be able to sumarize how many days each consultant is
booked (365 days minus number of "---"). "ConsultantName" is of course
changed for each column in the Gantt table for each consultant...

I hope this is enough for u and that u can follow my translation... Please
let me know if u need any additionial information. Thank you very mutch!

//Jonas

"hardeep.kanwar" wrote:


What Formula are you using

or Post ur Sheet






olssonj;385049 Wrote:
Hi again!

My bad... The names of the consultants are of course in B1, C1, D1,
etc. in
the sheet called Gantt...

Thanks again!

//Jonas

"olssonj" wrote:

Hi!

I have one workbook with two sheets. Sheet one is used to define

where our
consultants are booked every day through the fiscal year. The sheet

includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I

have every
days date in column A and then each consultants' name in A2, A3, etc.

also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to

end up on
the right date (row) and the right consultant (column) in the

Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have

tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing

here

Thanks!

//Jonas



--
hardeep.kanwar
------------------------------------------------------------------------
hardeep.kanwar's Profile: http://www.thecodecage.com/forumz/member.php?userid=170
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=107693


  #5  
Old June 18th, 2009, 11:33 AM posted to microsoft.public.excel.worksheet.functions
olssonj
external usenet poster
 
Posts: 5
Default Lookup to return multiple matching values

Hi

My function is written in Swedish so I hope my translation is ok.

Function:
=IF(ISTEXT(IF(INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Date];0);6)=Gantt[[#Headline];["ConsultantName"]];INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Date];0);5);""));IF(INDEX(Data;MATCH(Gantt[[#This
row];[Date]];Data[Date];0);6)=Gantt[[#Headline];["ConsultantName"]];INDEX(Data;MATCH(Gantt[[#This row];[Date]];Data[Date];0);5);"---");"---")

ConsultantName is of course changed for each column to the actual name of
the consultant.
(The "ISTEXT"-part makes it possible to sumarize how many days each
consultant is booked over the year...)

I hope u follow.Please let me know if u need any additional information.
Thank you!

//Jonas

"hardeep.kanwar" wrote:


What Formula are you using

or Post ur Sheet






olssonj;385049 Wrote:
Hi again!

My bad... The names of the consultants are of course in B1, C1, D1,
etc. in
the sheet called Gantt...

Thanks again!

//Jonas

"olssonj" wrote:

Hi!

I have one workbook with two sheets. Sheet one is used to define

where our
consultants are booked every day through the fiscal year. The sheet

includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I

have every
days date in column A and then each consultants' name in A2, A3, etc.

also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to

end up on
the right date (row) and the right consultant (column) in the

Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have

tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing

here

Thanks!

//Jonas



--
hardeep.kanwar
------------------------------------------------------------------------
hardeep.kanwar's Profile: http://www.thecodecage.com/forumz/member.php?userid=170
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=107693


  #6  
Old June 22nd, 2009, 10:13 AM posted to microsoft.public.excel.worksheet.functions
olssonj
external usenet poster
 
Posts: 5
Default Lookup to return multiple matching values

Hi!

Any ideas? Do you need any additional information? Would appreciate your
help big time!

//Jonas

"hardeep.kanwar" wrote:


What Formula are you using

or Post ur Sheet






olssonj;385049 Wrote:
Hi again!

My bad... The names of the consultants are of course in B1, C1, D1,
etc. in
the sheet called Gantt...

Thanks again!

//Jonas

"olssonj" wrote:

Hi!

I have one workbook with two sheets. Sheet one is used to define

where our
consultants are booked every day through the fiscal year. The sheet

includes
one table called "data" (Excel 2007) with following columns:
"ConsultantName", "Date" and "CustomerName". In the second sheet I

have every
days date in column A and then each consultants' name in A2, A3, etc.

also in
a 2007-table called "Gantt".

The problem:
As the user adds data in the data sheet I want the CustomerName to

end up on
the right date (row) and the right consultant (column) in the

Gantt-sheet.
The thing is that Lookup and Index and Match and everything I have

tried only
returns the first match not all matches, i.e. the same date:

ConsultantName: Kristina
Date: 090615
CustomerName: Lehman

and

ConsultantName: Linda
Date: 090615
CustomerName: HiQ

only return the data that matches the first hit, which is Lehman...

How can I make the function return all matches...? What am I missing

here

Thanks!

//Jonas



--
hardeep.kanwar
------------------------------------------------------------------------
hardeep.kanwar's Profile: http://www.thecodecage.com/forumz/member.php?userid=170
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=107693


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.