#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Delete rows

Hi

I want to delete rows.
I am doing Vlook up, and I am getting some rows with #N/A and some with 1.
Then I want the code to find out which rows have #N/A and delete them.
I am getting some problems with #N/A, is there any way to convert it to
other thing or in delete rows code, just to put N/A (without #)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Delete rows

=IF(ISNA(vlookup_formula),"N/A",vlookup_formula)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Faboboren" wrote in message
...
Hi

I want to delete rows.
I am doing Vlook up, and I am getting some rows with #N/A and some with 1.
Then I want the code to find out which rows have #N/A and delete them.
I am getting some problems with #N/A, is there any way to convert it to
other thing or in delete rows code, just to put N/A (without #)

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 39
Default Delete rows

Thanks Bob,

How do I create the delete-rows code and insert what you wrote down for me


"Bob Phillips" wrote:

=IF(ISNA(vlookup_formula),"N/A",vlookup_formula)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Faboboren" wrote in message
...
Hi

I want to delete rows.
I am doing Vlook up, and I am getting some rows with #N/A and some with 1.
Then I want the code to find out which rows have #N/A and delete them.
I am getting some problems with #N/A, is there any way to convert it to
other thing or in delete rows code, just to put N/A (without #)

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
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
Delete Rows if any cell in Column H is blank but do not Delete Fir manfareed Excel Programming 4 September 28th 07 05:20 PM
Copy pasting Rows, but need to Delete any Shapes/Pictures that are within copied rows Corey Excel Programming 2 August 1st 07 02:02 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM


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