Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default address of first and last number in a row

I have various rows with numbers entered randomly with 0's inbetween. The
first row has are represents calender dates. I need to find the date of the
first number entry and the date of the last number entry larger than 0. If
of any help the numbers entered are from 1 to 6. These are randomly entered.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default address of first and last number in a row

With dates in row 1 an data in row 2...

For the leftmost (first) number 0...

Array entered** :

=INDEX(A1:J1,MATCH(TRUE,A2:J20,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Format as Date

For the rightmost (last) number 0...

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

--
Biff
Microsoft Excel MVP


"Kobus" wrote in message
...
I have various rows with numbers entered randomly with 0's inbetween. The
first row has are represents calender dates. I need to find the date of
the
first number entry and the date of the last number entry larger than 0.
If
of any help the numbers entered are from 1 to 6. These are randomly
entered.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default address of first and last number in a row

Thanks, I should read up on array functions a bit more. I battled with this
one combining a major amount of INDEX, MATCH, COUNTIF, ADDRESS and more. Got
it to find the first number but then failed finding the last.

"T. Valko" wrote:

With dates in row 1 an data in row 2...

For the leftmost (first) number 0...

Array entered** :

=INDEX(A1:J1,MATCH(TRUE,A2:J20,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

Format as Date

For the rightmost (last) number 0...

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

--
Biff
Microsoft Excel MVP


"Kobus" wrote in message
...
I have various rows with numbers entered randomly with 0's inbetween. The
first row has are represents calender dates. I need to find the date of
the
first number entry and the date of the last number entry larger than 0.
If
of any help the numbers entered are from 1 to 6. These are randomly
entered.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default address of first and last number in a row

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Kobus" wrote in message
...
Thanks, I should read up on array functions a bit more. I battled with
this
one combining a major amount of INDEX, MATCH, COUNTIF, ADDRESS and more.
Got
it to find the first number but then failed finding the last.

"T. Valko" wrote:

With dates in row 1 an data in row 2...

For the leftmost (first) number 0...

Array entered** :

=INDEX(A1:J1,MATCH(TRUE,A2:J20,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

Format as Date

For the rightmost (last) number 0...

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

--
Biff
Microsoft Excel MVP


"Kobus" wrote in message
...
I have various rows with numbers entered randomly with 0's inbetween.
The
first row has are represents calender dates. I need to find the date
of
the
first number entry and the date of the last number entry larger than 0.
If
of any help the numbers entered are from 1 to 6. These are randomly
entered.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 515
Default address of first and last number in a row

Hi Kobus,

Your explanation is rather confusing! You are looking for dates, you say?
But you refer to numbers between 1 and 6, and 0's
So where are the dates?

Maybe you should elaborate more, and explain how each row is utilised, so
that we can know what it is that you are trying to achieve?

--
HTH

Kassie

Replace xxx with hotmail


"Kobus" wrote:

I have various rows with numbers entered randomly with 0's inbetween. The
first row has are represents calender dates. I need to find the date of the
first number entry and the date of the last number entry larger than 0. If
of any help the numbers entered are from 1 to 6. These are randomly entered.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default address of first and last number in a row

After I read the question it did sound as though I had to better explain but
(I don't know how) T.Valko understood and his/her solution solved my problem.
Row 1 are dates (headings) the subsequent rows are random numbers in a row
ranging from 1 to 6 (the amount of items delivered on that specific day).

"Kassie" wrote:

Hi Kobus,

Your explanation is rather confusing! You are looking for dates, you say?
But you refer to numbers between 1 and 6, and 0's
So where are the dates?

Maybe you should elaborate more, and explain how each row is utilised, so
that we can know what it is that you are trying to achieve?

--
HTH

Kassie

Replace xxx with hotmail


"Kobus" wrote:

I have various rows with numbers entered randomly with 0's inbetween. The
first row has are represents calender dates. I need to find the date of the
first number entry and the date of the last number entry larger than 0. If
of any help the numbers entered are from 1 to 6. These are randomly entered.

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
Extract street number (foreign address) Sei Excel Worksheet Functions 8 November 13th 08 09:28 PM
Insertion of a cell address that constantly rises by a set number stew Excel Discussion (Misc queries) 13 August 24th 08 06:50 PM
Address number changes to calendar format timbo2008au Excel Discussion (Misc queries) 5 April 18th 08 12:01 PM
cell's address of the largest number novio Excel Discussion (Misc queries) 1 April 9th 05 10:16 PM
Custom Number Format for HEX address TRI-V Excel Worksheet Functions 1 December 3rd 04 10:20 PM


All times are GMT +1. The time now is 10:30 PM.

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"