Help with SUMPRODUCT, INDEX, MATCH Array Formula

Joyner

Well-known Member
Joined
Nov 15, 2005
Messages
1,202
I am looking for a formula that returns a value (number or text) from data that is in row one. I have a matrix from J5 to BU 85 (81 rows and 63 columns) and the data to be returns is from J1 to BU1. Only one row in the matrix will return the data from the cells in row one (only one match from column J) and if a hit (isnumber) in any column for that row, it should return the corresponding value/data from the same column in row one.

I have a formula that works to return the value I want, but I have to copy it across and down to account for all of the cells in the matrix. Then I would need to find the one row with the data, and find a way to return that to use it. The formula I have is =IF($J5=Assmt_Type,(IF(ISNUMBER(K5),INDEX(K$1:K5,1,1),"")),"")

What I would like is one formula to copy across to return the data from row one, for all rows, to find the row that has the value is column J =Assmt_Type (again only one of the rows will match).

I assume that this will be a combination of sumproduct, index, match, or a combination of other functions I haven’t considered, but I can’t figure out the combination.

Any help would be greatly appreciated.

Thanks

Using XP/2003
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Okay, maybe not as hard as I thought, I was able to do it with this formula copying across for each column.


=IF(SUMPRODUCT(--($J5:$J85=Assmt_Type),K$5:K$85)>0,K1,"")

Thanks
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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