Named Range with Blanks

dwgnome

Active Member
Joined
Dec 18, 2005
Messages
441
How can I get the Named Ranges marked in blue to work when there are empty cells within those Named Ranges? When all cells in the range are filled the formula works fine

Is there a way to set up the formula to allow blank cells (empty) or create a dynamic range that would accept blank cells?


Code:


=IF(AND((SUMPRODUCT(ISNUMBER(SEARCH(PaintKeyWords,K3040))*1))=0,(SUMPRODUCT(ISNUMBER(SEARCH(ExceptionsP,K3040))*1))=0),"",IF(((SUMPRODUCT(ISNUMBER(SEARCH(ExceptionsP,K3040))*1)>0)*1)>=1,"","x"))
</PRE>
Where: PaintKeyWords = J3047:J3052
ExceptionsP = K3047:K3052
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
How can I get the Named Ranges marked in blue to work when there are empty cells within those Named Ranges? When all cells in the range are filled the formula works fine

Is there a way to set up the formula to allow blank cells (empty) or create a dynamic range that would accept blank cells?


Code:


=IF(AND((SUMPRODUCT(ISNUMBER(SEARCH(PaintKeyWords,K3040))*1))=0,(SUMPRODUCT(ISNUMBER(SEARCH(ExceptionsP,K3040))*1))=0),"",IF(((SUMPRODUCT(ISNUMBER(SEARCH(ExceptionsP,K3040))*1)>0)*1)>=1,"","x"))


</PRE>
Where: PaintKeyWords = J3047:J3052
ExceptionsP = K3047:K3052
Since the ranges are small how about posting what's in those cells so we can see what you're trying to do. Also tell us what's in K3040.

Also, what version of Excel are you using?
 
Upvote 0
Rather than retyping the issue, please see post:

http://www.mrexcel.com/forum/showthread.php?t=572011

I just want to put the keywords in a list and create a named range. This way it is easier to change the keywords and not have to modify the formulas. But since the keywords will change in length, it would be easier to just have a named range with a larger array size so I don't have to think to change the actual range size.

K3040 contains the phrases.

I am using Excel 2003.
 
Upvote 0
Rather than retyping the issue, please see post:

http://www.mrexcel.com/forum/showthread.php?t=572011

I just want to put the keywords in a list and create a named range. This way it is easier to change the keywords and not have to modify the formulas. But since the keywords will change in length, it would be easier to just have a named range with a larger array size so I don't have to think to change the actual range size.

K3040 contains the phrases.

I am using Excel 2003.

See post #12 in your original thread for the required definitions of dynamic named ranges and for a formula which would be faster than one you currently have.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,297
Members
452,903
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top