M
mpjohnston
Greetings all, I have a lookup to another sheet as follows:
=LOOKUP(2,1/(qperiodresponseabandcall!A1:A994="Breeze/Ma
Reservations"),qperiodresponseabandcall!D1
994)
I would like to set a varialbe to that lookup only if it is not "0"
The problem I have is I am not sure what type the variable should b
and perhaps the information it is pulling from look up is a text not
number. I was thinking the EVALUATE function but it doesnt seem to wor
in VBA.
xVarialble = EVALUATE(LOOKUP(2,1/(qperiodresponseabandcall!R[-" & Coun
- 1 & "]C[-" & i & "]:R[" & RCount & "]C[-" & i & "]=""" & txtSearch(h
& """),qperiodresponseabandcall!R[-" & Count - 1 & "]C[2]:R[" & RCoun
& "]C[2]))
It tells me Compile error: "( expected" and highlights "[-" & Count -
& "]"
Count is defined as
Count = "37"
Thanks for any input
Mik
=LOOKUP(2,1/(qperiodresponseabandcall!A1:A994="Breeze/Ma
Reservations"),qperiodresponseabandcall!D1
I would like to set a varialbe to that lookup only if it is not "0"
The problem I have is I am not sure what type the variable should b
and perhaps the information it is pulling from look up is a text not
number. I was thinking the EVALUATE function but it doesnt seem to wor
in VBA.
xVarialble = EVALUATE(LOOKUP(2,1/(qperiodresponseabandcall!R[-" & Coun
- 1 & "]C[-" & i & "]:R[" & RCount & "]C[-" & i & "]=""" & txtSearch(h
& """),qperiodresponseabandcall!R[-" & Count - 1 & "]C[2]:R[" & RCoun
& "]C[2]))
It tells me Compile error: "( expected" and highlights "[-" & Count -
& "]"
Count is defined as
Count = "37"
Thanks for any input
Mik