Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default find cell address of first non empty cell in a row

I'm trying to find the cell address of the first non-empty cell in a row.

This formula gives me the the position within the range of the first non
empty cell but not the cell address

=MATCH(TRUE,H16:AB16<"",0)

it simply returns and interger such as 4 when the fourth cell in the range
is the first non empty cell.

somehow I need to take that and convert it into a cell address

Thanks,

--
Billy Rogers

Dallas,TX

Currently Using SQL Server 2000, Office 2000 and Office 2003
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default find cell address of first non empty cell in a row

Something like

=IF(COUNTA(H16:AB16)0,ADDRESS(16,MATCH(TRUE,H16:A B16<"",0)+7,4,TRUE),"-")

entered as an array formula with Ctrl+Shift+Enter rather than just enter.

Worked for me.

--
Regards,
Tom Ogilvy




"BillyRogers" wrote:

I'm trying to find the cell address of the first non-empty cell in a row.

This formula gives me the the position within the range of the first non
empty cell but not the cell address

=MATCH(TRUE,H16:AB16<"",0)

it simply returns and interger such as 4 when the fourth cell in the range
is the first non empty cell.

somehow I need to take that and convert it into a cell address

Thanks,

--
Billy Rogers

Dallas,TX

Currently Using SQL Server 2000, Office 2000 and Office 2003

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 284
Default find cell address of first non empty cell in a row

There is probably an easier way but the example below would give you the
address for the first non empty cell in row 5.

________________________________

intRow = 5
If Not Cells(intRow, 1).Text = "" Then
addyRight = Cells(intRow, 1).Address
Else
addyRight = Cells(intRow, 1).End(xlToRight).Address
End If
MsgBox addyRight
__________________________________

Steve



"BillyRogers" wrote in message
...
I'm trying to find the cell address of the first non-empty cell in a row.

This formula gives me the the position within the range of the first non
empty cell but not the cell address

=MATCH(TRUE,H16:AB16<"",0)

it simply returns and interger such as 4 when the fourth cell in the range
is the first non empty cell.

somehow I need to take that and convert it into a cell address

Thanks,

--
Billy Rogers

Dallas,TX

Currently Using SQL Server 2000, Office 2000 and Office 2003



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default find cell address of first non empty cell in a row

Hi Tom.

From the italian NG by fernando cinquegrani:


=INDIRIZZO(16;CONFRONTA("x";A16:O16 & "x";0))

I beg you pardon, but we have no news of Norman Jones from July, 15.
Have you some notice of our friend ?
Excuse me for the trouble and for my poor english. Thanks in advance
Eliano


On 7 Set, 23:06, Tom Ogilvy
wrote:
Something like

=IF(COUNTA(H16:AB16)0,ADDRESS(16,MATCH(TRUE,H16:A B16<"",0)+7,4,TRUE),"-")

entered as an array formula with Ctrl+Shift+Enter rather than just enter.

Worked for me.

--
Regards,
Tom Ogilvy



"BillyRogers" wrote:
I'm trying to find the cell address of the first non-empty cell in a row.


This formula gives me the the position within the range of the first non
empty cell but not the cell address


=MATCH(TRUE,H16:AB16<"",0)


it simply returns and interger such as 4 when the fourth cell in the range
is the first non empty cell.


somehow I need to take that and convert it into a cell address


Thanks,


--
Billy Rogers


Dallas,TX


Currently Using SQL Server 2000, Office 2000 and Office 2003- Nascondi testo tra virgolette -


- Mostra testo tra virgolette -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default find cell address of first non empty cell in a row

On 8 Set, 04:21, eliano wrote:

Sorry Tom.
Obviously:

=INDIRIZZO(16;CONFRONTA("x";H16:AB16 & "x";0)+7)

INDIRIZZO = ADDRESS
CONFRONTA = MATCH
Formula Array
(;) = (,)

Regards
Eliano

Hi Tom.

From the italian NG by fernando cinquegrani:


=INDIRIZZO(16;CONFRONTA("x";A16:O16 & "x";0))

I beg you pardon, but we have no news of Norman Jones from July, 15.
Have you some notice of our friend ?
Excuse me for the trouble and for my poor english. Thanks in advance
Eliano

On 7 Set, 23:06, Tom Ogilvy
wrote:



Something like


=IF(COUNTA(H16:AB16)0,ADDRESS(16,MATCH(TRUE,H16:A B16<"",0)+7,4,TRUE),"-")


entered as an array formula with Ctrl+Shift+Enter rather than just enter.


Worked for me.


--
Regards,
Tom Ogilvy


"BillyRogers" wrote:
I'm trying to find the cell address of the first non-empty cell in a row.


This formula gives me the the position within the range of the first non
empty cell but not the cell address


=MATCH(TRUE,H16:AB16<"",0)


it simply returns and interger such as 4 when the fourth cell in the range
is the first non empty cell.


somehow I need to take that and convert it into a cell address


Thanks,


--
Billy Rogers


Dallas,TX


Currently Using SQL Server 2000, Office 2000 and Office 2003- Nascondi testo tra virgolette -


- Mostra testo tra virgolette -- Nascondi testo tra virgolette -


- Mostra testo tra virgolette -



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
code to go down a column and find the last cell with data before an empty cell Steve G Excel Programming 1 July 23rd 07 08:22 AM
find first empty cell in column and start transpose next row in that cell ali Excel Discussion (Misc queries) 6 July 21st 07 11:55 PM
find first empty cell in column and start transpose next row in that cell ali Excel Programming 3 July 21st 07 03:12 PM
Cell Address, Last Non Empty Cell Filo Excel Programming 4 March 31st 07 10:02 PM


All times are GMT +1. The time now is 04:07 AM.

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"