PC Review


Reply
Thread Tools Rate Thread

colating data from a table - for bespoke report

 
 
UKMAN
Guest
Posts: n/a
 
      26th Apr 2010
Hi

I have a simple 1000 row table and I am interested in only the data in the
columns shown below.

Proj Code Name

PC01 colin
PC01 fred jones


the project Code column data can change and a name is shown against ONLY if
associated with that proj code.

I am producing a report that has a lookup cell to select the name and then
automatically it will return all the Proj Codes that name is shown against.

I can get it to select the first match but not go down all the rows


Many thanks for any and all help with this..

Cheers

UKMAN
 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      27th Apr 2010
One way to set it up to deliver the required functionality ..
Your source data is assumed running in A2:B2 down (project codes - names)
Assume D2 is where you will input the name
In E2: =IF(D$2="","",IF(D$2=B2,ROW(),""))
In F2: =IF(ROWS($1:1)>COUNT(E:E),"",INDEX(A:A,SMALL(E:E,ROWS($1:1))))
Copy E2:F2 down to cover the max expected extent of source data, eg down to
F100. Hide/minimize col E. Col F returns the desired results (ie the project
codes associated with the name input in D2), all neatly packed at the top.
Inspiring? hit the YES below
--
Max
Singapore
---
"UKMAN" wrote:
> I have a simple 1000 row table and I am interested in only the data in the
> columns shown below.
>
> Proj Code Name
>
> PC01 colin
> PC01 fred jones
>
>
> the project Code column data can change and a name is shown against ONLY if
> associated with that proj code.
>
> I am producing a report that has a lookup cell to select the name and then
> automatically it will return all the Proj Codes that name is shown against.
>
> I can get it to select the first match but not go down all the rows

 
Reply With Quote
 
UKMAN
Guest
Posts: n/a
 
      27th Apr 2010
Max,

many thanks and I got your verison to work tso to understand the formulas BUT

your "E" I changed to "=IF($DW$5="","",IF($DW$5=DO5,ROW(),""))"
Your "F" I changed to
"=IF(ROWS($1:1)>COUNT($DV:$DV),"",INDEX($DN$5:$DN$1020,SMALL($DV:$DV,ROWS($1:1))))"

this is to reflect the layout I get a "10" in "DV10" and "#N/A" in "DW10" ??

what have I done wrong please????

UKMAN

"Max" wrote:

> One way to set it up to deliver the required functionality ..
> Your source data is assumed running in A2:B2 down (project codes - names)
> Assume D2 is where you will input the name
> In E2: =IF(D$2="","",IF(D$2=B2,ROW(),""))
> In F2: =IF(ROWS($1:1)>COUNT(E:E),"",INDEX(A:A,SMALL(E:E,ROWS($1:1))))
> Copy E2:F2 down to cover the max expected extent of source data, eg down to
> F100. Hide/minimize col E. Col F returns the desired results (ie the project
> codes associated with the name input in D2), all neatly packed at the top.
> Inspiring? hit the YES below
> --
> Max
> Singapore
> ---
> "UKMAN" wrote:
> > I have a simple 1000 row table and I am interested in only the data in the
> > columns shown below.
> >
> > Proj Code Name
> >
> > PC01 colin
> > PC01 fred jones
> >
> >
> > the project Code column data can change and a name is shown against ONLY if
> > associated with that proj code.
> >
> > I am producing a report that has a lookup cell to select the name and then
> > automatically it will return all the Proj Codes that name is shown against.
> >
> > I can get it to select the first match but not go down all the rows

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      28th Apr 2010
The ranges used have to be the same size: DN$5:$DN$1020 vs $DV:$DV
And it's better to use ROWS($1:1) to replace the row sensitive ROW()

This set using (your) explicit ranges should work fine for you
Input for the name = DW5
Criteria
In DV5: =IF($DW$5="","",IF($DW$5=DO5,ROWS($1:1),""))

Extract & Float-up Results:
In say, DQ5:
=IF(ROWS($1:1)>COUNT($DV$5:$DV$1020),"",INDEX($DN$5:$DN$1020,SMALL($DV$5:$DV$1020,ROWS($1:1))))
Copy DV5 and DQ5 down to row 1020. Joy? hit the YES below
--
Max
Singapore
---
"UKMAN" wrote:
> Max,
>
> many thanks and I got your verison to work tso to understand the formulas BUT
>
> your "E" I changed to "=IF($DW$5="","",IF($DW$5=DO5,ROW(),""))"
> Your "F" I changed to
> "=IF(ROWS($1:1)>COUNT($DV:$DV),"",INDEX($DN$5:$DN$1020,SMALL($DV:$DV,ROWS($1:1))))"
>
> this is to reflect the layout I get a "10" in "DV10" and "#N/A" in "DW10" ??
>
> what have I done wrong please????


 
Reply With Quote
 
UKMAN
Guest
Posts: n/a
 
      29th Apr 2010
Max,

sorry for slow reply but away yesterday

works a dream, I amednded the cell ranges etc.

You are a star

UKMAN

"Max" wrote:

> The ranges used have to be the same size: DN$5:$DN$1020 vs $DV:$DV
> And it's better to use ROWS($1:1) to replace the row sensitive ROW()
>
> This set using (your) explicit ranges should work fine for you
> Input for the name = DW5
> Criteria
> In DV5: =IF($DW$5="","",IF($DW$5=DO5,ROWS($1:1),""))
>
> Extract & Float-up Results:
> In say, DQ5:
> =IF(ROWS($1:1)>COUNT($DV$5:$DV$1020),"",INDEX($DN$5:$DN$1020,SMALL($DV$5:$DV$1020,ROWS($1:1))))
> Copy DV5 and DQ5 down to row 1020. Joy? hit the YES below
> --
> Max
> Singapore
> ---
> "UKMAN" wrote:
> > Max,
> >
> > many thanks and I got your verison to work tso to understand the formulas BUT
> >
> > your "E" I changed to "=IF($DW$5="","",IF($DW$5=DO5,ROW(),""))"
> > Your "F" I changed to
> > "=IF(ROWS($1:1)>COUNT($DV:$DV),"",INDEX($DN$5:$DN$1020,SMALL($DV:$DV,ROWS($1:1))))"
> >
> > this is to reflect the layout I get a "10" in "DV10" and "#N/A" in "DW10" ??
> >
> > what have I done wrong please????

>

 
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
colating multi rows of data into single rows - no to pivot tables! UKMAN Microsoft Excel Worksheet Functions 4 12th Mar 2010 04:11 PM
Re: new table from same data as report Jeff Boyce Microsoft Access Database Table Design 2 23rd Nov 2009 05:56 PM
Report returning table ID, not actual table data Dan231 Microsoft Access Reports 15 13th Dec 2007 04:51 PM
Report getting data from table. randall.phillips@charter.net Microsoft Access Reports 2 19th Jun 2006 01:43 PM
Getting data in a report from a second table? John O'Boyle Microsoft Access Reports 1 13th Jan 2005 12:24 AM


Features
 

Advertising
 

Newsgroups
 


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