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



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
Find number of weekdays and wekend days given a total number of da Juan Correa Excel Discussion (Misc queries) 7 February 19th 10 09:47 PM
Find previous number and find next number in column DoubleZ Excel Discussion (Misc queries) 4 March 4th 09 08:51 PM
Need Cells.find to find first number in a row which is 8000 Kasper Excel Discussion (Misc queries) 9 December 15th 08 02:10 PM
find the frequency a number appears with another number within a s greenmachine Excel Worksheet Functions 10 September 11th 07 03:19 AM
countif formula to find the occurances of a number that is greater than one number but less than another steveo Excel Discussion (Misc queries) 3 July 8th 06 02:04 AM


All times are GMT +1. The time now is 09:18 AM.

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"