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  

Find the last number in a row



 
 
Thread Tools Display Modes
  #1  
Old May 18th, 2010, 03:56 PM posted to microsoft.public.excel.worksheet.functions
David Brogelli
external usenet poster
 
Posts: 1
Default Find the last number in a row

Hi,

I have lots of rows of data which are either a value between 50 and 200 (e.g
115) or "0".

Each column is a specific week of the year, ie from 1/1998 to 52/2009, so
the values run from left to right giving a number for each week, and when
there is not an entry for that week, there is a "0".

I need a formula to find the last number entry of each row. I could
obviously do this by scrolling to the last week (52/2009) an looking back
until I see the first number which isn't 0, however I need to do this for
around 1600 rows of data.

I would greatly appreciated it if anybody could help me with this quiery.

Thanks for your time.
  #2  
Old May 18th, 2010, 04:10 PM posted to microsoft.public.excel.worksheet.functions
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default Find the last number in a row

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"David Brogelli" David
wrote in message
...
Hi,

I have lots of rows of data which are either a value between 50 and 200
(e.g
115) or "0".

Each column is a specific week of the year, ie from 1/1998 to 52/2009, so
the values run from left to right giving a number for each week, and when
there is not an entry for that week, there is a "0".

I need a formula to find the last number entry of each row. I could
obviously do this by scrolling to the last week (52/2009) an looking back
until I see the first number which isn't 0, however I need to do this for
around 1600 rows of data.

I would greatly appreciated it if anybody could help me with this quiery.

Thanks for your time.


  #4  
Old May 18th, 2010, 04:45 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Find the last number in a row

Hi,

This finds the 'last' value 0 in the range

=LOOKUP(2,1/(A1:L10),A1:L1)
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"David Brogelli" wrote:

Hi,

I have lots of rows of data which are either a value between 50 and 200 (e.g
115) or "0".

Each column is a specific week of the year, ie from 1/1998 to 52/2009, so
the values run from left to right giving a number for each week, and when
there is not an entry for that week, there is a "0".

I need a formula to find the last number entry of each row. I could
obviously do this by scrolling to the last week (52/2009) an looking back
until I see the first number which isn't 0, however I need to do this for
around 1600 rows of data.

I would greatly appreciated it if anybody could help me with this quiery.

Thanks for your time.

  #5  
Old May 18th, 2010, 04:52 PM posted to microsoft.public.excel.worksheet.functions
FSt1
external usenet poster
 
Posts: 2,788
Default Find the last number in a row

hi,
assuming first row in 2 and formala below in column A, try this formula.....
=OFFSET(B2,0,COUNT(B2:L2)-1)

Adjust cell references to suit your data.

Regards
FSt1

"David Brogelli" wrote:

Hi,

I have lots of rows of data which are either a value between 50 and 200 (e.g
115) or "0".

Each column is a specific week of the year, ie from 1/1998 to 52/2009, so
the values run from left to right giving a number for each week, and when
there is not an entry for that week, there is a "0".

I need a formula to find the last number entry of each row. I could
obviously do this by scrolling to the last week (52/2009) an looking back
until I see the first number which isn't 0, however I need to do this for
around 1600 rows of data.

I would greatly appreciated it if anybody could help me with this quiery.

Thanks for your time.

 




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 02:16 AM.


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