PC Review


Reply
Thread Tools Rate Thread

Display multiple results in 1 cell

 
 
=?Utf-8?B?UlM=?=
Guest
Posts: n/a
 
      15th Mar 2007
Problem: How can I display multiple results, based on multiple
criteria, in one cell...kind of like a dependent drop-down list of results,
without sorting the source data located in a different file or using any
filters. I can’t have multiple results spread out over more than 1 cell
(because this will result in many listings with blank cells, thus changing
the format of my sheet) nor do I want to have the results concatenated into 1
long cell.

Background: After combing through many postings in the Excel forums, I
adapted one of the formulas to allow me to find companies that match multiple
criteria on one of my worksheets and then insert the pay rate for these
companies in a separate column on that worksheet based on a pay rate table
located, currently, in a different workbook (a separate Excel file). While
trying to find a solution to this problem, I’ve created a smaller test
version of the spreadsheet. The formula I’m using is an array-entered
forumula:

=INDEX('[Rates.xls]Sheet1'!O$3:O$261,MATCH(1,('[Rates.xls]Sheet1'!$S$3:$S$261=$E8)*('[Rates.xls]Sheet1'!$K$3:$K$261=CONCATENATE($B8,"/",$C8,"/",$D8)),0))

where from the Rates.xls file, column O contains the pay rates to be found
and S contains the Company names to be matched against based on values in my
test sheet. From my test sheet, row 1 has headers in it. Column B is
“Type”, column C “Program”, column D “Model”, column E “Company”, and column
G is where I want the rates to appear. In the formula, columns, B, C, & D
are concatenated with /’s to match the values found in column K of the Rates
sheet (Example of column K: Networks/Res/Home; following the format
$B8/$C8/$D8).

Now I know that Debra Dalgleish has described how to create dependent
drop down lists on her site, but in those cases, it requires either having a
sorted list or defining names for each list. Since I have almost 260
companies in the Rates file with other data listed in other columns, I would
rather not sort this list or try and define names for all these companies.

For the most part, the current formula works fine, but 14 of the
companies have more than 1 pay rate available. For these companies, the
formula only finds the first instance. Maybe the solution to this would to
have some sort of combination of this formula and vba or data validation that
would provide a list for these 14 companies. Maybe something that would say,
use the formula, but if any of these 14 companies with their multiple rates
are found, use a data-validated list or vba to display the results in a list.
Would this be possible? All help is greatly apprecitated.
 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      15th Mar 2007
Sounds like you are trying to do too much in one step. And making you life
complicated as a result.
Split it into steps, using a hidden worksheet if necessary to retrieve the
data.
Then massage the results to suit the display requirements.

NickHK

"RS" <(E-Mail Removed)> wrote in message
news:BA26B123-9E92-40C6-AABE-(E-Mail Removed)...
> Problem: How can I display multiple results, based on multiple
> criteria, in one cell...kind of like a dependent drop-down list of

results,
> without sorting the source data located in a different file or using any
> filters. I can't have multiple results spread out over more than 1 cell
> (because this will result in many listings with blank cells, thus changing
> the format of my sheet) nor do I want to have the results concatenated

into 1
> long cell.
>
> Background: After combing through many postings in the Excel forums,

I
> adapted one of the formulas to allow me to find companies that match

multiple
> criteria on one of my worksheets and then insert the pay rate for these
> companies in a separate column on that worksheet based on a pay rate table
> located, currently, in a different workbook (a separate Excel file).

While
> trying to find a solution to this problem, I've created a smaller test
> version of the spreadsheet. The formula I'm using is an array-entered
> forumula:
>
>

=INDEX('[Rates.xls]Sheet1'!O$3:O$261,MATCH(1,('[Rates.xls]Sheet1'!$S$3:$S$26
1=$E8)*('[Rates.xls]Sheet1'!$K$3:$K$261=CONCATENATE($B8,"/",$C8,"/",$D8)),0)
)
>
> where from the Rates.xls file, column O contains the pay rates to be found
> and S contains the Company names to be matched against based on values in

my
> test sheet. From my test sheet, row 1 has headers in it. Column B is
> "Type", column C "Program", column D "Model", column E "Company", and

column
> G is where I want the rates to appear. In the formula, columns, B, C, & D
> are concatenated with /'s to match the values found in column K of the

Rates
> sheet (Example of column K: Networks/Res/Home; following the format
> $B8/$C8/$D8).
>
> Now I know that Debra Dalgleish has described how to create dependent
> drop down lists on her site, but in those cases, it requires either having

a
> sorted list or defining names for each list. Since I have almost 260
> companies in the Rates file with other data listed in other columns, I

would
> rather not sort this list or try and define names for all these companies.
>
> For the most part, the current formula works fine, but 14 of the
> companies have more than 1 pay rate available. For these companies, the
> formula only finds the first instance. Maybe the solution to this would

to
> have some sort of combination of this formula and vba or data validation

that
> would provide a list for these 14 companies. Maybe something that would

say,
> use the formula, but if any of these 14 companies with their multiple

rates
> are found, use a data-validated list or vba to display the results in a

list.
> Would this be possible? All help is greatly apprecitated.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display multiple results based on one cell Cul Microsoft Excel Worksheet Functions 5 1st Jul 2009 04:04 PM
How do you display IF statement results in a different cell =?Utf-8?B?TmVhbGw=?= Microsoft Excel Worksheet Functions 7 22nd Jun 2007 08:53 PM
can I use 2 formulas in 1 cell and display both results =?Utf-8?B?Y2hyaXM=?= Microsoft Excel New Users 4 30th Mar 2006 12:26 PM
Can multiple cell results be displayed in a single cell? =?Utf-8?B?RnVhZHNDdXJzZQ==?= Microsoft Excel Misc 2 18th May 2005 05:33 PM
display results of formula in different cell =?Utf-8?B?U2NoZWR1bGVRdWVlbg==?= Microsoft Excel Programming 3 27th Jun 2004 11:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 PM.