Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default cell address for first value to appear in a range

Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.

=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. How can I get that cell address returned?

Thanks.

Dave
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default cell address for first value to appear in a range

Sorry, if you know the range, don't you already know the first cell
address?

Or do I not understand what you need.

Does this work?

=ADDRESS(ROW(H5),COLUMN(INDEX(H5:S5,1,1)))

or

=ADDRESS(ROW(H5),COLUMN(H5))


HTH,
JP

On Mar 19, 1:02*pm, Dave F wrote:
Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.

=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. *How can I get that cell address returned?

Thanks.

Dave


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default cell address for first value to appear in a range

I don't think you understand my question. The first cell in that
range that has a value in it is K5. I want to know how to return that
address.

On Mar 19, 1:14*pm, JP wrote:
Sorry, if you know the range, don't you already know the first cell
address?

Or do I not understand what you need.

Does this work?

=ADDRESS(ROW(H5),COLUMN(INDEX(H5:S5,1,1)))

or

=ADDRESS(ROW(H5),COLUMN(H5))

HTH,
JP

On Mar 19, 1:02*pm, Dave F wrote:



Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.


=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. *How can I get that cell address returned?


Thanks.


Dave- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default cell address for first value to appear in a range

Let me try to make this more concrete.

Given the range H5:S5, how do I return the cell address of the first
cell in that range to contain a value?

Here's an example of the data:

H5 | I5 | J5 | K5 | L5 | M5 | N5 | O5 | P5 | Q5 | R5 | S5
1 3 5 6 3

I want to get Excel to return the address K5, as that is the first
cell, from left to right, in the range H5:S5, that has data in it.

Hopefully this is more clear.

Thanks,

Dave


On Mar 19, 1:27*pm, Dave F wrote:
I don't think you understand my question. *The first cell in that
range that has a value in it is K5. *I want to know how to return that
address.

On Mar 19, 1:14*pm, JP wrote:



Sorry, if you know the range, don't you already know the first cell
address?


Or do I not understand what you need.


Does this work?


=ADDRESS(ROW(H5),COLUMN(INDEX(H5:S5,1,1)))


or


=ADDRESS(ROW(H5),COLUMN(H5))


HTH,
JP


On Mar 19, 1:02*pm, Dave F wrote:


Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.


=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. *How can I get that cell address returned?


Thanks.


Dave- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 187
Default cell address for first value to appear in a range

On Mar 19, 1:43*pm, Dave F wrote:
Let me try to make this more concrete.

Given the range H5:S5, how do I return the cell address of the first
cell in that range to contain a value?

Here's an example of the data:

H5 | I5 | J5 | K5 | L5 | M5 | N5 | O5 | P5 | Q5 | R5 | S5
* * * * * * * * * *1 * * 3 * *5 * * *6 * *3

I want to get Excel to return the address K5, as that is the first
cell, from left to right, in the range H5:S5, that has data in it.

Hopefully this is more clear.

Thanks,

Dave

On Mar 19, 1:27*pm, Dave F wrote:



I don't think you understand my question. *The first cell in that
range that has a value in it is K5. *I want to know how to return that
address.


On Mar 19, 1:14*pm, JP wrote:


Sorry, if you know the range, don't you already know the first cell
address?


Or do I not understand what you need.


Does this work?


=ADDRESS(ROW(H5),COLUMN(INDEX(H5:S5,1,1)))


or


=ADDRESS(ROW(H5),COLUMN(H5))


HTH,
JP


On Mar 19, 1:02*pm, Dave F wrote:


Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.


=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. *How can I get that cell address returned?


Thanks.


Dave- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


OK, I answered this question on my own...something like
=CELL("address",OFFSET(I5,,(MATCH(1,--(I5:T50),0)-1))) entered as an
array returns the cell address.

Thanks,

Dave


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default cell address for first value to appear in a range

On Wed, 19 Mar 2008 10:02:04 -0700 (PDT), Dave F wrote:

Given the range H5:S5, how can I have Excel return the cell address of
the first value that appears in that range.

=MATCH(1,--(H5:S50),0) entered as an array formula returns 4; this
value is in cell K5. How can I get that cell address returned?

Thanks.

Dave



=ADDRESS(ROW(H5:S5),COLUMN(H5:S5)-1+MATCH(TRUE,len(H5:S5)0,0))

entered as an **array** formula.

It could be simplified to:

=ADDRESS(ROW(H5),COLUMN(H5)-1+MATCH(TRUE,len(H5:S5)0,0))

or even:

=ADDRESS(5,7+MATCH(TRUE,len(H5:S5)0,0))


depending on your specific requirements.
--ron
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
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
How to find the address of the min cell within a range Will Excel Worksheet Functions 2 May 17th 07 08:45 PM
Need ability to get cell address of max value in range Michael Turnbeaugh Excel Worksheet Functions 11 September 25th 06 06:43 PM
Cell address in a range starguy Excel Discussion (Misc queries) 7 May 3rd 06 11:58 AM
cell address rather than range name Angi Bemiss Excel Discussion (Misc queries) 1 December 1st 05 12:46 AM


All times are GMT +1. The time now is 03:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"