Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 87
Default Referencing A Non Consecutive Range?

I have a single column of data AJ11:AJ58 which contains a formula that
results in OPEN or CLOSED. I need to reference this column in multiple
formulas as well as in the X Axis of a chart.

Not only do these values change, but they are also not necessarialy
consecutive.

For example, one pass results in a range of OPEN cells (which is what I need
to reference) of AJ25:AJ52 and another common pass results in
AJ11:AJ12,AJ21:AJ58.

Is there a way to name this dynamic range so I can reference it as described?

Obviously, the big problem is ranges like AJ11:AJ12,AJ21:AJ58. I can't
figure out how to use a range like this in an IF statement. I also tried
naming those addresses as a range and then named a range that referenced it,
but that didn't work...

I'm running out of options and looking at a deadline - Can you say "Panic"?

Thanks for your help!
Ray
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Referencing A Non Consecutive Range?

Referenced in what way?

The number of cells displaying "Open":
=COUNTIF(AJ11:AJ58,"Open")

The total of values in an adjoining column:

=SUMIF(AJ11:AJ58,"Open",AK11:AK58)

Just what exactly are you looking to accomplish?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"RayportingMonkey" wrote in
message ...
I have a single column of data AJ11:AJ58 which contains a formula that
results in OPEN or CLOSED. I need to reference this column in multiple
formulas as well as in the X Axis of a chart.

Not only do these values change, but they are also not necessarialy
consecutive.

For example, one pass results in a range of OPEN cells (which is what I

need
to reference) of AJ25:AJ52 and another common pass results in
AJ11:AJ12,AJ21:AJ58.

Is there a way to name this dynamic range so I can reference it as

described?

Obviously, the big problem is ranges like AJ11:AJ12,AJ21:AJ58. I can't
figure out how to use a range like this in an IF statement. I also tried
naming those addresses as a range and then named a range that referenced

it,
but that didn't work...

I'm running out of options and looking at a deadline - Can you say

"Panic"?

Thanks for your help!
Ray


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 103
Default Referencing A Non Consecutive Range?

RayportingMonkey;

You need to provide more data. You don't have a single column, You have a
calculated column so you have at least three.

Calculating to open or closed. You could add another column that says

=If(a1="Open","open","")

Drag it down the column relative to the results and this will give you only
"open" and then you can =countif() or =lookup(). You could also try the
following

=IF(LOOKUP(G1,A1:A12)="open",COUNTIF(A1:A12,"open" ),"")

Where G1 contains the default information that you are looking for.

I hope this helps

God Bless

Frank Pytel
"RayportingMonkey" wrote:

I have a single column of data AJ11:AJ58 which contains a formula that
results in OPEN or CLOSED. I need to reference this column in multiple
formulas as well as in the X Axis of a chart.

Not only do these values change, but they are also not necessarialy
consecutive.

For example, one pass results in a range of OPEN cells (which is what I need
to reference) of AJ25:AJ52 and another common pass results in
AJ11:AJ12,AJ21:AJ58.

Is there a way to name this dynamic range so I can reference it as described?

Obviously, the big problem is ranges like AJ11:AJ12,AJ21:AJ58. I can't
figure out how to use a range like this in an IF statement. I also tried
naming those addresses as a range and then named a range that referenced it,
but that didn't work...

I'm running out of options and looking at a deadline - Can you say "Panic"?

Thanks for your help!
Ray

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 87
Default Referencing A Non Consecutive Range?

Have you ever had one of those moments when you realize that you have over
analyzed and probably complicated the situation?

I solved this by naming a three ranges.

Range 1 contains an IF statement that picks range 2 or 3

Range 2 is my consecutive range

Range 3 is a seperate location on my worksheet where I made a new
consecutive range that skips the items that made up the break in my
nonconsecutive range.

All is good and I am still employed!

Thanks for your assistance!

"Frank Pytel" wrote:

RayportingMonkey;

You need to provide more data. You don't have a single column, You have a
calculated column so you have at least three.

Calculating to open or closed. You could add another column that says

=If(a1="Open","open","")

Drag it down the column relative to the results and this will give you only
"open" and then you can =countif() or =lookup(). You could also try the
following

=IF(LOOKUP(G1,A1:A12)="open",COUNTIF(A1:A12,"open" ),"")

Where G1 contains the default information that you are looking for.

I hope this helps

God Bless

Frank Pytel
"RayportingMonkey" wrote:

I have a single column of data AJ11:AJ58 which contains a formula that
results in OPEN or CLOSED. I need to reference this column in multiple
formulas as well as in the X Axis of a chart.

Not only do these values change, but they are also not necessarialy
consecutive.

For example, one pass results in a range of OPEN cells (which is what I need
to reference) of AJ25:AJ52 and another common pass results in
AJ11:AJ12,AJ21:AJ58.

Is there a way to name this dynamic range so I can reference it as described?

Obviously, the big problem is ranges like AJ11:AJ12,AJ21:AJ58. I can't
figure out how to use a range like this in an IF statement. I also tried
naming those addresses as a range and then named a range that referenced it,
but that didn't work...

I'm running out of options and looking at a deadline - Can you say "Panic"?

Thanks for your help!
Ray

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
Dynamic Non Consecutive Named Range? RayportingMonkey Excel Worksheet Functions 0 August 31st 07 04:26 PM
Referencing a named range based upon Range name entry in cell Barb Reinhardt Excel Worksheet Functions 14 June 20th 07 07:19 PM
Greatest difference between a consecutive range of dates Hugsie Bear Excel Discussion (Misc queries) 4 July 27th 06 11:50 AM
How to drag and autofill a non consecutive range of cells? PH Excel Discussion (Misc queries) 1 March 9th 06 07:48 PM
count the # of consecutive negative #'s in a range newToExcel Excel Discussion (Misc queries) 5 November 13th 05 01:14 AM


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