Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
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.

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
If A3=alpha numeric,"X", if A3=text,"Y", Blank Gary Excel Worksheet Functions 16 August 8th 06 08:27 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Changing "returned" values from "0" to "blank" LATATC Excel Worksheet Functions 2 October 20th 05 04:41 PM


All times are GMT +1. The time now is 02:15 PM.

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"