Index, Match expert help needed.

barham

New Member
Joined
Jan 13, 2015
Messages
26
I used the below formula to get an exact match but it keeps returning a #N/A result:

=INDEX($C$10:$L$21,MATCH(C3,$B$10:$B$21,0),MATCH(C1,$C$9:$L$9,0))

Based on the information on table 1 and 2, I need a value on cell C4. In looking at the table the answer should be 15 but the formula is not returning a valid number. Please help.

Thank you

ColumnsTable 1
ABCDEFGHIJKL
Rows1Day of month19202122232425262728
2Date2/19/20152/20/20152/21/20152/22/20152/23/20152/24/20152/25/20152/26/20152/27/20152/28/2015
3MonthFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruaryFebruary
4#N/A
5
6
7Table 2
8
9Day of Month19202122232425262728
10January91113581611151512
11February151515881814152117
12March151516881814152117
13April201416972419201918
14May25141313111919282214
15June32181711112115322519
16July251729883023252323
17August28152614112524282029
18September35182114122123422624
19October33222211173324323125
20November29292915153427294133
21December41222517142535413028

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Need to isolate which (if not both) of the Match functions is returning #N/A

Put the 2 matches into seperate cells
=MATCH(C3,$B$10:$B$21,0)
and
=MATCH(C1,$C$9:$L$9,0)

Which one (or both) returns #N/A ?
 
Upvote 0
They both return the #N/A. I think I have to use both Matches in order to find the value but do not understand why it returns an error.
 
Upvote 0
The only reason for MATCH to return N/A is because a match wasn't found...

Sounds like 1 of your tables is actually Dates, but formatted as either mmmm or dd, while the other is just text strings "January" or numbers 10 11 12 ect..

Take the first match
=MATCH(C3,$B$10:$B$21,0)

What EXACTLY is in C3, a TEXT string "January", or a DATE formatted as "mmmm" ?
Whichever it is, the values in B10:B21 are the opposite.

Same for the 2nd match
=MATCH(C1,$C$9:$L$9,0)

What exactly is in C1, a Date formatted as dd to show only the number, or just an actual number 10 11 12 ?
Whichver it is, the values in C9:L9 are the opposite.
 
Upvote 0
For C3, I used the date 2/19/15 and the Formula =Text(C2,"mmmm") and used the =text(c2,"D") for to come up with the 19 in C1.
 
Upvote 0
OK, that's half of it..

How did the January February values get into B10:B20, and the Day values into C9:L9 ?
 
Upvote 0
What I mean is, what are their actual values.
My guess is that they are DATES like 1/1/2015, but the cells are only formatted to show mmmm and/or d

Let's take the 2 matches one at a time.

Take the first match
=MATCH(C3,$B$10:$B$21,0)
Try changing that to
=MATCH(C2,$B$10:$B$21)

What do you get?
 
Upvote 0
For the purpose of my table, I cannot reference 2/19/15 but instead 19, 20, 21 etc because the table changes daily.

The january is in General and the figures are in numbers. Sorry for the confusion.
 
Upvote 0
If you don't mind, Providing me an email and I can send you the spreadsheet of what I'm actually dealing with. Thanks
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,547
Members
449,317
Latest member
chingiloum

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top