Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Formula referencing a changing range??

I have a workbook that has several tabs. I'm only working with 2 for the
problem that I'm having though. The first tab, which holds all my data, is
called Marketing Letters. The 2nd tab is called Status. On the Status tab,
I have a cell (A5) which looks to another cell (A1) on the same tab, then
returns matching values (in multiple rows) from the Marketing Letters tab.

Here is my formula:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing Letters'!$B$1:$B$300)),ROW(1:1)),2)

This works great, however...I am constantly adding data to the Marketing
Letters tab. Currently there's 300 rows, but tomorrow it could be 305 or by
the end of the week could be 350. Rather than changing my formula on the
status tab each time to reflect how many rows have data on the Marketing
Letters tab, is there a way to have it automatically determine the number of
rows with data?

I tried using the $B:$V, but my formula didn't work with that.

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula referencing a changing range??

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)


Create a dynamic range.

Assuming the data is entered in a contiguous block.

Goto the menu InsertNameDefine
Name: Data
Refers to:

='Marketing Letters'!$B$1:INDEX('Marketing Letters'!$B:$B,COUNTA('Marketing
Letters'!$B:$B))

OK out

Then your formula becomes (array entered):

=INDEX('Marketing Letters'!C:C,SMALL(IF(Data=$A$1,ROW(Data)),ROWS(A$ 1:A1)))

--
Biff
Microsoft Excel MVP


"Stacie2410" wrote in message
...
I have a workbook that has several tabs. I'm only working with 2 for the
problem that I'm having though. The first tab, which holds all my data,
is
called Marketing Letters. The 2nd tab is called Status. On the Status
tab,
I have a cell (A5) which looks to another cell (A1) on the same tab, then
returns matching values (in multiple rows) from the Marketing Letters tab.

Here is my formula:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)

This works great, however...I am constantly adding data to the Marketing
Letters tab. Currently there's 300 rows, but tomorrow it could be 305 or
by
the end of the week could be 350. Rather than changing my formula on the
status tab each time to reflect how many rows have data on the Marketing
Letters tab, is there a way to have it automatically determine the number
of
rows with data?

I tried using the $B:$V, but my formula didn't work with that.

Thanks for your help!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Formula referencing a changing range??

Wow, that's awesome, you're a genius, thank you so much!!!

"T. Valko" wrote:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)


Create a dynamic range.

Assuming the data is entered in a contiguous block.

Goto the menu InsertNameDefine
Name: Data
Refers to:

='Marketing Letters'!$B$1:INDEX('Marketing Letters'!$B:$B,COUNTA('Marketing
Letters'!$B:$B))

OK out

Then your formula becomes (array entered):

=INDEX('Marketing Letters'!C:C,SMALL(IF(Data=$A$1,ROW(Data)),ROWS(A$ 1:A1)))

--
Biff
Microsoft Excel MVP


"Stacie2410" wrote in message
...
I have a workbook that has several tabs. I'm only working with 2 for the
problem that I'm having though. The first tab, which holds all my data,
is
called Marketing Letters. The 2nd tab is called Status. On the Status
tab,
I have a cell (A5) which looks to another cell (A1) on the same tab, then
returns matching values (in multiple rows) from the Marketing Letters tab.

Here is my formula:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)

This works great, however...I am constantly adding data to the Marketing
Letters tab. Currently there's 300 rows, but tomorrow it could be 305 or
by
the end of the week could be 350. Rather than changing my formula on the
status tab each time to reflect how many rows have data on the Marketing
Letters tab, is there a way to have it automatically determine the number
of
rows with data?

I tried using the $B:$V, but my formula didn't work with that.

Thanks for your help!



.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula referencing a changing range??

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Stacie2410" wrote in message
...
Wow, that's awesome, you're a genius, thank you so much!!!

"T. Valko" wrote:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)


Create a dynamic range.

Assuming the data is entered in a contiguous block.

Goto the menu InsertNameDefine
Name: Data
Refers to:

='Marketing Letters'!$B$1:INDEX('Marketing
Letters'!$B:$B,COUNTA('Marketing
Letters'!$B:$B))

OK out

Then your formula becomes (array entered):

=INDEX('Marketing
Letters'!C:C,SMALL(IF(Data=$A$1,ROW(Data)),ROWS(A$ 1:A1)))

--
Biff
Microsoft Excel MVP


"Stacie2410" wrote in message
...
I have a workbook that has several tabs. I'm only working with 2 for
the
problem that I'm having though. The first tab, which holds all my
data,
is
called Marketing Letters. The 2nd tab is called Status. On the Status
tab,
I have a cell (A5) which looks to another cell (A1) on the same tab,
then
returns matching values (in multiple rows) from the Marketing Letters
tab.

Here is my formula:

=INDEX('Marketing Letters'!$B$1:$V$300,SMALL(IF('Marketing
Letters'!$B$1:$B$300=$A$1,ROW('Marketing
Letters'!$B$1:$B$300)),ROW(1:1)),2)

This works great, however...I am constantly adding data to the
Marketing
Letters tab. Currently there's 300 rows, but tomorrow it could be 305
or
by
the end of the week could be 350. Rather than changing my formula on
the
status tab each time to reflect how many rows have data on the
Marketing
Letters tab, is there a way to have it automatically determine the
number
of
rows with data?

I tried using the $B:$V, but my formula didn't work with that.

Thanks for your 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
VLOOKUP and Referencing a Range in a Formula GTblearch Excel Worksheet Functions 2 November 4th 09 03:01 PM
Search formula referencing range of keywords Malvaro Excel Worksheet Functions 5 July 7th 08 03:47 PM
range of Formula copy but not changing the content aw Excel Discussion (Misc queries) 4 November 20th 07 05:00 AM
How do I set up a formula with a changing range in an excel macro cinvic Excel Discussion (Misc queries) 2 April 4th 06 10:39 PM
#VALUE! On An Array Formula Referencing a Range Outside The Workbo paige Excel Discussion (Misc queries) 5 September 9th 05 12:05 AM


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