LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default IF statement to add data when blank

In each row i have 7 parts fields - labled "part1" - "part7". If they are
all blank, I want to insert "NPF" into "Part1 (no part fitted)

I cant use find and replace as that only searches individual text boxes.
And my parts could be in any of the 7 parts columns.

Can I do something like this:

IF part1 ="" AND part 2 ="" AND ... part 7 =""
THEN insert "NPF" in part1
Else move to next row

So the code searches row by row

Any help is much appretiated, thank you in advance.

Ernest

(ps. hope it makes sense lol)
 
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
Formula - If Statement with blank C Kreig Excel Worksheet Functions 4 November 2nd 09 05:46 PM
If statement - blank cell --Viewpoint Excel Discussion (Misc queries) 2 November 1st 09 01:03 PM
If blank statement Jim Excel Discussion (Misc queries) 4 August 27th 09 07:16 PM
if statement when cell is blank davisk Excel Worksheet Functions 6 August 10th 08 12:03 AM
add blank row in an if statement BBoyd Excel Discussion (Misc queries) 3 May 21st 08 11:02 PM


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