![]() |
![]() |
|
|||||||
| 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: Feb 2002
Posts: 82
|
Hello,
I was wondering if anyone knows how to use an if statement in this context. If a cell has a numerical value then perform such and such operation i.e. if cell is a number then divide by two and put in another cell, otherwise do nothing. thanks for any advice you could give Casey |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Suppose Cell "A1" on "Sheet1" holds the value, suppose cell "B1" on the same sheet is to hold the result, you would use the "if" statement like this:
HTH _________________ [b] Mark O'Brien [ This Message was edited by: Mark O'Brien on 2002-05-10 11:35 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Posts: 82
|
Thankyou very much I didnt know there is a Isnumeric function.
thanks again Casey |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|