Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default VLOOKUP / HLOOKUP Question

Hello,

I hope someone can help me. I have an Excel spreadsheet where I would
like to find out a value using the VLOOKUP or HLOOKUP. The problem I
have is that the value I am trying to find is not on the same row or
column as the Item I am looking up against. For example:

Cell B7 Contains "Peter", Cell C7 Conains "Age", Cell C8 contains "21".

Cell B10 Contains "Peter". In cell C10 I would like to do a lookup
against cell B10 "Peter" and return his age of "21", how can I do this?
I know it would be easier to have "21" on cell C7 but I am working
with a file which is downloaded from another system.

Thanks,

Brett

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default VLOOKUP / HLOOKUP Question

I presume B10 is on another sheet?

Try

=INDEX(Sheet1!C:C,MATCH(B10,Sheet1!A:A,0)+1)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Brett24" wrote in message
ups.com...
Hello,

I hope someone can help me. I have an Excel spreadsheet where I would
like to find out a value using the VLOOKUP or HLOOKUP. The problem I
have is that the value I am trying to find is not on the same row or
column as the Item I am looking up against. For example:

Cell B7 Contains "Peter", Cell C7 Conains "Age", Cell C8 contains "21".

Cell B10 Contains "Peter". In cell C10 I would like to do a lookup
against cell B10 "Peter" and return his age of "21", how can I do this?
I know it would be easier to have "21" on cell C7 but I am working
with a file which is downloaded from another system.

Thanks,

Brett



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default VLOOKUP / HLOOKUP Question

B10 is on the same sheet.

I tried your formula and it did not work. I do not understand why you
have used C:C or A:A).

Thanks,

Brett


Bob Phillips wrote:
I presume B10 is on another sheet?

Try

=INDEX(Sheet1!C:C,MATCH(B10,Sheet1!A:A,0)+1)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Brett24" wrote in message
ups.com...
Hello,

I hope someone can help me. I have an Excel spreadsheet where I would
like to find out a value using the VLOOKUP or HLOOKUP. The problem I
have is that the value I am trying to find is not on the same row or
column as the Item I am looking up against. For example:

Cell B7 Contains "Peter", Cell C7 Conains "Age", Cell C8 contains "21".

Cell B10 Contains "Peter". In cell C10 I would like to do a lookup
against cell B10 "Peter" and return his age of "21", how can I do this?
I know it would be easier to have "21" on cell C7 but I am working
with a file which is downloaded from another system.

Thanks,

Brett


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default VLOOKUP / HLOOKUP Question

Because I am a prat, it should have been B:B not A:A in my example.

If it is on the same sheet, and there is very little room above B10, why do
you need a lookup at all?

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Brett24" wrote in message
oups.com...
B10 is on the same sheet.

I tried your formula and it did not work. I do not understand why you
have used C:C or A:A).

Thanks,

Brett


Bob Phillips wrote:
I presume B10 is on another sheet?

Try

=INDEX(Sheet1!C:C,MATCH(B10,Sheet1!A:A,0)+1)

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Brett24" wrote in message
ups.com...
Hello,

I hope someone can help me. I have an Excel spreadsheet where I would
like to find out a value using the VLOOKUP or HLOOKUP. The problem I
have is that the value I am trying to find is not on the same row or
column as the Item I am looking up against. For example:

Cell B7 Contains "Peter", Cell C7 Conains "Age", Cell C8 contains "21".

Cell B10 Contains "Peter". In cell C10 I would like to do a lookup
against cell B10 "Peter" and return his age of "21", how can I do this?
I know it would be easier to have "21" on cell C7 but I am working
with a file which is downloaded from another system.

Thanks,

Brett




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
VLOOKUP question Cacoe Excel Worksheet Functions 2 August 1st 06 10:12 PM
Vlookup question aka_krakur Excel Discussion (Misc queries) 2 July 29th 06 12:17 AM
VLOOKUP question duration Excel Worksheet Functions 9 July 11th 06 03:25 PM
VLookup and HLookup at the same time Steven Excel Worksheet Functions 3 August 22nd 05 09:16 PM
Vlookup and Hlookup Phlogiston2312 Excel Worksheet Functions 1 April 21st 05 04:59 PM


All times are GMT +1. The time now is 03:13 AM.

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

About Us

"It's about Microsoft Excel"