May 6, 2004 #1 cdove MIS Mar 20, 2002 153 GB Is it possible to use an IF statement to have a value of 1 if a cell has text in and 0 if no text exists? eg IF (Cell contains text) = "1", "0
Is it possible to use an IF statement to have a value of 1 if a cell has text in and 0 if no text exists? eg IF (Cell contains text) = "1", "0
May 6, 2004 #2 tviman Programmer Jul 25, 2002 2,123 US Absolutely! =if(a1>0,a1+b1,"") There's always a better way. The fun is trying to find it! Upvote 0 Downvote
May 6, 2004 1 #3 S SkipVought Programmer Dec 4, 2001 47,487 US Hi, [tt] =IF(ISBLANK(A1),1,0) [/tt] and... why do you want the CHARACTERS "0" & "1" rather than the NUMBERS 0 & 1??? Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
Hi, [tt] =IF(ISBLANK(A1),1,0) [/tt] and... why do you want the CHARACTERS "0" & "1" rather than the NUMBERS 0 & 1??? Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
May 6, 2004 #4 S SkipVought Programmer Dec 4, 2001 47,487 US oops [tt] =IF(ISBLANK(A1),0,1) [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
oops [tt] =IF(ISBLANK(A1),0,1) [/tt] Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
May 6, 2004 #5 ajakeway MIS May 3, 2004 6 CA Interestingly, this also works. =1-ISBLANK(B1) Perhaps not as readable, but I find I can use the Boolean True / False (treated as 1/0) in all sorts of places. Upvote 0 Downvote
Interestingly, this also works. =1-ISBLANK(B1) Perhaps not as readable, but I find I can use the Boolean True / False (treated as 1/0) in all sorts of places.
May 6, 2004 #6 KenWright Technical User Mar 22, 2003 3,688 GB And if you really want to cut it down, and assuming the choice is text or Not text as stated, then =--ISTEXT(B1) will also do the job, though not as generic as the others, which also cater for numerics, which this won't. Regards Ken................. ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ---------------------------------------------------------------------------- Upvote 0 Downvote
And if you really want to cut it down, and assuming the choice is text or Not text as stated, then =--ISTEXT(B1) will also do the job, though not as generic as the others, which also cater for numerics, which this won't. Regards Ken................. ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ----------------------------------------------------------------------------
May 7, 2004 Thread starter #7 cdove MIS Mar 20, 2002 153 GB Thanks Everyone. I eventually went for SkipVought.. Upvote 0 Downvote
May 7, 2004 #8 Dreamboat Instructor Nov 7, 1999 4,881 US I went for SkipVought once too, and then find out he was married! Anne Troy http://www.amazon.com/exec/obidos/tg/detail/-/0972425845/104-9778384-2391158?v=glance&s=books Upvote 0 Downvote
I went for SkipVought once too, and then find out he was married! Anne Troy http://www.amazon.com/exec/obidos/tg/detail/-/0972425845/104-9778384-2391158?v=glance&s=books
May 7, 2004 #9 KenWright Technical User Mar 22, 2003 3,688 GB LOL ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ---------------------------------------------------------------------------- Upvote 0 Downvote
LOL ---------------------------------------------------------------------------- It's easier to beg forgiveness than ask permission ----------------------------------------------------------------------------
May 7, 2004 #10 cranebill IS-IT--Management Jan 4, 2002 1,113 US <=== Not married lol Bill Upvote 0 Downvote
May 7, 2004 #11 S SkipVought Programmer Dec 4, 2001 47,487 US Geez, I was out cutting the lawn and felt these STRANGE VIBES!!! Little did I know I'd become the HOTTIE of Tek-Tips at the late age of 62! What will my WIFE say??? ;-) Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 Upvote 0 Downvote
Geez, I was out cutting the lawn and felt these STRANGE VIBES!!! Little did I know I'd become the HOTTIE of Tek-Tips at the late age of 62! What will my WIFE say??? ;-) Skip, Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884