Lookup up in cells with formulas

  • Thread starter Thread starter Jennifer Waterhouse
  • Start date Start date
J

Jennifer Waterhouse

I'm having a problem with the Lookup function.
The cells that the lookup function is searching have a formula in them. (SUM)
This is buggering up the Lookup function. Is there a way for the Lookup function to overlook the formulas and just search the results or hide the formula in some way so the Lookup doesn't read them?

Thanks in advance
Jen
 
Hi
LOOKUP should work without a problem on formula results.
You may post your lookupm formula and your sum formula as well

--
Regards
Frank Kabel
Frankfurt, Germany

I'm having a problem with the Lookup function.
The cells that the lookup function is searching have a formula in them.
(SUM)
This is buggering up the Lookup function. Is there a way for the
Lookup function to overlook the formulas and just search the results or
hide the formula in some way so the Lookup doesn't read them?

Thanks in advance
Jen
 
Column A Column B Column C Column D

2641 blue
2782 green
2693 yellow

Formula in D1 is =lookup(C1, A:A, B:B)
In the cells for column A the cell formula is =sum (E1*F1)
If I enter '2782' in cell C1 it returns BLUE. Same for any entry.

Jen
 
Check help for LOOKUP. You'll see that it requires that the first column be
sorted ascending. The data you show is not sorted.

Instead of LOOKUP, use VLOOKUP with all 4 arguments:

=VLOOKUP(C1,A:B,2,0)

With the last argument =0, the data in column A doesn't need to be sorted.
 
Hi
1. Probably your data is stored as 'Text' and not as number. Does the
formula
=ISNUMBER(A1)
return TRUE. If not you have a formating issue

2. Change your formula to
=E1*F1
No need for SUM
 
Thanx Myrna. That worked.

Myrna Larson said:
Check help for LOOKUP. You'll see that it requires that the first column be
sorted ascending. The data you show is not sorted.

Instead of LOOKUP, use VLOOKUP with all 4 arguments:

=VLOOKUP(C1,A:B,2,0)

With the last argument =0, the data in column A doesn't need to be sorted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top