# Look up and Sum

#### dkuyper

##### New Member
I have a matrix of data on which I need to do some look up and sum. I think I need a combination of three formulas and just wondered if there is a simple way of doing this. I need to look up the something in the first row of data to find the correct column (HLOOKUP), then a look up on the first column of data to find the correct row of rows and then sum the relevant rows (SUMIF, VLOOKUP). Hope this makes sense, any help would be greatly appreciated.

### Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Any chance of some sample data and expected results?

Sorry I'm not sure how to get copies of the spreadsheet on to the site.[/img]

I've copied and pasted some data in. This is what the results would look like, so on the reference data in row 1 it would have the DR numbers and in column a would be the BS numbers the DR numbers would only have one instance in row 1 and the BS numbers may occur several times. I'd need to get a total for all instances of the BS numbers. So for DR01.01 BS680 could have four rows containing 25.00 so total 100.00

BS680 BS690 BS870 BS880
DR01.01 100.00 200.00
DR01.02 500.00 250.00 150.00
DR01.03
DR01.04
DR01.05
DR01.06
DR01.07
DR01.08
DR01.09
DR01.10
DR01.11
DR01.12
Hope this helps.

Replies
6
Views
216
Replies
4
Views
175
Replies
1
Views
381
Replies
3
Views
107
Replies
4
Views
616

1,219,819
Messages
6,150,402
Members
450,960
Latest member
GB2

### 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.

### Which adblocker are you using?

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

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