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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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:
CompletedTargetAllocatedCompletedTargetAllocatedCompletedTargetAllocated
44.4442.4434.43

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

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,216,099
Messages
6,128,822
Members
449,469
Latest member
Kingwi11y

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