Horizontal and Vertical Lookup with date possible?

PaigeHer

New Member
Joined
Nov 17, 2015
Messages
7
I am wrecking my brain over what formula to use to summarize data (into a chart) using the data tab.

Below on the Summary tab I would like to know how many Fruit, total AND individual, do I want and how many I've purchased for each date. As time passes, I will change the date in Row 2 and I would like if the data still pulled the data into the summary table.

Summary tab:
A1BCD
2Fruit8/19/1
3WantFormula?Formula?
4PurchasedFormula?Formula?
5AppleFormula?Formula?
6BananaFormula?Formula?
7LemonFormula?Formula?

<tbody>
</tbody>











Data tab:
A1BCDEFG
28/18/19/19/1
3FoodTypeWantPurchasedWantPurchased
4FruitApple626
5FruitLemon516
6FruitBanana10312
7FruitApple312

<tbody>
</tbody>

I've tried a Vlookup, =VLOOKUP($B4,Data!$D:$DD,2,FALSE), to return data but I would need to change the column number for each formula.

I've also tried Sum Product, =SUMPRODUCT((Data!B3:B500=B2)*(Data!E2:DL2=B3)*(Data!E1:DL1=C2),Data!E3:DL500), but that isn't working either.

Any other suggestions on how this can work?
 

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.
Hello,

In cell B2 (next to want) enter

=SUMPRODUCT(--(Data!$C$1:$F$1=B$1)*(--(Data!$C$2:$F$2=$A2)*(Data!$C$3:$F$6)))

and copy down a row and across as far as required.

In cell B4 (next to Apple) enter

=SUMPRODUCT(--(Data!$C$1:$F$1=B$1)*(--(Data!$B$3:$B$6=$A4)*(Data!$C$3:$F$6)))

and copy down a row and across as far as required.

You will need to tweak to ranges to suit your exact requirements. In my example DATA tab, C1:F1 are the dates, C2:F2 = WANT/PURCHASED, C3:F6 are the values. B3:B6 = Fruit Types.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,424
Members
448,896
Latest member
MadMarty

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