Adding multiple lookups using INDEX MATCH functions

DaithiB

New Member
Joined
Dec 6, 2018
Messages
3
I am trying to add up certain numbers in each row. So each time 4.4 shows up i want the number to the left of it (can be a different number). At the moment i have INDEX(C5:CN,MATCH($CT$2,C5:CN,0)-1).
CT2=4.4
This gives me the number left to the first occurrence of 4.4, but I am trying to get all of them added together. I have tried the SUMPRODUCT and SUMIF functions but cant seem to get it to work. I am probably just not doing it right

Any help would be much appreciated!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Hi & welcome to MrExcel
maybe
=SUMIF(C5:C10,CT2,B5:B10)
 
Upvote 0
Hi Fluff, here is an example of the data and what I am trying to do:
[TABLE="width: 637"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][TABLE="width: 816"]
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Completed[/TD]
[TD]Target[/TD]
[TD]Allocated[/TD]
[TD]Completed[/TD]
[TD]Target[/TD]
[TD]Allocated[/TD]
[TD]Completed[/TD]
[TD]Target[/TD]
[TD]Allocated[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]4.4[/TD]
[TD]4[/TD]
[TD]4[/TD]
[TD]2.4[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4.4[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

So every time the target is 4.4 I want to know what the combined completed number is i.e in this example it would be 7
 
Upvote 0
In that case, what about

Excel 2013/2016
ABCDEFGHIJK
1CompletedTargetAllocatedCompletedTargetAllocatedCompletedTargetAllocated4.4
244.4442.4434.437
Color
Cell Formulas
RangeFormula
K2=SUMIF(B2:I2,K1,A2:H2)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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