Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Formula to return the reference of a range of cells

I need to build a formula that finds a text reference in a vertical
list, e.g finds "Feb" in a list of months. Having found the text, I
need the formula to return in text format the cell references of a
range of a cells located in the same row as the found text and
immediately to the left, e.g if "Feb" is found in cell A2 the formula
would return the range reference (not the values) of the next 10 cells
in the same row, in this case, A3:J2

I've been looking at Address, Index, Match etc. but I can't figure it
out.

I'd appreciate any suggestions.

Bob
Nottingham UK
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Formula to return the reference of a range of cells

Hi Bob,

Your question is not too precise. Is "Feb" the result of a formatted date or is it a text value? And lots more of questions.
Post back with exact details of what you did, your formulas, values, expected results and what you got instead, etc.
In the meantime, look he

http://www.cpearson.com/excel/TablesAndLookups.aspx

and make sure you look at all the details that might have to do with your case

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tiptoe" wrote in message ...
|I need to build a formula that finds a text reference in a vertical
| list, e.g finds "Feb" in a list of months. Having found the text, I
| need the formula to return in text format the cell references of a
| range of a cells located in the same row as the found text and
| immediately to the left, e.g if "Feb" is found in cell A2 the formula
| would return the range reference (not the values) of the next 10 cells
| in the same row, in this case, A3:J2
|
| I've been looking at Address, Index, Match etc. but I can't figure it
| out.
|
| I'd appreciate any suggestions.
|
| Bob
| Nottingham UK


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Formula to return the reference of a range of cells

On Feb 16, 10:05 pm, "Niek Otten" wrote:
Hi Bob,

Your question is not too precise. Is "Feb" the result of a formatted date or is it a text value? And lots more of questions.
Post back with exact details of what you did, your formulas, values, expected results and what you got instead, etc.
In the meantime, look he

http://www.cpearson.com/excel/TablesAndLookups.aspx

and make sure you look at all the details that might have to do with your case

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tiptoe" wrote in ...

|I need to build a formula that finds a text reference in a vertical
| list, e.g finds "Feb" in a list of months. Having found the text, I
| need the formula to return in text format the cell references of a
| range of a cells located in the same row as the found text and
| immediately to the left, e.g if "Feb" is found in cell A2 the formula
| would return the range reference (not the values) of the next 10 cells
| in the same row, in this case, A3:J2
|
| I've been looking at Address, Index, Match etc. but I can't figure it
| out.
|
| I'd appreciate any suggestions.
|
| Bob
| Nottingham UK


Nick,

My ultimate aim is to build a chart that refers to values in a range
of cells held in a row on another worksheet. Normally this would be
straightforward by manually editing the source data in the chart and
pointing to the range of cells. However, over time the range of cells
used to provide the values for the chart will change and I am looking
for a method that will do this automatically.

I thought if I could produce a formula that identifies the cells when
the change I could simply paste that formula into the Chart's source
data values field. Of course, I've tried it but it will not accept it.

For example, where the source worksheet is named Data Sheet(2) and the
range of cell are $AI$8:$BB$8 I've come up with a formula that returns
the cell range:

=ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,35) & ":"&
ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,54)

This returns: $AI$8:$BB$8

Pasting the formula in the chart source data values field did not
work, I then tried:

= 'Data Sheet'! & ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!
AH7:AH18,0)+6,35) & ":"& ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!
AH7:AH18,0)+6,54)

No luck with this either.

Hope this makes sense to you as it's driving me crazy!

Bob




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula to return the reference of a range of cells

"tiptoe" wrote in message
...
On Feb 16, 10:05 pm, "Niek Otten" wrote:
Hi Bob,

Your question is not too precise. Is "Feb" the result of a formatted date
or is it a text value? And lots more of questions.
Post back with exact details of what you did, your formulas, values,
expected results and what you got instead, etc.
In the meantime, look he

http://www.cpearson.com/excel/TablesAndLookups.aspx

and make sure you look at all the details that might have to do with your
case

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"tiptoe" wrote in
...

|I need to build a formula that finds a text reference in a vertical
| list, e.g finds "Feb" in a list of months. Having found the text, I
| need the formula to return in text format the cell references of a
| range of a cells located in the same row as the found text and
| immediately to the left, e.g if "Feb" is found in cell A2 the formula
| would return the range reference (not the values) of the next 10 cells
| in the same row, in this case, A3:J2
|
| I've been looking at Address, Index, Match etc. but I can't figure it
| out.
|
| I'd appreciate any suggestions.
|
| Bob
| Nottingham UK


Nick,

My ultimate aim is to build a chart that refers to values in a range
of cells held in a row on another worksheet. Normally this would be
straightforward by manually editing the source data in the chart and
pointing to the range of cells. However, over time the range of cells
used to provide the values for the chart will change and I am looking
for a method that will do this automatically.

I thought if I could produce a formula that identifies the cells when
the change I could simply paste that formula into the Chart's source
data values field. Of course, I've tried it but it will not accept it.

For example, where the source worksheet is named Data Sheet(2) and the
range of cell are $AI$8:$BB$8 I've come up with a formula that returns
the cell range:

=ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,35) & ":"&
ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,54)

This returns: $AI$8:$BB$8

Pasting the formula in the chart source data values field did not
work, I then tried:

= 'Data Sheet'! & ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!
AH7:AH18,0)+6,35) & ":"& ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!
AH7:AH18,0)+6,54)

No luck with this either.

Hope this makes sense to you as it's driving me crazy!

Bob


I don't think you can do it the way you're trying to but it sounds like you
could do it using dynamic data sources.

Everything you always wanted to know about charts and then some:

http://PeltierTech.com

--
Biff
Microsoft Excel MVP


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Formula to return the reference of a range of cells

On Feb 16, 9:10 pm, tiptoe wrote:
I need to build a formula that finds a text reference in a vertical
list, e.g finds "Feb" in a list of months. Having found the text, I
need the formula to return in text format the cell references of a
range of a cells located in the same row as the found text and
immediately to the left, e.g if "Feb" is found in cell A2 the formula
would return the range reference (not the values) of the next 10 cells
in the same row, in this case, A3:J2

I've been looking at Address, Index, Match etc. but I can't figure it
out.

I'd appreciate any suggestions.

Bob
Nottingham UK


Got this to work:

ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,35) & ":"&
ADDRESS(MATCH(eurosdate,'Data Sheet (2)'!AH7:AH18,0)+6,54)

In my worksheet this returns $AA$8:$BB$8



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
PLEASE HELP!! FORMULA TO RETURN A SHEETS NAME/REFERENCE. Chaz Excel Worksheet Functions 4 July 27th 07 06:14 AM
getting a formula to return the reference of a cell CB Excel Worksheet Functions 8 February 17th 07 09:25 PM
Formula using 2 points of reference to return a value from a table MrvinGover Excel Worksheet Functions 6 December 2nd 05 08:36 PM
ADD A RETURN BUTTON WHEN GOING TO FORMULA REFERENCE LINKS KJSacramento New Users to Excel 0 November 8th 05 04:12 PM
How do I return the highest value in a range of cells pjs83 Excel Worksheet Functions 5 July 6th 05 09:25 PM


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