Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default How to pull the rightmost, non-zero cell value in a workbook?

Hi Everyone,

See subject above. In column A, I have a long list of properties. Columns
B through W are dates, and the data listed below shows various percentages.
Not all of the cells are populated, as I leave them blank until I receive the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to pull the rightmost, non-zero cell value in a workbook?

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 385
Default How to pull the rightmost, non-zero cell value in a workbook?

Hi Biff,

That is awesome; it worked. But I'd like to understand the formula, too -
can you explain what the 1E+100 does?

"T. Valko" wrote:

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to pull the rightmost, non-zero cell value in a workbook?

Jennifer

If Biff will excuse me answering,

1E+100 is a number in scientific notation larger than will be found in the
range so it causes the formula to find the largest number. Try the formula
=LOOKUP(10,B2:W2)

it will find the largest number up to 10 and ignore any larger ones.


Mike



"Jennifer" wrote:

Hi Biff,

That is awesome; it worked. But I'd like to understand the formula, too -
can you explain what the 1E+100 does?

"T. Valko" wrote:

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default How to pull the rightmost, non-zero cell value in a workbook?

"Mike H" wrote in message
...
=LOOKUP(10,B2:W2)

it will find the largest number up to 10 and ignore any larger ones.


Not quite. It will only do so if the numbers are in ascending order,
otherwise you may get some other when there is a higher value which is still
lower then 10 further in the series.

--

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to pull the rightmost, non-zero cell value in a workbook?

The way LOOKUP works is...

If *every* value in the range is less than the lookup_value (1E100) then the
formula returns the *last* value in the range that is less than the
lookup_value.

To make sure that we do in fact get the last value we use a lookup_value
that is guaranteed to be greater than any value in the range. So, we use an
arbitrary HUGE number for the lookup_value.

1E100 is a HUGE number. It's 1 followed by 100 zeros. Chances are pretty
good that you don't have any numbers that big in your range so the formula
returns the desired result, the last number in the range.

Technically, all you really need for a lookup_value is a number greater than
any number in your range. Consider this, say you were working with bowling
scores. The highest possible bowling score is 300 so no number in your range
will be greater than 300. So, in that case a lookup_value of 301 is all that
is needed.

When people post these types of questions they ususally don't tell us how
big the numbers are that they're dealing with so when we reply, to be on the
safe side, we use a HUGE lookup_value.

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Biff,

That is awesome; it worked. But I'd like to understand the formula, too -
can you explain what the 1E+100 does?

"T. Valko" wrote:

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I
receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the
rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 989
Default How to pull the rightmost, non-zero cell value in a workbook?

Is there a way to return the rightmost non-zero number? My spreadsheet
requires zeroes rather than blanks so this function doesn't work. Thanks!

"T. Valko" wrote:

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to pull the rightmost, non-zero cell value in a workbook?

As long as the range *doesn't contain* the logical value TRUE...

=LOOKUP(1E100,1/(A1:J1),A1:J1)

--
Biff
Microsoft Excel MVP


"Mark" wrote in message
...
Is there a way to return the rightmost non-zero number? My spreadsheet
requires zeroes rather than blanks so this function doesn't work. Thanks!

"T. Valko" wrote:

To return the *last* (rightmost) numeric value in a range:

=LOOKUP(1E100,B2:W2)

--
Biff
Microsoft Excel MVP


"Jennifer" wrote in message
...
Hi Everyone,

See subject above. In column A, I have a long list of properties.
Columns
B through W are dates, and the data listed below shows various
percentages.
Not all of the cells are populated, as I leave them blank until I
receive
the
data.

In column V, I am trying to pull the most recent data (i.e. the
rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each
week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.






  #9   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default How to pull the rightmost, non-zero cell value in a workbook?

(This, expanded out to column "W" for your case), will return the rightmost
TEXT or numbers in a row...........

=INDIRECT(LOOKUP(COUNTA(A2:J2),{1,2,3,4,5,6,7,8,9, 10},{"A","B","C","D","E","F","G","H","I","J"})&ROW ())

Vaya con Dios,
Chuck, CABGx3



"Jennifer" wrote:

Hi Everyone,

See subject above. In column A, I have a long list of properties. Columns
B through W are dates, and the data listed below shows various percentages.
Not all of the cells are populated, as I leave them blank until I receive the
data.

In column V, I am trying to pull the most recent data (i.e. the rightmost
cell related that is NOT blank). I have tried everything: SUMIF, RANK,
ISNUMBER. ISNUMBER worked, but I would have to update the formula each week,
which is a pain.

Is there a faster way to do this? This is kind of hard to explain in
writing, so please let me know if you'd like to see my spreadsheet.

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
Rightmost Column BillCPA Excel Discussion (Misc queries) 5 November 14th 07 07:08 PM
Pull individual cell background colors from workbook to wrkbk sunshine[_2_] Excel Discussion (Misc queries) 0 September 25th 07 06:38 PM
how to delete the 4 rightmost digits from a cell charlene Excel Worksheet Functions 4 June 29th 06 03:11 PM
Formula ? Return value from rightmost non-blank cell in a row of tgdavis Excel Worksheet Functions 8 April 27th 06 01:00 PM
How do I pull a merged cell from another workbook? foxspirit Excel Worksheet Functions 0 February 7th 06 04:47 PM


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