Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSExcel:Evaluate Blank Cell

Status
Not open for further replies.

Ladyluck

Technical User
Mar 8, 2002
15
IS
OK, now that I have your attention. I want to use an IF statement to evaluate the content of a cell which may be blank or contain a numeric text string. If the cell is blank B1 should preferably be left blank or alternatively contain a zero, if not the content will be multiplied with one to convert the content ot a numeric value (e.g.):

IF (A1 is Blank; Leave B1 Blank; A1*1)
[/color green]
Thanx a bunch
LL
 
In B1:

=if(A1="","",textnum(A1))

or

=if(A1="","",A1*1)

...if you want it your way.


// Patrik
______________________________

To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the IT Professional, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top