IF AND ISTEXT ISBLANK formula

  • Thread starter Thread starter SCrowley
  • Start date Start date
S

SCrowley

I have two columns EA and EB, if EA istext and EB istext then EB, AND if EA
isblank and EB istext then EB, AND if EA istext and EB isblank then EA. I
wrote the formula below but it isn't returning values as I thought I had
written it. Your help is greatly appreciated.

=IF(AND(ISTEXT(EA6),ISTEXT(EB6)),EB6,IF(AND(ISBLANK(EA6),ISTEXT(EB6)),EB6,IF(AND(ISTEXT(EA6),ISBLANK(EB6)),EA6,)))
 
the formula is entered as you were expecting. Not sure which error you're
getting. Try clicking on the fx vutton to see where you may be getting your
error...
 
Thank you, Sean. After poking around I found a hidden " ' " mark in the blank
cells. I did a Find and Replace as well as TRIM and CLEAN and neither one
removed the mark so I'm clearing contents of visually blank cells. Wow, I
actually wrote a working formula!!!
 
If those cells contain formulas that might return formula blanks ("") then
ISBLANK might not be doing what you think it's doing.

ISBLANK means "is empty". If a cell contains a formula blank then the cell
*isn't empty* and ISBLANK evaluates to FALSE.

Also, a formula blank is a *text string* so ISTEXT will evaluate to TRUE.
 
I guess that's a good thing. :-)

Not sure why a find/replace wouldn't have fixed the issue, unless it did too
much replacing....
 
Which would mean instead of ISBLANK, do EA=""

T. Valko said:
If those cells contain formulas that might return formula blanks ("") then
ISBLANK might not be doing what you think it's doing.

ISBLANK means "is empty". If a cell contains a formula blank then the cell
*isn't empty* and ISBLANK evaluates to FALSE.

Also, a formula blank is a *text string* so ISTEXT will evaluate to TRUE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top