P
Peggi Stabler
I have two cells that I need to check before I can lookup
a value. I thought I did it right with nested if's and
then lookup within the 'true' part of the if, but it's not
working.
Here's what I got:
1) Check the first cell (a1) for 4,6,8,10 or 12;
2) Then check the second cell (a2) for
15,20,25,30,35,40,45,50,55,60,65,70,75 or 80;
3) Then based on the second cell's value (a2) go lookup
the appropriate value in a table (b1:c14):
15 100
20 190
25 290
30 400
35 520 etc. etc.
I tried this:
=if(a1=4,lookup(a2,b1:b14,c1c14),if(a1=6,lookup
(a2,b1:b14,c1c14),if(a1=8,lookup(a2,b1:b14,c1c14),if
(a1=10,lookup(a2,b1:b14,c1c14),if(a1=12,lookup
(a2,b1:b14,c1c14),"no!")))))
but it says I have too many arguments for this function,
etc. and it won't work.
Any ideas?? Even if it's another list or a better way to
search-I don't care, I just want it to work!
Thanks!!!
Peggi
a value. I thought I did it right with nested if's and
then lookup within the 'true' part of the if, but it's not
working.
Here's what I got:
1) Check the first cell (a1) for 4,6,8,10 or 12;
2) Then check the second cell (a2) for
15,20,25,30,35,40,45,50,55,60,65,70,75 or 80;
3) Then based on the second cell's value (a2) go lookup
the appropriate value in a table (b1:c14):
15 100
20 190
25 290
30 400
35 520 etc. etc.
I tried this:
=if(a1=4,lookup(a2,b1:b14,c1c14),if(a1=6,lookup
(a2,b1:b14,c1c14),if(a1=8,lookup(a2,b1:b14,c1c14),if
(a1=10,lookup(a2,b1:b14,c1c14),if(a1=12,lookup
(a2,b1:b14,c1c14),"no!")))))
but it says I have too many arguments for this function,
etc. and it won't work.
Any ideas?? Even if it's another list or a better way to
search-I don't care, I just want it to work!
Thanks!!!
Peggi