Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Find contents of the last cell in a row

I'm trying to create a fn that will give me the contents of the last cell in
specific rows. The column of that cell differs by row, unfortunately, and
occasionally the content is '0', which I would need to have as a result of
the formula. Any assistance would be greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 380
Default Find contents of the last cell in a row

=INDEX(A1:A10,MAX(IF(A1:A10<"",ROW(A1:A10))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"OCONUS" wrote in message
...
I'm trying to create a fn that will give me the contents of the last cell

in
specific rows. The column of that cell differs by row, unfortunately, and
occasionally the content is '0', which I would need to have as a result of
the formula. Any assistance would be greatly appreciated. Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Find contents of the last cell in a row

This is giving me some strange results... Here's an example of what I'm
looking for.

a b c d e
One 4 5 6
Two 4 5 6 7
Three 3 2 1 0
Four 2 1 0

For row "One" I would need "6", Two "7", Three "0", Four "0".

Thanks again.

"Bob Phillips" wrote:

=INDEX(A1:A10,MAX(IF(A1:A10<"",ROW(A1:A10))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"OCONUS" wrote in message
...
I'm trying to create a fn that will give me the contents of the last cell

in
specific rows. The column of that cell differs by row, unfortunately, and
occasionally the content is '0', which I would need to have as a result of
the formula. Any assistance would be greatly appreciated. Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Find contents of the last cell in a row

Try this

=LOOKUP(9.99999999999999E+307,$A1:$D1)

"OCONUS" wrote:

This is giving me some strange results... Here's an example of what I'm
looking for.

a b c d e
One 4 5 6
Two 4 5 6 7
Three 3 2 1 0
Four 2 1 0

For row "One" I would need "6", Two "7", Three "0", Four "0".

Thanks again.

"Bob Phillips" wrote:

=INDEX(A1:A10,MAX(IF(A1:A10<"",ROW(A1:A10))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"OCONUS" wrote in message
...
I'm trying to create a fn that will give me the contents of the last cell

in
specific rows. The column of that cell differs by row, unfortunately, and
occasionally the content is '0', which I would need to have as a result of
the formula. Any assistance would be greatly appreciated. Thanks.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Find contents of the last cell in a row

I believe Bob may have misread the question.

Try this also as an array function.

=INDEX(A1:M1,MAX(IF(A1:M1<"",COLUMN(A1:M1))))


Gord Dibben MS Excel MVP

On Mon, 18 Sep 2006 06:46:02 -0700, OCONUS
wrote:

This is giving me some strange results... Here's an example of what I'm
looking for.

a b c d e
One 4 5 6
Two 4 5 6 7
Three 3 2 1 0
Four 2 1 0

For row "One" I would need "6", Two "7", Three "0", Four "0".

Thanks again.

"Bob Phillips" wrote:

=INDEX(A1:A10,MAX(IF(A1:A10<"",ROW(A1:A10))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"OCONUS" wrote in message
...
I'm trying to create a fn that will give me the contents of the last cell

in
specific rows. The column of that cell differs by row, unfortunately, and
occasionally the content is '0', which I would need to have as a result of
the formula. Any assistance would be greatly appreciated. Thanks.





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
Cell contents to refrenence cells slowjam4 Excel Worksheet Functions 0 September 7th 06 05:02 PM
Selectively Clearing cell contents jdd Excel Worksheet Functions 2 April 22nd 06 04:06 AM
Returning Cell Value if someone deletes the contents of a cell mmc308 Excel Worksheet Functions 4 March 31st 06 06:41 PM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


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