sum lookup formula

SSPoulin23

New Member
Joined
Nov 21, 2014
Messages
44
hi there,

I have a spreadsheet for calculating travel reimbursements on a monthly basis. On each line, the user enters the amounts (up to four predetermined categories) and then chooses the SID (where it will be paid from).

I have a summary line in which the user can select an option (an SID) from a drop down box. I would like to have a formula in the amount section of the summary that adds all the amounts for each SID chosen once the user selects the SID option from the drop down box. (i have a hidden column that totals the four amounts if necessary). I've tried a variety of sum(lookup( options and can't seem to get it right. I don't know if it's partly due to the fact that the SID is from a dropdown list on a different page? anyway, here's my data (it's not laid out this neatly on the sheet - there are other columns in between the amounts columns and the SID column is located in the middle ...

Summary
AmountSID
(formula)10020
(formula)35555
(formula)12569
TravelSIDAmt1Amt2Amt3Amt4
100205.0010.0015.0020.00
100201.002.003.004.00
355555.006.007.008.00
125695.0010.0015.0020.00
100201.002.003.004.00

<tbody>
</tbody>


so 10020 should be $70.00
35555 should be $26.00
12569 should be $50.00
















thanks in advance!!!
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
maybe..


Excel 2013
ABCDEF
1Summary
2AmountSID
37010020
42635555
55012569
6
7TravelSIDAmt1Amt2Amt3Amt4
8100205101520
9100201234
10355555678
11125695101520
12100201234

<tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
A3=SUMPRODUCT(($B$8:$B$12=B3)*($C$8:$F$12))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
is it really that simple?? yes, yes indeed it is. I'm glad I wasted ALL DAY yesterday on this (cos I couldn't find my password to post to here sooner lol). thank you sooo much Weazel!!!
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,960
Members
449,057
Latest member
FreeCricketId

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