Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Drop-down list of data meeting criteria

Bernie provided a tip in another post exactly like my situation, and I tried
to apply his formula but cannot get it to work.

I have a list of people in Column A on a sheet called Termd.
In column E of that same sheet is a status of Voluntary or Involuntary.

On a sheet called Plans, I need to setup a list of just the Involuntary
people in column Q without having to apply a filter or use any macros, so an
array is the way to go. My goal is to then create a dynamic named range from
this list so that on another sheet I can have a drop-down data validation
list of just the Involuntary people.

Since my data on Termd begins in row 4, I set up the Involuntary list
starting at Plans!Q4.
Here's my failed attempt which results in an answer of zero.

=IF(COUNTA(Termd!$A$4:$E$103)=ROW()-ROW($A$4)+1, INDIRECT("Termd!" &
ADDRESS(LARGE((Termd!$E$4:$E$103<"Voluntary")*ROW (Termd!$E$4:$E$103),
COUNTA(Termd!$E$4:$E$103)+ROW($A$4)-ROW()), COLUMN()-COLUMN($Q$4)+1)),"")

Help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Drop-down list of data meeting criteria

I believe this will work, I tried to setup a duplicate workbook at you
described:

=IF(COUNTIF(Termd!$E$4:$E$103,"Involuntary")=ROW( )-ROW($A$4)+1,INDIRECT("Termd!"&ADDRESS(LARGE((Termd !$E$4:$E$103="Involuntary")*ROW(Termd!$E$4:$E$103) ,COUNTIF(Termd!$E$4:$E$103,"Involuntary")-ROW()+4),COLUMN()-COLUMN($Q$4)+1)),"")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KC Rippstein" wrote:

Bernie provided a tip in another post exactly like my situation, and I tried
to apply his formula but cannot get it to work.

I have a list of people in Column A on a sheet called Termd.
In column E of that same sheet is a status of Voluntary or Involuntary.

On a sheet called Plans, I need to setup a list of just the Involuntary
people in column Q without having to apply a filter or use any macros, so an
array is the way to go. My goal is to then create a dynamic named range from
this list so that on another sheet I can have a drop-down data validation
list of just the Involuntary people.

Since my data on Termd begins in row 4, I set up the Involuntary list
starting at Plans!Q4.
Here's my failed attempt which results in an answer of zero.

=IF(COUNTA(Termd!$A$4:$E$103)=ROW()-ROW($A$4)+1, INDIRECT("Termd!" &
ADDRESS(LARGE((Termd!$E$4:$E$103<"Voluntary")*ROW (Termd!$E$4:$E$103),
COUNTA(Termd!$E$4:$E$103)+ROW($A$4)-ROW()), COLUMN()-COLUMN($Q$4)+1)),"")

Help?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Drop-down list of data meeting criteria

YES!!! Thank you!!
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"Luke M" wrote:

I believe this will work, I tried to setup a duplicate workbook at you
described:

=IF(COUNTIF(Termd!$E$4:$E$103,"Involuntary")=ROW( )-ROW($A$4)+1,INDIRECT("Termd!"&ADDRESS(LARGE((Termd !$E$4:$E$103="Involuntary")*ROW(Termd!$E$4:$E$103) ,COUNTIF(Termd!$E$4:$E$103,"Involuntary")-ROW()+4),COLUMN()-COLUMN($Q$4)+1)),"")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KC Rippstein" wrote:

Bernie provided a tip in another post exactly like my situation, and I tried
to apply his formula but cannot get it to work.

I have a list of people in Column A on a sheet called Termd.
In column E of that same sheet is a status of Voluntary or Involuntary.

On a sheet called Plans, I need to setup a list of just the Involuntary
people in column Q without having to apply a filter or use any macros, so an
array is the way to go. My goal is to then create a dynamic named range from
this list so that on another sheet I can have a drop-down data validation
list of just the Involuntary people.

Since my data on Termd begins in row 4, I set up the Involuntary list
starting at Plans!Q4.
Here's my failed attempt which results in an answer of zero.

=IF(COUNTA(Termd!$A$4:$E$103)=ROW()-ROW($A$4)+1, INDIRECT("Termd!" &
ADDRESS(LARGE((Termd!$E$4:$E$103<"Voluntary")*ROW (Termd!$E$4:$E$103),
COUNTA(Termd!$E$4:$E$103)+ROW($A$4)-ROW()), COLUMN()-COLUMN($Q$4)+1)),"")

Help?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Drop-down list of data meeting criteria

OK, so now my dynamic named range seems to work fine:
=offset(Plans!$Q$4,0,0,sumproduct(--(Plans!$Q$4:$Q$103<"")),1)

But when I go to another tab and use data validation to show just the
entries in that dynamic range as a drop down list, something weird happens.
The first row available has all appropriate values in the drop down. The
second row drop down erases the last available entry from my dynamic range,
and each subsequent row is missing one more list item.

So let's say my array winds up with 2 entries: Alpha and Beta. On another
tab, I want to point to that array as a dynamic range so that a drop down
list shows just those 2 entries. I assign column A to a data validation
limited to that dynamic range. In A4, both Alpha and Beta show up. In A5,
only Alpha shows up in the drop down, then in A6, nothing is available in the
drop down.

Any idea why?



"Luke M" wrote:

I believe this will work, I tried to setup a duplicate workbook at you
described:

=IF(COUNTIF(Termd!$E$4:$E$103,"Involuntary")=ROW( )-ROW($A$4)+1,INDIRECT("Termd!"&ADDRESS(LARGE((Termd !$E$4:$E$103="Involuntary")*ROW(Termd!$E$4:$E$103) ,COUNTIF(Termd!$E$4:$E$103,"Involuntary")-ROW()+4),COLUMN()-COLUMN($Q$4)+1)),"")
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KC Rippstein" wrote:

Bernie provided a tip in another post exactly like my situation, and I tried
to apply his formula but cannot get it to work.

I have a list of people in Column A on a sheet called Termd.
In column E of that same sheet is a status of Voluntary or Involuntary.

On a sheet called Plans, I need to setup a list of just the Involuntary
people in column Q without having to apply a filter or use any macros, so an
array is the way to go. My goal is to then create a dynamic named range from
this list so that on another sheet I can have a drop-down data validation
list of just the Involuntary people.

Since my data on Termd begins in row 4, I set up the Involuntary list
starting at Plans!Q4.
Here's my failed attempt which results in an answer of zero.

=IF(COUNTA(Termd!$A$4:$E$103)=ROW()-ROW($A$4)+1, INDIRECT("Termd!" &
ADDRESS(LARGE((Termd!$E$4:$E$103<"Voluntary")*ROW (Termd!$E$4:$E$103),
COUNTA(Termd!$E$4:$E$103)+ROW($A$4)-ROW()), COLUMN()-COLUMN($Q$4)+1)),"")

Help?

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
count occurences meeting criteria geebee Excel Worksheet Functions 8 July 17th 08 05:09 PM
Sum within a date range meeting one other criteria [email protected] Excel Worksheet Functions 3 January 28th 07 04:53 AM
calculation based on meeting two criteria jerry Excel Discussion (Misc queries) 2 October 7th 05 12:35 AM
how do i get "DGET" to take the first data meeting the criteria? Yardarm1 Excel Worksheet Functions 3 June 9th 05 08:21 AM
COUNTIF MEETING TWO CRITERIA eg>5 AND <10.1 John Higgins Excel Worksheet Functions 2 December 22nd 04 01:19 AM


All times are GMT +1. The time now is 12:46 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"