Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
What function can be used to test if there is data in a cell or not?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
Paste this into a worksheet module and click around
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If ActiveCell.Value = "" Then MsgBox "No data here" Else MsgBox "Cell contains " & Cells(1, 1).Value End If End Sub Mike "J@Y" wrote: What function can be used to test if there is data in a cell or not? |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
=IF(A1<"","Data in celll.","No Data in cell")
"J@Y" wrote: What function can be used to test if there is data in a cell or not? |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
Maybe...
=if(a1="","it looks empty","something's there") But if A1 contained a formula like: =if(b2=7,"0k,"") and evaluated to "", then it would look empty. J@Y wrote: What function can be used to test if there is data in a cell or not? -- Dave Peterson |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
And in code, you can check to see if the cell is empty--no value and no formula:
if isempty(activesheet.range("a1").value) then 'it's empty else 'it's got a value or formula end if J@Y wrote: What function can be used to test if there is data in a cell or not? -- Dave Peterson |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
Thank you guys!
|
#7
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test if there is data in a cell or not?
Thank you guys!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to do LSD test in data analyses | Excel Discussion (Misc queries) | |||
Multiple choice test data - How do I get Excel to deal with one row of data? | Excel Discussion (Misc queries) | |||
VB syntax to test for data validation in a cell | Excel Discussion (Misc queries) | |||
Calculate mean of test scores from rows of test answers | Excel Discussion (Misc queries) | |||
How can i test a cell for bold style in a cell (Excel 2003)? | Excel Worksheet Functions |