A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

index match



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2008, 11:03 PM posted to microsoft.public.excel.worksheet.functions
anthon
external usenet poster
 
Posts: 2
Default index match

A B C D
ROW 5 1 65 6 56
ROW 6 2 100 7 41
ROW 7 3 34 8 32
ROW 8 4 6 9 43
ROW 9 5 8 10 5

I have 4 columns as above in one sheet, I want to match the numbers 1 to 10
and return the values in the column matching the number in another sheet as
below. Please note, the above format changes on a daily basis as it comes
from a web query e.g tomorrow there might only be 8 numbers, in which case 5
in A9 will move to C5 and A9 and C 9 will then be blank.

A B
ROW 5 1 65
2 100
3 34
4 6
5 8
6 56
7 41
8 32
9 43
Row14 10 5

The formula should be in B5 through B14 , is this possible? Thanks. Anthon.

  #2  
Old August 1st, 2008, 11:50 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default index match

10 formulas, wherever you want them:

=A5
=A6
=A7
=A8
=IF(A9="",C5,A9)
=IF(A9="",C6,C5)
=IF(A9="",C7,C6)
=IF(A9="",C8,C7)
=IF(A9="","",C8)
=IF(A9="","",C9)

You could do it with one formula, but it would be more complex and harder to
understand.

HTH,
Bernie
MS Excel MVP


"Anthon" wrote in message
...
A B C D
ROW 5 1 65 6 56
ROW 6 2 100 7 41
ROW 7 3 34 8 32
ROW 8 4 6 9 43
ROW 9 5 8 10 5

I have 4 columns as above in one sheet, I want to match the numbers 1 to
10
and return the values in the column matching the number in another sheet
as
below. Please note, the above format changes on a daily basis as it comes
from a web query e.g tomorrow there might only be 8 numbers, in which case
5
in A9 will move to C5 and A9 and C 9 will then be blank.

A B
ROW 5 1 65
2 100
3 34
4 6
5 8
6 56
7 41
8 32
9 43
Row14 10 5

The formula should be in B5 through B14 , is this possible? Thanks.
Anthon.



  #3  
Old August 2nd, 2008, 12:22 AM posted to microsoft.public.excel.worksheet.functions
smartin
external usenet poster
 
Posts: 780
Default index match

Anthon wrote:
A B C D
ROW 5 1 65 6 56
ROW 6 2 100 7 41
ROW 7 3 34 8 32
ROW 8 4 6 9 43
ROW 9 5 8 10 5

I have 4 columns as above in one sheet, I want to match the numbers 1 to 10
and return the values in the column matching the number in another sheet as
below. Please note, the above format changes on a daily basis as it comes
from a web query e.g tomorrow there might only be 8 numbers, in which case 5
in A9 will move to C5 and A9 and C 9 will then be blank.

A B
ROW 5 1 65
2 100
3 34
4 6
5 8
6 56
7 41
8 32
9 43
Row14 10 5

The formula should be in B5 through B14 , is this possible? Thanks. Anthon.



So are you just trying to look up the value in column B of the first
table and place it in the second table based on matching values in
columns A? (What is the significance of columns C & D in table 1?)

in table2!B5,
= VLOOKUP (A5, table1!$A:$A, 2, false)
fill down.

or, since you say values might be missing the the first table,

= If (ISNA(VLOOKUP (A5, table1!$A:$A, 2, false), "", VLOOKUP (A5,
table1!$A:$A, 2, false))
  #4  
Old August 2nd, 2008, 06:35 AM posted to microsoft.public.excel.worksheet.functions
RagDyeR
external usenet poster
 
Posts: 3,482
Default index match

Since you say that the configuration can change on a daily basis, I would
think that the simplest approach would be to treat each pair of columns as a
separate datalist, and poll them individually.
There would be no harm in oversizing them to the possible maximum size,
which I believe from your example is two 5 X 2 arrays.
It shouldn't matter if the next day it's two 4 X 2 arrays.

With data imported into Sheet1, and your lookup list on Sheet2, as you
described,
Enter this formula in B5 of Sheet2:

=IF(ISNA(MATCH(A5,Sheet1!A$5:A$9,0)),IF(ISNA(MATCH (A5,Sheet1!C$5:C$9,0)),"No
Match",VLOOKUP(A5,Sheet1!C$5$9,2,0)),VLOOKUP(A5, Sheet1!A$5:B$9,2,0))

Copy down to B14.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Anthon" wrote in message
...
A B C D
ROW 5 1 65 6 56
ROW 6 2 100 7 41
ROW 7 3 34 8 32
ROW 8 4 6 9 43
ROW 9 5 8 10 5

I have 4 columns as above in one sheet, I want to match the numbers 1 to

10
and return the values in the column matching the number in another sheet

as
below. Please note, the above format changes on a daily basis as it comes
from a web query e.g tomorrow there might only be 8 numbers, in which case

5
in A9 will move to C5 and A9 and C 9 will then be blank.

A B
ROW 5 1 65
2 100
3 34
4 6
5 8
6 56
7 41
8 32
9 43
Row14 10 5

The formula should be in B5 through B14 , is this possible? Thanks.

Anthon.


  #5  
Old August 2nd, 2008, 04:05 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default index match

=SUMPRODUCT((MOD(COLUMN(Sheet1!$A$5:$C$9),2)=1)*(S heet1!$A$5:$C$9=A5)*Sheet1!$B$5:$D$9)

copy down


"Anthon" wrote:

A B C D
ROW 5 1 65 6 56
ROW 6 2 100 7 41
ROW 7 3 34 8 32
ROW 8 4 6 9 43
ROW 9 5 8 10 5

I have 4 columns as above in one sheet, I want to match the numbers 1 to 10
and return the values in the column matching the number in another sheet as
below. Please note, the above format changes on a daily basis as it comes
from a web query e.g tomorrow there might only be 8 numbers, in which case 5
in A9 will move to C5 and A9 and C 9 will then be blank.

A B
ROW 5 1 65
2 100
3 34
4 6
5 8
6 56
7 41
8 32
9 43
Row14 10 5

The formula should be in B5 through B14 , is this possible? Thanks. Anthon.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:13 PM.


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