Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Lookup an array question

Hello,

What Excel function do I use to lookup an array in a row,
if any value on the row is greater than 1, input that
value?

Example:
A B C D E
1 #N/A 02-15 #N/A #N/A
2 #N/A #N/A #N/A 05-07
3 01-56 #N/A #N/A #N/A
4 #N/A 02-89 #N/A #N/A
5

In cell A1, I would like for it to automatically fill in
02-15. Cell A2 to fill in 05-07, etc.

In summary, need to create a function in A1, look at cell
B1 to E1, find the cell that is not #N/A, put the value of
that cell in A1. Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Lookup an array question

Your requirements seem contradictory, but try:

=OFFSET(A1,0,SUM((IF(NOT(ISNA(B1:E1)),COLUMN(B1:E1 ),0)))-1)

--

Vasant

"Luong" wrote in message
...
Hello,

What Excel function do I use to lookup an array in a row,
if any value on the row is greater than 1, input that
value?

Example:
A B C D E
1 #N/A 02-15 #N/A #N/A
2 #N/A #N/A #N/A 05-07
3 01-56 #N/A #N/A #N/A
4 #N/A 02-89 #N/A #N/A
5

In cell A1, I would like for it to automatically fill in
02-15. Cell A2 to fill in 05-07, etc.

In summary, need to create a function in A1, look at cell
B1 to E1, find the cell that is not #N/A, put the value of
that cell in A1. Thanks




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Lookup an array question

Sorry, should mention that this is an array formula <Crtl <Shift <Enter.

--

Vasant


"Vasant Nanavati" <vasantn *AT* aol *DOT* com wrote in message
...
Your requirements seem contradictory, but try:

=OFFSET(A1,0,SUM((IF(NOT(ISNA(B1:E1)),COLUMN(B1:E1 ),0)))-1)

--

Vasant

"Luong" wrote in message
...
Hello,

What Excel function do I use to lookup an array in a row,
if any value on the row is greater than 1, input that
value?

Example:
A B C D E
1 #N/A 02-15 #N/A #N/A
2 #N/A #N/A #N/A 05-07
3 01-56 #N/A #N/A #N/A
4 #N/A 02-89 #N/A #N/A
5

In cell A1, I would like for it to automatically fill in
02-15. Cell A2 to fill in 05-07, etc.

In summary, need to create a function in A1, look at cell
B1 to E1, find the cell that is not #N/A, put the value of
that cell in A1. Thanks






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Lookup an array question

In A1 put in

=INDEX($B1:$E1,1,MATCH(FALSE,ISERROR($B1:$E1),0))

enter with Ctrl+Shift+Enter rather than just enter since it is an array
formula.

then drag fill down column A.

--
Regards,
Tom Ogilvy

"Luong" wrote in message
...
Hello,

What Excel function do I use to lookup an array in a row,
if any value on the row is greater than 1, input that
value?

Example:
A B C D E
1 #N/A 02-15 #N/A #N/A
2 #N/A #N/A #N/A 05-07
3 01-56 #N/A #N/A #N/A
4 #N/A 02-89 #N/A #N/A
5

In cell A1, I would like for it to automatically fill in
02-15. Cell A2 to fill in 05-07, etc.

In summary, need to create a function in A1, look at cell
B1 to E1, find the cell that is not #N/A, put the value of
that cell in A1. Thanks




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default Lookup an array question

=INDEX(B1:E1,1,MATCH(TRUE,B1:E10,0)) array entered and copied down.

Aln Beban

Luong wrote:

Hello,

What Excel function do I use to lookup an array in a row,
if any value on the row is greater than 1, input that
value?

Example:
A B C D E
1 #N/A 02-15 #N/A #N/A
2 #N/A #N/A #N/A 05-07
3 01-56 #N/A #N/A #N/A
4 #N/A 02-89 #N/A #N/A
5

In cell A1, I would like for it to automatically fill in
02-15. Cell A2 to fill in 05-07, etc.

In summary, need to create a function in A1, look at cell
B1 to E1, find the cell that is not #N/A, put the value of
that cell in A1. Thanks




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
Use array for lookup value, to return array of lookups Glen Excel Discussion (Misc queries) 3 May 7th 09 11:55 PM
Array lookup M.Desmond Excel Worksheet Functions 0 October 15th 08 04:42 AM
Array lookup j0rg3a1b3rt0 Excel Worksheet Functions 2 October 3rd 06 06:06 PM
Lookup "greater than or equal to" in lookup array icemouse New Users to Excel 3 February 16th 06 10:07 PM
Array Lookup ExcelMonkey[_58_] Excel Programming 6 February 1st 04 04:36 PM


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