A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Last "non-blank" value in a Row...



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2009, 10:30 PM posted to microsoft.public.excel.worksheet.functions
Leonhardtk
external usenet poster
 
Posts: 26
Default Last "non-blank" value in a Row...

I've found solutions for finding the last non-blank/non-zero value in a
column, but I couldn't figure out how to convert for a row:

Previously I had five cells to populate (H6-L6). What I need is the last
value that is completed. The first week would only have H6, the next week
I6, etc...

The formula I had (which worked fine):

=IF(Q6="",IF(O6="",IF(M6="",IF(K6="",IF(I6="",G6,I 6),K6),M6),O6),Q6)
(A1:A9)

Now that I have 10 cells (H6-Q6) to fill out, I can't use the formula above
as there are too many IF Statements).

Unfortunately, the value each week could go up or down, so I can't do
min/max.

Appreciate any insight you all might have.

V/R

KSL.
  #2  
Old June 22nd, 2009, 11:12 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Last "non-blank" value in a Row...

This will return the rightmost numeric value from the range if there is one:

=LOOKUP(1E100,H6:Q6)

If there isn't a numeric value in the range the formula will return #N/A. To
prevent the error you can use this version:

=IF(COUNT(H6:Q6),LOOKUP(1E100,H6:Q6),"")

--
Biff
Microsoft Excel MVP


"Leonhardtk" wrote in message
...
I've found solutions for finding the last non-blank/non-zero value in a
column, but I couldn't figure out how to convert for a row:

Previously I had five cells to populate (H6-L6). What I need is the last
value that is completed. The first week would only have H6, the next week
I6, etc...

The formula I had (which worked fine):

=IF(Q6="",IF(O6="",IF(M6="",IF(K6="",IF(I6="",G6,I 6),K6),M6),O6),Q6)
(A1:A9)

Now that I have 10 cells (H6-Q6) to fill out, I can't use the formula
above
as there are too many IF Statements).

Unfortunately, the value each week could go up or down, so I can't do
min/max.

Appreciate any insight you all might have.

V/R

KSL.



  #3  
Old June 22nd, 2009, 11:13 PM posted to microsoft.public.excel.worksheet.functions
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Last "non-blank" value in a Row...

=LOOKUP(10000000000,6:6) if it's a number

"Leonhardtk" wrote:

I've found solutions for finding the last non-blank/non-zero value in a
column, but I couldn't figure out how to convert for a row:

Previously I had five cells to populate (H6-L6). What I need is the last
value that is completed. The first week would only have H6, the next week
I6, etc...

The formula I had (which worked fine):

=IF(Q6="",IF(O6="",IF(M6="",IF(K6="",IF(I6="",G6,I 6),K6),M6),O6),Q6)
(A1:A9)

Now that I have 10 cells (H6-Q6) to fill out, I can't use the formula above
as there are too many IF Statements).

Unfortunately, the value each week could go up or down, so I can't do
min/max.

Appreciate any insight you all might have.

V/R

KSL.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:39 PM.


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