[mso] Re: Excel Lookup Function, corrected

  • From: Adam Peszel <aepeszel@xxxxxxxxx>
  • To: mso@xxxxxxxxxxxxx
  • Date: Sun, 18 Jan 2009 09:39:21 -0800 (PST)

Wilson,
I was laid up sick yesterday, so will try this today.
Thanks for the help, will let you know.
 
Adam
--- On Sat, 1/17/09, Wilson Baptista Junior <wilsonbaptista@xxxxxxxxxxxx> wrote:

From: Wilson Baptista Junior <wilsonbaptista@xxxxxxxxxxxx>
Subject: [mso] Re: Excel Lookup Function, corrected
To: mso@xxxxxxxxxxxxx
Date: Saturday, January 17, 2009, 9:37 AM

Hi, there was a typing error in my previous message, the table spans cells C4 to
G9, and not A4 to A9, and the side header runs from cell C5 to cell C9.
The formula is correct.
Sorry <g>
Wilson 

Yes, this can be done in Excel with one formula, although the formula will be a
somewhat lenghty one.
Lets assume that your table spans cells C4 to G9, with the side header running
from cell C5 to cell C9, and the top header running from cell D4 to G4.
Suppose that you have, in cell G2, the value of the variable you're going
to search for in the side header, and in cell H2 the constant you want to search
for.
The formula will be:

=LOOKUP(H2,OFFSET($D$4,MATCH(VLOOKUP(G2,$C$5:$C$9,1),$C$5:$C$9,0),0):OFFSET($G$4,MATCH(VLOOKUP(G2,$C$5:$C$9,1),$C$5:$C$9,0),0),$D$4:$G$4)

(beware of line wrap on the message)

Probably Linda or Diane will come up with a shorter and easier way to do this,
but this one works.
If you want to, I can send you, to your email address, the worksheet I used to
make up this example, as this list doesn't accept attachments.
Best,
Wilson

 Adam Peszel wrote:
>Hello,
>I am trying to run a lookup in Excel but do not know if this can be done.
>I have a populated table that cannot/should not be modified with a side
header of values,
>and a top header with values. I need to find a row for a variable using the
side header. Once 
>there, I need to find a cell with a value equal to or next value greater
than the a constant. I 
>then need to return the value in the column header that corresponds. Can
this be done?
> 
>One of my brothers said it is a reverse lookup and the only way he knows
this can be done
>is with Access. If this is the case, can I use OpenOffice Base to program
at home and 
>open it on Access at work? I know this is not a MS product, but I do not
have Access in my version of Office.  Plus, I have no clue how to use either.
> 
>Thank you in advance.
>Adam 


-------------------------------------------------------------- 

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top.  This will allow you to unsubscribe your email address
or change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group.
 This group will not allow for posting of emails, but will allow you to join and
share problem files, templates, etc.: 
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Esta mensagem foi verificada pelo E-mail Protegido Terra.
Atualizado em 17/01/2009


-------------------------------------------------------------- 

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the
dropdown menu at the top.  This will allow you to unsubscribe your email address
or change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group.
 This group will not allow for posting of emails, but will allow you to join and
share problem files, templates, etc.: 
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************



      
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, visit the group's homepage and use the dropdown 
menu at the top.  This will allow you to unsubscribe your email address or 
change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to share files with the group, you must join our Yahoo sister group. 
 This group will not allow for posting of emails, but will allow you to join 
and share problem files, templates, etc.:  
http://tech.groups.yahoo.com/group/MicrosoftOffice . This group is for FILE 
SHARING ONLY.

If you are using Outlook and you see a lot of unnecessary code in your email 
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************

Other related posts: