Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How create blank cell value as the result of Excel "IF" function?

How can I best create blank cell value as the result of the Excel "IF"
sorksheet function?

That would be useful "Paste Special" a column or row of the results over an
existing column of entries, while skipping blanks, to over-write only the
cells for which the results are non-blank.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default How create blank cell value as the result of Excel "IF" function?

Let's say we have data from A1 thru A100, but there are some blanks in it.

We want to copy column A to column B, but not the blanks in column A.

So if A10 is blank, don't copy it over.


Sub copy_no_blanks()
For i = 1 To 100
If Cells(i, "A") = "" Then
Else
Cells(i, "A").Copy Cells(i, "B")
End If
Next
End Sub

--
Gary''s Student
gsnu200710


"Pocket Protector as a Fashion Statement" wrote:

How can I best create blank cell value as the result of the Excel "IF"
sorksheet function?

That would be useful "Paste Special" a column or row of the results over an
existing column of entries, while skipping blanks, to over-write only the
cells for which the results are non-blank.

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
If result of formula is "" (Blank) why is this considered a num. Frank Winston Excel Worksheet Functions 8 January 2nd 07 01:58 AM
Why MS Excel produce diffrent result for the function "Quartile" Nadeem Shafique Butt Excel Worksheet Functions 2 October 11th 06 03:08 PM
create links to check boxes marked "good" fair"and "bad" pjb Excel Worksheet Functions 3 April 20th 06 02:17 AM
How do I replace a "#N/A" formula result with a blank in excel? yrat Excel Discussion (Misc queries) 6 April 3rd 06 04:38 AM
How to "blank" pivot table calculated fields if result = 0 Joe Excel Worksheet Functions 3 March 14th 06 06:43 PM


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