Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Find next good data in a column

Here is one example, an array entered formula that returns the first non-na
after the last na:

=OFFSET(J1,MAX(ISNA(J3:J17)*ROW(J3:J17)),)

Being an array you must enter it using Shift+Ctrl+Enter
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"rocket" wrote:

I have a column in my worksheet with many #N/A entries. I'm looking for a
function which will return the next "good" (non #N/A) data value from a later
row in that column. I want to save that to the row with the bad data, so I
cannot filter out all the NA rows. I've got Excel-2007.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Find next good data in a column

This is a clever way to find all the rows that have an NA, but I think the
MAX function will return the last row with an NA, not the next one. I'll have
an intermediate array like (0,0,0,4,5,0,0,8,9,...). I either need to be able
to restrict the range (which is the problem that I don't know where the next
good data are) or use a "MIN but 0" logic. Almost there...

"Shane Devenshire" wrote:

Here is one example, an array entered formula that returns the first non-na
after the last na:

=OFFSET(J1,MAX(ISNA(J3:J17)*ROW(J3:J17)),)

Being an array you must enter it using Shift+Ctrl+Enter
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"rocket" wrote:

I have a column in my worksheet with many #N/A entries. I'm looking for a
function which will return the next "good" (non #N/A) data value from a later
row in that column. I want to save that to the row with the bad data, so I
cannot filter out all the NA rows. I've got Excel-2007.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Find next good data in a column

Hi,

You should test before you come to a conclusion. The fact is that OFFSET
from J1 is automatically one row below the last NA. Because if the last row
is 15, 15 offset from J1 is J16!

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"rocket" wrote:

This is a clever way to find all the rows that have an NA, but I think the
MAX function will return the last row with an NA, not the next one. I'll have
an intermediate array like (0,0,0,4,5,0,0,8,9,...). I either need to be able
to restrict the range (which is the problem that I don't know where the next
good data are) or use a "MIN but 0" logic. Almost there...

"Shane Devenshire" wrote:

Here is one example, an array entered formula that returns the first non-na
after the last na:

=OFFSET(J1,MAX(ISNA(J3:J17)*ROW(J3:J17)),)

Being an array you must enter it using Shift+Ctrl+Enter
--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"rocket" wrote:

I have a column in my worksheet with many #N/A entries. I'm looking for a
function which will return the next "good" (non #N/A) data value from a later
row in that column. I want to save that to the row with the bad data, so I
cannot filter out all the NA rows. I've got Excel-2007.

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
compare data in column A with column B to find duplicates George Excel Discussion (Misc queries) 8 February 6th 09 03:53 PM
Duplicates are GOOD: How to find the most duplicated values? flanneryd Excel Worksheet Functions 1 May 8th 07 09:54 PM
Good at Macros? I'm Trying to find duplicate entries. David B Excel Discussion (Misc queries) 3 April 19th 07 09:20 PM
Worksheet looks good in print, not so good on-screen Betsy Excel Discussion (Misc queries) 6 February 9th 07 02:16 AM
Does anyone know where I can find a good excel template for track. jd_quivers Excel Discussion (Misc queries) 0 February 19th 05 04:43 PM


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