SUM/Lookup database

Bravo2003

Active Member
Joined
Apr 1, 2010
Messages
278
Office Version
  1. 365
Platform
  1. Windows
This is probably very simple, but I can't think of the right solution at present.

Spreadsheet


On a seperate Sheet, i need to add a formula that will look across row 1 for xDate, then row 2 to find Header Title then find row related to Totals in Column A and result with the answer to that column/Row intersection.

Example- Find Total Number for Feb 19 = 7 (G6)

To Note, total row will move up/down depending on imported data,

Date and headers can be based on a lookup option, i.e the headers/dates will be included as headers in the new results sheet. But not included in the same repeat layout!

Any tips?
 

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
try this


Book1
ABCDEFGHIJKL
1Feb-19
2Number
3
4
5
6
7
8Total7
9
10
11Feb-19NumberTotal7
Sheet2
Cell Formulas
RangeFormula
D11=SUMPRODUCT(--($A$1:$A$8=$C11)*--($A$1:$L$1=$A11)*--($A$2:$L$2=$B11),$A$1:$L$8)
 
Upvote 0
try this

ABCDEFGHIJKL
1Feb-19
2Number
3
4
5
6
7
8Total7
9
10
11Feb-19NumberTotal7

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
D11=SUMPRODUCT(--($A$1:$A$8=$C11)*--($A$1:$L$1=$A11)*--($A$2:$L$2=$B11),$A$1:$L$8)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thanks, Ive got this to work using this adjusted formula

=SUMPRODUCT(--('2018 Sales'!$B1:$B600="Overall Result")*--('2018 Sales'!$B$16:$BY$16="January 2018")*--('2018 Sales'!$B$17:$BY$17=$BK$60),'2018 Sales'!$B1:$BY600)

But because the date headers on each sheet don't format the same (master data is imported in January 2018 format, but results sheet won't format the same and is Jan-18

Anyway to adjust so I can just copy paste the formula along for different months/years and not have to over write the date in formula?
 
Upvote 0
different format of dates should work, see below.
may be some dates are stored as text


Book1
ABCDEFGHIJKL
1January 2018
2Number
3
4
5
6
7
8Total7
9
10
11Jan-18NumberTotal7
Sheet1
Cell Formulas
RangeFormula
D11=SUMPRODUCT(--($A$1:$A$8=$C11)*--($A$1:$L$1=$A11)*--($A$2:$L$2=$B11),$A$1:$L$8)
 
Upvote 0
Thanks, Ive got this to work using this adjusted formula

=SUMPRODUCT(--('2018 Sales'!$B1:$B600="Overall Result")*--('2018 Sales'!$B$16:$BY$16="January 2018")*--('2018 Sales'!$B$17:$BY$17=$BK$60),'2018 Sales'!$B1:$BY600)

But because the date headers on each sheet don't format the same (master data is imported in January 2018 format, but results sheet won't format the same and is Jan-18

Anyway to adjust so I can just copy paste the formula along for different months/years and not have to over write the date in formula?

try change the "January 2018" to

=DATEVALUE(TEXT("January 2018","MMM-YY"))
 
Upvote 0
try change the "January 2018" to

=DATEVALUE(TEXT("January 2018","MMM-YY"))

Yes, i think it's the imported data January 2018 is set as text. unfortunately I can't amend the format for this as it's imported and updated at least once a day and I don't want to have to keep having to set the format for the imported data everytime.

:(
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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