Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Searching for #N/A

I'm trying to create a formula that will tell me where the last
occurance of #N/A occurs in a table. If I have,

1 2 3 4 5
#N/A #N/A #N/A 2% 8%

I want a formula to tell me that the last occurance of #N/A is in
column 3, or that the first occurance of a real number is in column 4.
You can assume that the sets of #N/A will be contiguous.

Thank you.
-bgetson

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Searching for #N/A

One way ..

Assuming data in row2, in A2 across,
Array-entered (press CTRL+SHIFT+ENTER) in say B1:
=MATCH(TRUE,ISNUMBER(2:2),0)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
On Feb 27, 1:26 pm, wrote:
I'm trying to create a formula that will tell me where the last
occurance of #N/A occurs in a table. If I have,

1 2 3 4 5
#N/A #N/A #N/A 2% 8%

I want a formula to tell me that the last occurance of #N/A is in
column 3, or that the first occurance of a real number is in column 4.
You can assume that the sets of #N/A will be contiguous.

Thank you.
-bgetson



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Searching for #N/A

To find the relative position of the last instance of #N/A:

=LOOKUP(2,1/ISNA(A2:E2),COLUMN(A2:E2)-MIN(COLUMN(A2:E2))+1)

To find the relative position of the first number:

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=MATCH(1,--ISNUMBER(A2:E2),0)

Biff

wrote in message
oups.com...
I'm trying to create a formula that will tell me where the last
occurance of #N/A occurs in a table. If I have,

1 2 3 4 5
#N/A #N/A #N/A 2% 8%

I want a formula to tell me that the last occurance of #N/A is in
column 3, or that the first occurance of a real number is in column 4.
You can assume that the sets of #N/A will be contiguous.

Thank you.
-bgetson



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Searching for #N/A

Some clarifications ..

The earlier array-entered:
=MATCH(TRUE,ISNUMBER(2:2),0)
will return the col number of the 1st occurrence of a real number

Adjusting arithmetically for it, array-entered:
=MATCH(TRUE,ISNUMBER(2:2),0)-1
will hence return the last occurrence of #N/A here, in your instance
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Searching for #N/A

This is great. All of these solve my problem. I hadn't realized that
there was an ISNUMBER function that would have helped.

Thank you.
-bgetson



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Searching for #N/A

Welcome. Good to hear that.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
wrote in message
oups.com...
This is great. All of these solve my problem. I hadn't realized that
there was an ISNUMBER function that would have helped.

Thank you.
-bgetson



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
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
searching for tab Kevin R Excel Discussion (Misc queries) 3 January 16th 06 08:55 PM
Searching for "?" Bill Ridgeway New Users to Excel 3 August 3rd 05 10:35 AM
searching Tracy A Excel Worksheet Functions 2 July 28th 05 08:54 PM
Searching the first name only Kelly Lim Excel Discussion (Misc queries) 7 June 17th 05 04:31 AM


All times are GMT +1. The time now is 06:02 PM.

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"