Hi everyone,
Having some difficulty nesting three if(isblank) statements. Here's what I'm trying to do:
if A1 = a value, then A1
if A2 = blank (or #N/A), then A2
if A1 and A2 = blank (or #N/A), then A3
Any ideas?
Thanks guys!!
Hi everyone,
Having some difficulty nesting three if(isblank) statements. Here's what I'm trying to do:
if A1 = a value, then A1
if A2 = blank (or #N/A), then A2
if A1 and A2 = blank (or #N/A), then A3
Any ideas?
Thanks guys!!
Untested, but try this...
=if(A1<>"",A1,if(and(or(A1="",iserror(a1),A2='',iserror(a2)),A3,a2))
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
Try this:
=IF(OR(A1="",ISNA(A1)),IF(OR(A2="",ISNA(A2)),A3,A2),A1)
Hope this helps.
Pete
hi FD and Pete,
Thanks for the reply, guys. Unfortunately neither formula worked. I don't know if it makes a differnces, but A1, A2, and A3 are in different worksheets within the same workbook, and they are all copies of other cells in the same workbook (they contain a simple copy instead of the actual text). Does that make a difference?
Thanks,
Think this might work ...
=IF(A1<>"",A1,IF(OR(ISNA(A2),A2<>""),A2,IF(AND(A1="",A2=""),A3,IF(AND(ISNA(A1),ISNA(A2)),A3))))
Hi Hodpy,
thanks for your suggestions. I'm not getting an error, but I am getting a #N/A result. Any ideas?
Hey guys,
Interestingly enough, each of your formulas work if I have the values as text in the first sheet, but since they are all copies from other sources within the workbook none of the formulas seems to want to read them, i.e, getting #N/A. Any ideas how I can get around this?
Thanks!!
can you provide a sample workbook with a few sample answers?
Hey guys,
Looks like I figured it out. It was just a matter of formatting. The formula wouldn't read #N/A cells, so I changed them to show blank if there was an error and it worked. Thanks very much for all your help, everyone.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks