Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default array formula to provide all values associated with a given value

I should mention that I'd like the output from the table below to look
something like this:

1000020 Td;Tz;Ug;Zm;Zw

1000035 Ao;Mz

etc.

Thanks - Toby

"tschaeffer" wrote in message news:...
From an Access Query. I've got a list with the unique ID's for reports,
and the next field indicates what Language they were written in.

This was from a Many - Many relationship in Excel, and many of the reports
were written in many different languages.

ReportID CountryID

1000020 Td

1000020 Tz

1000020 Ug

1000020 Zm

1000020 Zw

1000035 Ao

1000035 Mz

I've got over 10,000 records like this and would like an array formula
that for each Report ID (and i've got a separate list of those of course)
provides a listing (preferably tab or semicolon delimited) of every single
country that that report covers.

Any suggestions?

Thanks - Toby




  #2   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions,microsoft.public.excel
external usenet poster
 
Posts: 3,718
Default array formula to provide all values associated with a given va

In Sheet 2:

A1:
=IF(ISERR(SMALL(IF(MATCH(ReportID,ReportID,0)=ROW( INDIRECT("1:"&ROWS(ReportID))),MATCH(ReportID,Repo rtID,0)),ROWS($1:1))),"",INDEX(ReportID,SMALL(IF(M ATCH(ReportID,ReportID,0)=ROW(INDIRECT("1:"&ROWS(R eportID))),MATCH(ReportID,ReportID,0)),ROWS($1:1)) ))

ctrl+shift+enter, not just enter
copy down as far as needed

B1:
=IF(ISERR(SMALL(IF(ReportID=$A1,ROW(INDIRECT("1:"& ROWS(CountryID)))),COLUMNS($B:B))),"",INDEX(Countr yID,SMALL(IF(ReportID=$A1,ROW(INDIRECT("1:"&ROWS(C ountryID)))),COLUMNS($B:B))))

ctrl+shift+enter, not just enter
copy across and down as far as needed


"tschaeffer" wrote:

I should mention that I'd like the output from the table below to look
something like this:

1000020 Td;Tz;Ug;Zm;Zw

1000035 Ao;Mz

etc.

Thanks - Toby

"tschaeffer" wrote in message news:...
From an Access Query. I've got a list with the unique ID's for reports,
and the next field indicates what Language they were written in.

This was from a Many - Many relationship in Excel, and many of the reports
were written in many different languages.

ReportID CountryID

1000020 Td

1000020 Tz

1000020 Ug

1000020 Zm

1000020 Zw

1000035 Ao

1000035 Mz

I've got over 10,000 records like this and would like an array formula
that for each Report ID (and i've got a separate list of those of course)
provides a listing (preferably tab or semicolon delimited) of every single
country that that report covers.

Any suggestions?

Thanks - Toby





  #3   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default array formula to provide all values associated with a given value

Not (practically) possible using built-in functions.

One possibility is to download the *free* add-in Morefunc.xll which has a
function (MCONCAT) that *might* do what you want.

http://xcell05.free.fr/english/

Then you could use an array formula like this:

=SUBSTITUTE(TRIM(MCONCAT(IF(J$1:J$5=A1,K$1:K$5,"") &" "))," ",";")

Whe

A1 = a report number
J1:J5 = range of repot numbers
K1:K5 = range of languages

With 10K rows of data *expect* this to be slow!


--
Biff
Microsoft Excel MVP


"tschaeffer" wrote in message
...
I should mention that I'd like the output from the table below to look
something like this:

1000020 Td;Tz;Ug;Zm;Zw

1000035 Ao;Mz

etc.

Thanks - Toby

"tschaeffer" wrote in message news:...
From an Access Query. I've got a list with the unique ID's for reports,
and the next field indicates what Language they were written in.

This was from a Many - Many relationship in Excel, and many of the
reports were written in many different languages.

ReportID CountryID

1000020 Td

1000020 Tz

1000020 Ug

1000020 Zm

1000020 Zw

1000035 Ao

1000035 Mz

I've got over 10,000 records like this and would like an array formula
that for each Report ID (and i've got a separate list of those of course)
provides a listing (preferably tab or semicolon delimited) of every
single country that that report covers.

Any suggestions?

Thanks - Toby






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
array formula to provide all values associated with a given value tschaeffer Excel Discussion (Misc queries) 0 December 7th 07 03:39 AM
Array formula for unique values Dan Hatola Excel Worksheet Functions 1 January 20th 07 03:06 AM
Array formula for unique values Dan Hatola Excel Worksheet Functions 0 January 20th 07 02:11 AM
Checking 2 sets of values to provide True False Arla Excel Worksheet Functions 6 January 17th 06 11:41 PM
array formula values TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 29th 05 08:01 PM


All times are GMT +1. The time now is 03:24 AM.

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

About Us

"It's about Microsoft Excel"