![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 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?
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
=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
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
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 |
|
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
Quote:
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
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
Cheers guys - works brilliantly.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|