![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 73
|
how do u write a if statement, saying if cell A1 is not a number, then cell B1 emtpy?
how can this be done, pls let me know |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=IF(ISNUMBER(A1),A1*.4,"") or =IF(A1,A1*.4,"") Caveat. It's generally not a good idea to compute/return a "" (blank) in a cell if that cell is going to participate in further computations. Aladin |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 48
|
Put this code in cell in a2 or wherever (not a1)
=IF(A1<>"",IF(ISERR(A1*2),"Letter","Number"),"Blank") Put a letter, number or nothing in a1 Replace the letter, number and blank to the text (in quotes) or formula (no quotes) you need Hope this helps |
|
|
|
|
|
#4 | ||
|
New Member
Join Date: Feb 2002
Posts: 48
|
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|