![]() |
![]() |
|
|||||||
| 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 |
|
New Member
Join Date: May 2002
Posts: 7
|
I know that IF can be usd to determine if a condition is true or false, but can it be used to detrmine if there is text in a field or not?
Example: I want to interrogate column A, if there is text in the cell interrogated (say A10) I want to put text into F10 (either "VAT" or "NIL") Does anyone have a way of doing this? Thanks, Robbie |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Minnesota
Posts: 821
|
You could use the functin ISTEXT().
IF(ISTEXT(A1),"YOUR MESSAGE","") |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Apr 2002
Location: Vancouver BC , Canada
Posts: 6,259
|
Try the ISBLANK & ISTEXT FUNCTIONS
IE IF(ISBLANK(A10), "true func", False func)
__________________
<MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee> |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
F10: =IF(ISTEXT(A10),"VAT","NIL")
There is also an ISNUMBER function and a host of others under the Information category of Excel functions. HTH, Jay |
|
|
|
|
|
#5 |
|
New Member
Join Date: May 2002
Posts: 7
|
We're not worthy!!!
Thanks, works a treat. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|