Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a spreadsheet with several different worksheets. On Worksheet 1, I
have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
=index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
opps I missed something use
=index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000,0)) "Eduardo" wrote: Hi, =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Eduardo" wrote: opps I missed something use =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000,0)) "Eduardo" wrote: Hi, =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for the speedy reply, however, 2 things:
1. I received a REF! error 2. The formula you suggested would not work if the user entered in Str 91-01 Opening Dir NE on Sheet 2. Is there a formula that would check the whole spreadsheet? Thanks "Eduardo" wrote: opps I missed something use =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000,0)) "Eduardo" wrote: Hi, =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
91-01 has to be in sheet 1, what the formula does is index = is the field where the information is taking from first match look for 95-01 or what you enter in a2 in sheet 1 then goes to the secongd match and look for the opening direction when both criterias are met it pull the information from column C, in sheet 1 both the opening direction and the structure number have to exist "sjoseph371" wrote: Thanks for the speedy reply, however, 2 things: 1. I received a REF! error 2. The formula you suggested would not work if the user entered in Str 91-01 Opening Dir NE on Sheet 2. Is there a formula that would check the whole spreadsheet? Thanks "Eduardo" wrote: opps I missed something use =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000,0)) "Eduardo" wrote: Hi, =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I got it to work - kind of . . .
First, I had to do the {} thing around the formula. But, what if the information is NOT in column C. i.e. when I entered in Str = 95-03 Opening Dir = W The result was "N/A" since W was in Column E. Is there a way to get it to search Column E if it does not find the value in Column C, then if it's not in Column C or E to search in Column G? Thanks again. "Eduardo" wrote: Hi, 91-01 has to be in sheet 1, what the formula does is index = is the field where the information is taking from first match look for 95-01 or what you enter in a2 in sheet 1 then goes to the secongd match and look for the opening direction when both criterias are met it pull the information from column C, in sheet 1 both the opening direction and the structure number have to exist "sjoseph371" wrote: Thanks for the speedy reply, however, 2 things: 1. I received a REF! error 2. The formula you suggested would not work if the user entered in Str 91-01 Opening Dir NE on Sheet 2. Is there a formula that would check the whole spreadsheet? Thanks "Eduardo" wrote: opps I missed something use =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000,0)) "Eduardo" wrote: Hi, =index(sheet1!$D$1:$D$1000,match(a2,sheet1!$A$1:$A $1000,0),match(B2,sheet1!$C$1:$C$1000)) change range to meet your needs "sjoseph371" wrote: I have a spreadsheet with several different worksheets. On Worksheet 1, I have the following: (Col A) Structure Number, (Col B) Opening Height 1, (Col C) Opening Direction 1 (N, S, E, W), (Col D) Opening Height 2, (Col E) Opening Direction 2 (N, S, E, W), (Col F) Opening Height 3, (Col G) Opening Direction 2 (N, S, E, W), (Col H) Opening Height 4, (Col I) Opening Direction 4 (N, S, E, W) There are over 100 rows, 1 for each structure. Some structures have just 1 opening, and some have multiple openings. On Worksheet 2, the user will enter: (Col A) Structure Number and (Col B) Opening Direction. I want Column C to search Worksheet 1 and give the Opening Height automatically. For example, Worksheet 1 has: (A) (B) (C ) (D) (E) (F) (G) (row) STR # OPENING1 OPENING1 OPENING2 OPENING2 OPENING3 OPENING3 HGT DIR HGT DIR HGT DIR 1 95-01 2.400 NE 2.300 SE 2 95-02 3.050 SW 3 95-03 4.900 E 4.900 W 4 95-04 4.880 SW 4.880 E 5.730 NE On Worksheet 2, when the user enters 95-01 in Col A and SE in Col B, I want the program to automatically give me 2.300 in Col C. Is there a function (or combination of functions) that lets me do this. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2007 Table
And/Or search http://c0718892.cdn.cloudfiles.racks...03_24_10c.xlsx Pdf preview: http://c0718892.cdn.cloudfiles.racks.../03_24_10c.pdf |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Herbert,
Thanks for the info and all of teh work it looks like you put into your solution, but I should have clarified that I have Excel 2003 and it doesn't support the function you suggested. Unfortunately, I'm using this at my workplace, and 2003 is the only version they have and probably won't be updated anytime. We're a large company, so there's the licensing issue, but not so large that it's not a financial burden to do so. If you have a suggestion for the 2003 version, I'd appreciate it. Again, thanks for all of your work. Joe "Herbert Seidenberg" wrote: Excel 2007 Table And/Or search http://c0718892.cdn.cloudfiles.racks...03_24_10c.xlsx Pdf preview: http://c0718892.cdn.cloudfiles.racks.../03_24_10c.pdf . |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Excel 2003
Converted from previous 2007 file. http://www.mediafire.com/file/ddouwzfzton/03_24_10c.xls |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Match multiple columns in 2 spreadsheets | Excel Discussion (Misc queries) | |||
Vlookup with Multiple Columns to Match | Excel Discussion (Misc queries) | |||
Match Multiple Columns | Excel Worksheet Functions | |||
Match Data in Multiple Columns | Excel Discussion (Misc queries) | |||
I need to match multiple columns before returning a value | Excel Discussion (Misc queries) |