2 dimensional array lookup with TEXT chars in body of array. How do using array formulas?

ChetShannon

Board Regular
Joined
Jul 27, 2007
Messages
133
Office Version
  1. 365
Platform
  1. Windows
Hello,
I am trying to use a 2 dimensional array with a lookup value on the X-axis and one on the Y-axis. I know how to do this when there are numeric values in the body of the array. I would do it like this {=SUM(IF(G4:G6=G9,IF(H3:K3=G10,H4:K6)))} where G9 is the Y axis target lookup and G10 is the X axis target lookup, G4:G6 is Y axis header, H3:K3 is X axis header. This array formula will return the value at the intersection of G9 and G10's values. (Works fine when numeric values are in H4:K6.)

But how would one make this work when the body of the range (H4:K6) is non-numeric values (text for example) because the SUM won't work on the text values. Thanks! (I know there are other ways to do the 2 dimensional lookup using INDEX and MATCH but am looking for a simpler way using Array formulas.) Other methods referenced here - http://www.techonthenet.com/excel/formulas/2d_lookup3.php.

Chet
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Index/Match is the easiest solution here it seems

=INDEX($G$3:$K$6,MATCH(G9,$G$3:$G$6,0),MATCH(G10,$G$3:$K$3,0))
 
Upvote 0
Thank you so much! I was kind of hoping for an array based solution. (No special reason really. I just like the array solutions.)..
Chet
 
Upvote 0

Forum statistics

Threads
1,223,247
Messages
6,171,007
Members
452,374
Latest member
keccles

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