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

I am looking in a particular column for names and a want to return the data
below the name to a second sheet. I have used =MATCH(D1,Apr!$AG$1:$AG$658,0)
which will return the row number where the lookup name appears. I have also
used the index function to return the information in the cell but doing it
that way I would have to change the formula in each cell downward. I know
there is a better way.

Thanks for any help.

Sheet 1
Column A
Name1
data1
data2
data3
Name2
data1
data2
data3

Sheet 2
A B
Name1 Name 2
data1 data1
data2 data2
data3 data3
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 150
Default Lookup

Assuming that the format is consistent, try...

A1, copied down and across:

=INDEX(Sheet1!$A$1:$A$8,(ROWS(A$1:A1)-1)+(COLUMNS($A1:A1)*4-4+1))

Hope this helps!

In article ,
hcesc wrote:

I am looking in a particular column for names and a want to return the data
below the name to a second sheet. I have used =MATCH(D1,Apr!$AG$1:$AG$658,0)
which will return the row number where the lookup name appears. I have also
used the index function to return the information in the cell but doing it
that way I would have to change the formula in each cell downward. I know
there is a better way.

Thanks for any help.

Sheet 1
Column A
Name1
data1
data2
data3
Name2
data1
data2
data3

Sheet 2
A B
Name1 Name 2
data1 data1
data2 data2
data3 data3

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Lookup

I tried to figure out how I could get it to work for my situation but but was
unsuccessful.
This is what I have but it isn't working:
=INDEX(Apr!$AG$1:$AG$658,MATCH(B$1,Apr!$AG$1:$AG$6 58,0)-1)+(COLUMNS($AG1:AG1)*4-4+1))

I am doing a Match to find the row number of the Name I am searching for
because they will not be in the same order in both sheets.

Once I find the name the data would be in the same order from sheet to sheet.



Also

"Domenic" wrote:

Assuming that the format is consistent, try...

A1, copied down and across:

=INDEX(Sheet1!$A$1:$A$8,(ROWS(A$1:A1)-1)+(COLUMNS($A1:A1)*4-4+1))

Hope this helps!

In article ,
hcesc wrote:

I am looking in a particular column for names and a want to return the data
below the name to a second sheet. I have used =MATCH(D1,Apr!$AG$1:$AG$658,0)
which will return the row number where the lookup name appears. I have also
used the index function to return the information in the cell but doing it
that way I would have to change the formula in each cell downward. I know
there is a better way.

Thanks for any help.

Sheet 1
Column A
Name1
data1
data2
data3
Name2
data1
data2
data3

Sheet 2
A B
Name1 Name 2
data1 data1
data2 data2
data3 data3


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 150
Default Lookup

A little unclear, but assuming that B1, C1, D1, etc., contain the name,
try...

B2, copied down and across:

=INDEX(Apr!$AG$1:$AG$658,MATCH(B$1,Apr!$AG$1:$AG$6 58,0)+ROWS(B$2:B2))

Hope this helps!

In article ,
hcesc wrote:

I tried to figure out how I could get it to work for my situation but but was
unsuccessful.
This is what I have but it isn't working:
=INDEX(Apr!$AG$1:$AG$658,MATCH(B$1,Apr!$AG$1:$AG$6 58,0)-1)+(COLUMNS($AG1:AG1)*
4-4+1))

I am doing a Match to find the row number of the Name I am searching for
because they will not be in the same order in both sheets.

Once I find the name the data would be in the same order from sheet to sheet.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Lookup

That worked, thanks alot!

"Domenic" wrote:

A little unclear, but assuming that B1, C1, D1, etc., contain the name,
try...

B2, copied down and across:

=INDEX(Apr!$AG$1:$AG$658,MATCH(B$1,Apr!$AG$1:$AG$6 58,0)+ROWS(B$2:B2))

Hope this helps!

In article ,
hcesc wrote:

I tried to figure out how I could get it to work for my situation but but was
unsuccessful.
This is what I have but it isn't working:
=INDEX(Apr!$AG$1:$AG$658,MATCH(B$1,Apr!$AG$1:$AG$6 58,0)-1)+(COLUMNS($AG1:AG1)*
4-4+1))

I am doing a Match to find the row number of the Name I am searching for
because they will not be in the same order in both sheets.

Once I find the name the data would be in the same order from sheet to sheet.


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
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
How do I lookup and return different values when the lookup value. kg Excel Discussion (Misc queries) 1 January 20th 05 12:53 AM


All times are GMT +1. The time now is 08:16 AM.

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"