View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default IF and HLOOKUPFormula

Hi
don't use VLOOKUP in this case. Try
=IF(A30,A3,A2)

--
Regards
Frank Kabel
Frankfurt, Germany


Ronbo wrote:
I am trying to create a formula that combines If with
Lookup. Example.
Cell a1=1, a2=10, a3=20. The formula that I have in d1
is, =IF(HLOOKUP(A1,A1:A3,3)=0,(HLOOKUP(A1,A1:A3,3,
(HLOOKUP(A1,A1:A3,2))))). What I want the formula to do
is a LOOKUP and then return the value in a3 if it is
larger than 0 otherwise return the value in a2.

Help is always appreciated.