Validation Problem.

Nigel Martin

Board Regular
Joined
Feb 17, 2002
Messages
133
What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
On 2002-05-09 06:01, Nigel Martin wrote:
What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?

Try:

=OFFSET(Utilities!$M$1,0,MATCH(REPT("z",255),Utilities!$M:$M),0)

The 3rd argument of the OFFSET is the Height whereas you had the Match in the Width part.

I think that may be the problem.
I can't test it as my Excel is taking a wobbley with some crazy formula :eek:
 
Upvote 0
On 2002-05-09 06:01, Nigel Martin wrote:
What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?

=OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M),1)

If Discount consists of numbers, I suspect it does, use the following instead:

=OFFSET(Utilities!$M$1,0,0,MATCH(9.99999999999999E+307,Utilities!$M:$M),1)

I assumed that A1 also contains a number, not a label.

Aladin
 
Upvote 0
On 2002-05-09 06:01, Nigel Martin wrote:
What is wrong with this? =OFFSET(Utilities!$M$1,0,0,MATCH(REPT("z",255),Utilities!$M:$M)) which is a named range called Discount. When I try to validate a cell using the List>Custom option =Discount I get an error message that reads "The source currently evaluates to an error". Where column M in worksheet Utilities containes the list. Any ideas?

Completely forget about last post, I tested it and was way off.

Are the values in 'Utilities' text or number, if they are number you will get the error you describe.

use:

=OFFSET(Utilities!$M$1,0,0,MATCH(9.99999999999999E+307,Utilities!$M:$M),1)

But I see Aladin got there before me :(
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,765
Members
449,049
Latest member
greyangel23

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