Search ranges, identify column and sumif

vikosh

Board Regular
Joined
Dec 12, 2011
Messages
87
Hi,

I am trying to find a solution to the following.

I need to search ranges (3 ranges as per below example), identify last column that has 1's in it and then do sumif according to the names.
Splitting rows can have any random information, and might be even merged, so i need to set ranges.


A
B
C
D
E
F
G
1
2
3
4
5
6
name 1
1
0
0
0
0
0
name 2
1
1
1
0
0
0
name 3
1
1
1
1
0
0
name 2
1
1
0
0
0
0
name 1
1
1
1
0
0
0
name 2
1
0
0
0
0
0
name 2
1
1
1
1
0
0
name 1
1
1
0
0
0
0
name 1
1
1
1
0
0
0
name 2
1
0
0
0
0
0
name 2
1
1
1
1
0
0
name 1
1
1
0
0
0
0

<tbody>
</tbody>

In this example sumif would return:

Name 1: 0
Name 2: 2
Name 3: 1

Please direct my thoughts in the right way...

Thank you,
Vikosh
 
Did you remember to confirm with Ctrl+Shift+Enter? Can you post some sample data where the formula isn't working? Why the reference to Lists!D2?
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
I've figured it out - thanks a million.

My mistake was that in the original file array starts from Column F, so basically INDEX was getting the wrong column. I've just added -5 to *(COLUMN(F$7:AJ$7)-5))))) and it fixed it.

Thank you one more time.
 
Upvote 0

Forum statistics

Threads
1,216,073
Messages
6,128,646
Members
449,462
Latest member
Chislobog

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