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>
 
If the values in C9 to L9 are just numbers, 19 20 etc..

Then this should fix the 2nd match
MATCH(C1+0,$C$9:$L$9,0)

Because =text(c2,"D") is returning a TEXT string, even if it looks like a number, excel considers it TEXT so it won't match to the numbers.


Now for this match
=MATCH(C3,$B$10:$B$21,0)
You're saying C3 is =Text(C2,"mmmm")
And the values in B10 to B21 are formatted as General, and showing January February etc..

I can't imagine why that would be #N/A
Except to check for EXACT spelling, and extra spaces in B10 to B21
" January" or "January "
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
The problem may the format of date of month on row 1 are text but the date of month on row 9 are number. Please try this for date on row1

=value(text(c2,"d")
 
Upvote 0
Using MATCH(C1+0,$C$9:$L$9,0) did the trick. I am forever grateful to you.

Thank you in abundance.
 
Upvote 0

Forum statistics

Threads
1,215,091
Messages
6,123,062
Members
449,090
Latest member
fragment

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