Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default INDEX MATCH #N/A Error

I am trying to figure out a formula to return a value from an array based on
two criteria (one is the row label--the other is the column label) which I
set up on Validation lists). In the end, I would like to be able to choose
the "Style" then the "Wood" type and have the formula return the price to me.
So using the data below, apple/Wood1 would return $22.00.

Can someone point me in the direction of my mistake?

The formula I have been trying to use is below and I get a #N/A error.

=INDEX(b5..d7, MATCH(apple, b5..d7,), MATCH(Wood1, b5..b7,))

A B C D
1 Style= apple
2 Wood= Wood1
3
4 Style Wood1 Wood2
5 apple $22.00 $29.00
6 banana $24.00 $31.00
7 carrot $26.00 $33.00
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default INDEX MATCH #N/A Error

Criterias
C1: holds criteria1
C2: holds criteria2

Create define names:
Wood1: C5:C7
Wood2: D5:D7
apple: C5:D5
banana: C6:D6
carrot: C7:D7

In D2: =INDIRECT(C1) INDIRECT(C2)


"wkjgmom" wrote:

I am trying to figure out a formula to return a value from an array based on
two criteria (one is the row label--the other is the column label) which I
set up on Validation lists). In the end, I would like to be able to choose
the "Style" then the "Wood" type and have the formula return the price to me.
So using the data below, apple/Wood1 would return $22.00.

Can someone point me in the direction of my mistake?

The formula I have been trying to use is below and I get a #N/A error.

=INDEX(b5..d7, MATCH(apple, b5..d7,), MATCH(Wood1, b5..b7,))

A B C D
1 Style= apple
2 Wood= Wood1
3
4 Style Wood1 Wood2
5 apple $22.00 $29.00
6 banana $24.00 $31.00
7 carrot $26.00 $33.00

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default INDEX MATCH #N/A Error

Thank you for the quick reply. I did this and am now getting an #REF! error.
I must have messed it up somewhere so I'm going to try it again. Follow up
question though, does it matter that C1 is a number formatted as text in my
real data?

"Teethless mama" wrote:

Criterias
C1: holds criteria1
C2: holds criteria2

Create define names:
Wood1: C5:C7
Wood2: D5:D7
apple: C5:D5
banana: C6:D6
carrot: C7:D7

In D2: =INDIRECT(C1) INDIRECT(C2)


"wkjgmom" wrote:

I am trying to figure out a formula to return a value from an array based on
two criteria (one is the row label--the other is the column label) which I
set up on Validation lists). In the end, I would like to be able to choose
the "Style" then the "Wood" type and have the formula return the price to me.
So using the data below, apple/Wood1 would return $22.00.

Can someone point me in the direction of my mistake?

The formula I have been trying to use is below and I get a #N/A error.

=INDEX(b5..d7, MATCH(apple, b5..d7,), MATCH(Wood1, b5..b7,))

A B C D
1 Style= apple
2 Wood= Wood1
3
4 Style Wood1 Wood2
5 apple $22.00 $29.00
6 banana $24.00 $31.00
7 carrot $26.00 $33.00

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default INDEX MATCH #N/A Error

Try this:

C1 = apple
C2 = wood1

=INDEX(C5:D7, MATCH(C1, B5:B7,0), MATCH(C2, C4:D4,0))

--
Biff
Microsoft Excel MVP


"wkjgmom" wrote in message
...
I am trying to figure out a formula to return a value from an array based
on
two criteria (one is the row label--the other is the column label) which I
set up on Validation lists). In the end, I would like to be able to
choose
the "Style" then the "Wood" type and have the formula return the price to
me.
So using the data below, apple/Wood1 would return $22.00.

Can someone point me in the direction of my mistake?

The formula I have been trying to use is below and I get a #N/A error.

=INDEX(b5..d7, MATCH(apple, b5..d7,), MATCH(Wood1, b5..b7,))

A B C D
1 Style= apple
2 Wood= Wood1
3
4 Style Wood1 Wood2
5 apple $22.00 $29.00
6 banana $24.00 $31.00
7 carrot $26.00 $33.00



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
Unexpected #N/A error from INDEX-MATCH combo [email protected] Excel Worksheet Functions 2 July 27th 07 01:13 PM
VALUE error with index(row.. match(true.. row.. nastech Excel Discussion (Misc queries) 2 July 8th 07 10:16 PM
Error suppressing with INDEX/MATCH BKO Excel Worksheet Functions 2 June 15th 07 03:50 PM
VLOOKUP, INDEX & MATCH ERROR HELP sahafi Excel Worksheet Functions 6 September 12th 06 11:26 PM
#num Error index, match taxmom Excel Worksheet Functions 6 March 7th 06 08:21 PM


All times are GMT +1. The time now is 06:29 PM.

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"