Ryan Ostorero
New Member
I'm working on spread sheet and I had never used the IF and VLOOKUP functions together. I experimented with it on a blank sheet. I got it figured out on my test sheet and it was working fine but when I go to use it on the sheet i actually need it on i get #VALUE! error. I'm not understanding where I screwed up?!?!
One that works
=IF(A12=$J12:$J18,$K$11:$K$17,VLOOKUP(A12,$J$11:$K$17,2,0))*B12+(C12*27.35)
One that gives me the #VALUE! error
=IF(K4=$X$250:$X$256,$Y$250:$Y$256,VLOOKUP(K4,$X$250:$Y$256,2,0))*T4+(H4*27.35)
To me the only difference is the location of the cells that are getting selected. Am I wrong?
One that works
=IF(A12=$J12:$J18,$K$11:$K$17,VLOOKUP(A12,$J$11:$K$17,2,0))*B12+(C12*27.35)
One that gives me the #VALUE! error
=IF(K4=$X$250:$X$256,$Y$250:$Y$256,VLOOKUP(K4,$X$250:$Y$256,2,0))*T4+(H4*27.35)
To me the only difference is the location of the cells that are getting selected. Am I wrong?