Formula to return data if it matches row and column

macroos

New Member
Joined
May 30, 2018
Messages
45
Hi,

I have a set of data here.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][/TD]
[TD]5/1/18[/TD]
[TD]6/1/18[/TD]
[TD]7/1/18[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]U1[/TD]
[TD]50[/TD]
[TD]40[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]U2[/TD]
[TD]40[/TD]
[TD]30[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]U3[/TD]
[TD]30[/TD]
[TD]20[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]U4[/TD]
[TD]20[/TD]
[TD]10[/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]










In this table below, I want to have formulas in the empty cells to give me the values that matches row that contains U1 and U3 and column that contains 5/1/18 and 6/1/18.
So it should give me values that are in red in the table above.
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]5/1/18[/TD]
[TD]6/1/18[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]U1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]U3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]






Thanks for your help in advance and I hope my question is not confusing.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Hi,

Do you mean this:


Book1
ABCD
15/1/20186/1/20187/1/2018
2U1504030
3U2403020
4U3302010
5U420100
6
7
85/1/20186/1/2018
9U15040
10U33020
Sheet184
Cell Formulas
RangeFormula
B9=SUMPRODUCT(($A$2:$A$5=$A9)*($B$1:$D$1=B$8)*$B$2:$D$5)


Formula copied down and across.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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