Help with INDEX/MATCH, looking to MATCH Variables in 2 columns

chrono2483

Board Regular
Joined
Aug 23, 2014
Messages
164
Office Version
  1. 2016
Hello,

I'm trying to build an array formula that will return the value, based on matching criteria from 2 columns within that spreadsheet.

Here is an example of the data, and what I've pieced together so far that is returning an #N/A:

ABCDEFGHIJKLMNOPQ
12016-07-012016-07-032016-07-04DessertCakes136867401368674224401108545783.62025371822531361042148$22.50
22016-07-012016-07-032016-07-04DessertPies12411450124114530018583735975.81390701049023093718340176943 $ 19.00
32016-07-012016-07-032016-07-04DessertCookies30595565687542490802558392182815977.62977852475218419067283243588 $ 15.75
42016-07-012016-07-032016-07-04DessertTarts19172720191727221638183842698.91968315126006512 $ 2.50
52016-07-012016-07-032016-07-04DessertIce Cream1857552279807157774554161497552565.7447122403595838507105266967 $ 5.00

<tbody>
</tbody>


{=INDEX('[Inventory.xlsx]Summary'!$C$2:$Q$5000,MATCH($A$1&$J$3,'[Inventory.xlsx]Summary'!$C$2:$C$5000&'[Inventory.xlsx]Summary'!$E$2:$E$5000,0))}

- where on my spreadsheet: A1 = today's date, and J3 = Cakes, I want the formula to return Q1 = $22.50


Is there something I am missing? Thanks!
 

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.
If you can guarantee at most 1 match in that table then:

=SUMPRODUCT(('[Inventory.xlsx]Summary'!$C$2:$C$5000=$A$1)*('[Inventory.xlsx]Summary'!$E$2:$E$5000=$J$3),'[Inventory.xlsx]Summary'!$Q$2:$Q$5000)

For your current formula, did you try changing the range for the INDEX to $Q$2:$Q$5000

WBD
 
Upvote 0
If you can guarantee at most 1 match in that table then:

=SUMPRODUCT(('[Inventory.xlsx]Summary'!$C$2:$C$5000=$A$1)*('[Inventory.xlsx]Summary'!$E$2:$E$5000=$J$3),'[Inventory.xlsx]Summary'!$Q$2:$Q$5000)

For your current formula, did you try changing the range for the INDEX to $Q$2:$Q$5000

WBD


Thanks WBD - i tried to chance the range for the INDEX to $Q$2:$Q$5000 - but this still returns #N/A

The formula that you provide didn't seem to work, and returned 0; both the Date in column C + the Item in column E must match, to return the value in Q.
 
Upvote 0
A
B
C
D
E
F
1
2016-07-01
2016-07-03
2016-07-04
Cakes
224401
$22.50
2
2016-07-01
2016-07-03
2016-07-04
Cookies
300185
$ 15.75
3
2016-07-01
2016-07-03
2016-07-04
Tarts
558392
$ 2.50
4
2016-07-01
2016-07-03
2016-07-05
Pies
541614
$ 19.00

<tbody>
</tbody>

N1 = 05/07/2016
N3 = Pies
N4 = where the formula will go, to return $19.00

Knowing both N1 and N3 must match, what formula would work to return F4 ($19.00)?

(Similarly, if M3 = Cookies, M4 would return F2 = $15.75)

Hopefully that example simplifies the ask.

Thanks!!!
 
Upvote 0
In N4 =INDEX(F:F,MATCH(N1&N3,C:C&D:D,0)) Ctrl Shift Enter

Make sure N1 is formatted correctly. I am assuming you meant July 5th 2016 and not May 7th 2016.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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