Formula Help (IF? DSUM? LOOKUP?)

garymu16

Board Regular
Joined
Sep 15, 2006
Messages
139
Book2
ABCDEFGHIJK
1TableAPR
2SalesMonthYTD
3ProductA14
4ProductB28
5ProductC312
6
7DataMonthCumulative
8Jan-06Feb-06Mar-06Apr-06Jan-06Feb-06Mar-06Apr-06
9ProductA11111234
10ProductB22222468
11ProductC333336912
Sheet1


I am trying to set up a spreadsheet which will read, in this example, cell D1, lookup the product name and return the values for the appropriate month & YTD, based on the data entry tables.

Can anyone help out?

P.S. Cell D1 should read Apr-06 not APR as in my example - Apologies
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi

C3: =SUMPRODUCT(--($B$9:$B$11=$B3),(OFFSET($B$9:$B$11,0,MATCH($D$1,$C$8:$F$8,0))))
D3: =SUMPRODUCT(--($B$9:$B$11=$B3),(OFFSET($G$9:$G$11,0,MATCH($D$1,$H$8:$K$8,0))))

HTH

Tony
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,657
Members
449,462
Latest member
Chislobog

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