#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jam jam is offline
external usenet poster
 
Posts: 4
Default Lookup Question

Hi
I have this problem
A1
Ar Th Math res chem mater draw e1 inf top hy ws draws
45 70 80 55 60 70 80 46 70 80 57 70 80 45 55 46 57
46 57 4 3 3
I have data from a1 to m1
in n2 min of a2 to c2
in o2 min of d2 to g2
in p2 min of h2 to j2
in q2 min of k2 to m2
in r2 this formula IF(N2P2;N2;P2)
in s2 this formula IF(O2Q2;O2;Q2)
in t2 this formula 50-R2
in u2 this formula 60-S2
in v2 this formula IF(T2U2;U2;T2)
in w2 tis formula IF(V2=3;LOOKUP(S2;A2:M2;C1:M1)) which give math which
is not correct, is this because lookup wants the data in ascending
order, I can not put in this order any help
Thank you all in advance
Regards
Jam

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 594
Default Lookup Question

If you put your "Header" row at the bottom of the data, rather than at the
top, and use HLOOKUP with the FALSE option instead of LOOKUP, you should be
able to achieve the returns you seek...........although, in case of
duplicates, you will only receive a return for the first occurance.

Vaya con Dios,
Chuck, CABGx3



"jam" wrote in message
ups.com...
Hi
I have this problem
A1
Ar Th Math res chem mater draw e1 inf top hy ws draws
45 70 80 55 60 70 80 46 70 80 57 70 80 45 55 46 57
46 57 4 3 3
I have data from a1 to m1
in n2 min of a2 to c2
in o2 min of d2 to g2
in p2 min of h2 to j2
in q2 min of k2 to m2
in r2 this formula IF(N2P2;N2;P2)
in s2 this formula IF(O2Q2;O2;Q2)
in t2 this formula 50-R2
in u2 this formula 60-S2
in v2 this formula IF(T2U2;U2;T2)
in w2 tis formula IF(V2=3;LOOKUP(S2;A2:M2;C1:M1)) which give math which
is not correct, is this because lookup wants the data in ascending
order, I can not put in this order any help
Thank you all in advance
Regards
Jam



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Lookup Question


I think your ranges should be the same size, why C1:M1 and A2:M2?
Regardless perhaps this sort of arrangement....

IF(V2=3;INDEX(A1:M1;MATCH(S2;A2:M2;0)))

btw you could simplify formulas such as

=IF(N2P2;N2;P2)

to

=MAX(N2;P2)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=557560

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jam jam is offline
external usenet poster
 
Posts: 4
Default Lookup Question

Thank you Daddylonglegs
A2 and M2 is typing error
The problem is beautifully solved
Regards
Jam
daddylonglegs wrote:
I think your ranges should be the same size, why C1:M1 and A2:M2?
Regardless perhaps this sort of arrangement....

IF(V2=3;INDEX(A1:M1;MATCH(S2;A2:M2;0)))

btw you could simplify formulas such as

=IF(N2P2;N2;P2)

to

=MAX(N2;P2)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=557560


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup function gives wrong values occasionally [email protected] Excel Discussion (Misc queries) 3 July 1st 06 12:58 AM
How can I isolate a lookup vectors but not values from autofill? rjpeltz Excel Worksheet Functions 2 May 15th 06 07:41 PM
LOOKUP a text string created from IF statement Steve-in-austin Excel Discussion (Misc queries) 0 May 11th 06 09:10 PM
Lookup Type Question carl Excel Worksheet Functions 1 March 8th 05 08:30 PM
Formula Question... LookUP G Excel Discussion (Misc queries) 4 March 7th 05 01:38 AM


All times are GMT +1. The time now is 08:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"