Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Index/Match for 2 columns?

I am looking for a way to match info in Column A AND Column B, then return
the appropriate value from Column C from the same row.

Column A is "plant names" and could have 4 rows of "Holly". Column B is
"size" and would distinguish the 4 hollies by size: 1g, 5g, 7g, 10g. I want
a formula that will look up the plant name, find the correct size, and return
the value in that row from Column C ("price").

Column A is not alphabetized, and has 450-500 rows. Column B repeats the
same possible sizes throughout the column. (1g, 5g, 7g, 10g)

Is there a formula for that? Please help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 63
Default Index/Match for 2 columns?

With plant name in F1 and size in G1, use:

=INDEX(C1:C20,MATCH(F1&G1,A1:A20&B1:B20,0))

Array-entered, meaning press ctrl + shift + enter.

HTH
Jason
Atlanta, GA

-----Original Message-----
I am looking for a way to match info in Column A AND

Column B, then return
the appropriate value from Column C from the same row.

Column A is "plant names" and could have 4 rows

of "Holly". Column B is
"size" and would distinguish the 4 hollies by size: 1g,

5g, 7g, 10g. I want
a formula that will look up the plant name, find the

correct size, and return
the value in that row from Column C ("price").

Column A is not alphabetized, and has 450-500 rows.

Column B repeats the
same possible sizes throughout the column. (1g, 5g, 7g,

10g)

Is there a formula for that? Please help.
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Index/Match for 2 columns?

Jason,
Thanks so much for your kind attempt to help me. I appreciate your reply.
I am slow on this program, so forgive my slow response. I have been working
on this since yesterday. I have tried your suggestion, but it is not working
for me. I keep getting #VALUE. I also tried to change it to include the
total table reference for index and a column number to return, but it also
returns a #VALUE. Unfortunately, I don't know enough to know what I don't
know. Below are my two attempts. Can you see my error?
I am making an automatic order form. 'Plant name' and 'size' to be matched
to a price are named in cells G15 and C15 respectfully. The table reference
is another workbook (Current Price Sheet) and looks like this:

- A B C
D E
(r16) Botanical Name Common Name Size Price
Comments
(r17) Shrubs
(r18) illex cornuta... Dwarf Burford Holly 1 2.85
13" x 7"
(r19) illex cornuta... Dwarf Burford Holly 3 7.75
27" x 24"
this table continues to row 500.

'Plant name' entered in G15 should be looked up in column B. 'Size' entered
in C15 should match column C. Once the row with both matches is found, I want
the price in Column D returned. Column B is not alphabetized.

Here is my attempt to try your suggestion:

=INDEX('[Current Price
Sheet.xls]Sheet1'!$D$18:$D$500,MATCH($G$15&$C$15,'[Current Price
Sheet.xls]Sheet1'!$B$18:$B$500&'[Current Price
Sheet.xls]Sheet1'!$C$18:$C$500,0))

it returns #VALUE

Here is my attempt to try your suggestion with some things I added:

=INDEX('[Current Price
Sheet.xls]Sheet1'!$B$18:$D$500,MATCH($G$15&$C$15,'[Current Price
Sheet.xls]Sheet1'!$B$18:$B$500&'[Current Price
Sheet.xls]Sheet1'!$C$18:$C$500,0),3)

this also returns #VALUE.

I have also included the 16th row (column labels) in the formulas, with the
same response.

What am I doing wrong? (Besides the obvious: trying to do something way over
my head:))

Sorry to be so difficult to help, and hope you are not sorry you got
involved. Any more help you can send my way is truly appreciated.

Miss S.





"Jason Morin" wrote:

With plant name in F1 and size in G1, use:

=INDEX(C1:C20,MATCH(F1&G1,A1:A20&B1:B20,0))

Array-entered, meaning press ctrl + shift + enter.

HTH
Jason
Atlanta, GA

-----Original Message-----
I am looking for a way to match info in Column A AND

Column B, then return
the appropriate value from Column C from the same row.

Column A is "plant names" and could have 4 rows

of "Holly". Column B is
"size" and would distinguish the 4 hollies by size: 1g,

5g, 7g, 10g. I want
a formula that will look up the plant name, find the

correct size, and return
the value in that row from Column C ("price").

Column A is not alphabetized, and has 450-500 rows.

Column B repeats the
same possible sizes throughout the column. (1g, 5g, 7g,

10g)

Is there a formula for that? Please help.
.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Index/Match for 2 columns?

Okay, take 2 on the 'Current Price Sheet' Table:


A B C D E
Botanical N. Common N. Size Price Comments
SHRUBS
illex... Holly 1 2.85 13" x 7"
illex... Holly 3 7.75 27" x 24"

row 16 is titles for columns.
row 17 is blank except for A17

Hope this posts correctly this time.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Index/Match for 2 columns?

Your advice was perfect. It works like a charm!
I went back and found my error. (my size entry had a 'g' after the numbers
in c15 causing no match. Silly. I removed the g's.)
Thanks for everything!


"Jason Morin" wrote:

With plant name in F1 and size in G1, use:

=INDEX(C1:C20,MATCH(F1&G1,A1:A20&B1:B20,0))

Array-entered, meaning press ctrl + shift + enter.

HTH
Jason
Atlanta, GA

-----Original Message-----
I am looking for a way to match info in Column A AND

Column B, then return
the appropriate value from Column C from the same row.

Column A is "plant names" and could have 4 rows

of "Holly". Column B is
"size" and would distinguish the 4 hollies by size: 1g,

5g, 7g, 10g. I want
a formula that will look up the plant name, find the

correct size, and return
the value in that row from Column C ("price").

Column A is not alphabetized, and has 450-500 rows.

Column B repeats the
same possible sizes throughout the column. (1g, 5g, 7g,

10g)

Is there a formula for that? Please help.
.


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
Index and match across columns Very lost Excel Discussion (Misc queries) 5 February 3rd 09 10:33 AM
Using INDEX & MATCH to search different columns Scott A[_2_] Excel Discussion (Misc queries) 3 January 26th 09 07:32 AM
Index Match 2 columns 1 row deeds Excel Worksheet Functions 2 August 31st 08 09:36 AM
Index Match for 2 columns and one Row [email protected] Excel Worksheet Functions 11 September 28th 06 07:50 PM
Index/Match from multiple columns hgopp99 Excel Worksheet Functions 5 January 21st 06 06:13 PM


All times are GMT +1. The time now is 08:00 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"