SUMIF with multiple sum ranges

aw12g10

New Member
Joined
Feb 26, 2015
Messages
2
Hi All,

I've been looking through the old posts to try and find a similar situation, but no luck.

Basically, I have quite a simple set up.

I have 4 columns with a value in each. In the 5th column, I want the value of one of the columns to be entered, depending on the value of a 6th column.

For example, cells A1,A2,A3,A4 currently read 10,20,30 and 40 respectively. I would like one of those values to be entered into cell A5 depending on the value of cell A6. The value of A6 will be the title of one of the columns.

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]In/Rep[/TD]
[TD]In/New[/TD]
[TD]Out/Rep[/TD]
[TD]Out/New[/TD]
[TD]Value[/TD]
[TD]Customer Description[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]20[/TD]
[TD]30[/TD]
[TD]40[/TD]
[TD][/TD]
[TD]Out/New[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]43[/TD]
[TD]35[/TD]
[TD]12[/TD]
[TD][/TD]
[TD]In/Rep[/TD]
[/TR]
</tbody>[/TABLE]

The table shown pretty much sums up the situation. What formula can I put in the 'value' column that will pull through one of the values depending on the customer description?

Any help would be HUGELY appreciated!

Thanks!

Alex
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
For example, cells A1,A2,A3,A4 currently read 10,20,30 and 40 respectively.
I think you have that transposed....
it would be A1 = 10 B1 = 20 C1 = 30 and D1 = 40

Anyway..

Try this in F2 and filled down.

=INDEX(A2:D2,MATCH(E2,A$1:D$1,0)
 
Upvote 0

Forum statistics

Threads
1,224,622
Messages
6,179,953
Members
452,950
Latest member
bwilliknits

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