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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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