Match, Index, Vlookup..any or none?

slingshot

New Member
Joined
Aug 14, 2013
Messages
2
Hi,
I have 2 sets of data (simplified) as such:


DATA-SET 1
ABCD
1INITIATIVEWESTEASTCENTRAL
2PROJECT111
3PROJECT211

<TBODY>
</TBODY>

In all there are over 500 rows in Column A (initiatives) and 8 different regions (represented by Column B, C, D)

The 1's represent that a specific Region is impacted by whatever initative in Column A.


DATA-SET 2
ABCD
6INITIATIVETIME SPENTACTIONWEEK START
7PROJECT12C2014/09/22
8PROJECT12.5C2014/09/29
9PROJECT21.5F2014/09/22
10PROJECT22C2014/09/22
11PROJECT2.25C2014/09/29

<TBODY>
</TBODY>

This set of data represents how much time will be spent on each Initative from Data-set 1 by week. (Column B) The weeks continue past the above example at least into 2016.


I am trying to summarise the hours spent by week by region. With the simplified data the results would look like this:

FGH
2REGION2014/09/222014/09/29
3WEST22.5
4EAST5.52.75
5CENTRAL3.5.25

<TBODY>
</TBODY>


My main issue is that the various combinations of 8 regions gives me 255 various combinations, so IF, AND or OR would involve a lot of keying (at least where my skill set would take me). I am confused by arrays, but maybe they are the answer.

Any suggestions, comments or outright solutions would be greatly appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Welcome to Mr Excel

Maybe something like...


A
B
C
D
E
F
G
H
I
J
K
L
M
1
INITIATIVE​
WEST​
EAST​
CENTRAL​
INITIATIVE​
TIME SPENT​
ACTION​
WEEK START​
REGION​
22/09/2014​
29/09/2014​
2
PROJECT1​
1​
1​
PROJECT1​
2​
C​
22/09/2014​
WEST​
2​
2,5​
3
PROJECT2​
1​
1​
PROJECT1​
2,5​
C​
29/09/2014​
EAST​
5,5​
2,75​
4
PROJECT2​
1,5​
F​
22/09/2014​
CENTRAL​
3,5​
0,25​
5
PROJECT2​
2​
C​
22/09/2014​
6
PROJECT2​
0,25​
C​
29/09/2014​

<tbody>
</tbody>


Array formula in L2
=SUM(SUMIFS($G$2:$G$6,$F$2:$F$6,IF(($B$1:$D$1=$K2)*($B$2:$D$3=1),$A$2:$A$3),$I$2:$I$6,L$1))

confirmed with Ctrl+Shift+Enter, not just Enter

copy across and down

Hope this helps

M.
 
Upvote 0
Arrays. I must learn them.

This worked great on my test data. Thank you very much, your assistance is greatly appreciated.
 
Upvote 0

Forum statistics

Threads
1,203,094
Messages
6,053,503
Members
444,667
Latest member
KWR21

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