help with extracting multiple array data

brend0n

New Member
Joined
May 30, 2016
Messages
23
I have a project with a number of resources and different task to complete over a extended period.
the maximum number of task assigned to an individual at one time is 7.

I was planning to use a sum product which reference a drop down list of the resources,then task no, then date then tell me which number that relates to
=sumproduct(resource drop down list = A2:A25)*(task number = B2:B25)*(date=C1:AA1)*(C2:AA25)
and additional table would use an if statement to use put the actual task in place of the numberbut i get a #value error if i drop the (c2:AA25) it will give me a 1 but wont give me a 0 is there is no task there.

ie: CV, task 2, 4/9/17 should give me a 0 but i get a 1


ResourceTASK04-Sep-1705-Sep-1706-Sep-1707-Sep-1708-Sep-1709-Sep-1710-Sep-1711-Sep-1712-Sep-1713-Sep-1714-Sep-1715-Sep-1716-Sep-1717-Sep-1718-Sep-1719-Sep-1720-Sep-1721-Sep-1722-Sep-1723-Sep-1724-Sep-1725-Sep-1726-Sep-1727-Sep-1728-Sep-1729-Sep-1730-Sep-1701-Oct-1702-Oct-1703-Oct-1704-Oct-1705-Oct-1706-Oct-1707-Oct-1708-Oct-1709-Oct-1710-Oct-1711-Oct-1712-Oct-1713-Oct-1714-Oct-1715-Oct-1716-Oct-1717-Oct-1718-Oct-1719-Oct-1720-Oct-1721-Oct-17
CV1111111111111111111111111111111111111111111111111
CV222222
CV33333333333333333
CV4
CV5
CV6
CV7
SS122222
SS23333333333333333
DL1161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616
DL23333333333333333
DL3
DL4
DL5
DL6
AG13333333333333333
AG2
AG3181818181818181818181818181818181818181818181818181818181818181818181818181818181818181818181818
JC1191919191919191919191919191919191919191919191919191919191919191919191919191919
GB1191919191919191919191919191919191919191919191919191919191919191919191919191919
BW1232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323
BW2111111111111111111111111111111111111111111111111
BW3161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616
BW43333333333333333

<tbody>
</tbody>
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How does it go if you add the missing parentheses?
=sumproduct((resource drop down list = A2:A25)*(task number = B2:B25)*(date=C1:AA1)*(C2:AA25))
 
Last edited:
Upvote 0
Hi Peter thanks for the quick reply.
unfortunately that didn't help.
including the C2:AA25 I get the #value error. If I remove this part (keeping the missing parentheses) I can only get a 1 not 0 using the same test oultined in the OP (ie: CV, task 2, 4/9/17 should give me a 0 but i get a 1)
 
Upvote 0
For the data part (C2:AA25) givign me a #Value , would it be something as simple as i need to change the cells with now values to a zero
 
Upvote 0
.. would it be something as simple as i need to change the cells with now values to a zero
I'm now guessing that you don't actally have cells with no value, but probably cells with a formula that returns a text value of "" or similar). If so, there are at least a couple of choices.

a) Change the existing formula in C2:AA25 to return 0 instead of "" (and you could use Excel's settings for the worksheet, or Custom Format the range, to hide those zero values if you want), or

b) Leave the "" values and try
=SUMPRODUCT((B28= A2:A25)*(B29= B2:B25)*(B30=C1:AA1)*IF(ISNUMBER(C2:AA25),C2:AA25,0))
 
Last edited:
Upvote 0
option b worked thank you so much Peter

The formula I ended up using was:
=SUMPRODUCT((CONCATENATE($G$73,$M$82)='calendar_task no.'!$C$2:$C$58)*(B$75='calendar_task no.'!$D$1:$LG$1)*('calendar_task no.'!$D$2:$LG$58))

G73 = Resource
M82 = Task name
B75 = Date
D2:LG58 = Data
 
Upvote 0
option b worked thank you so much Peter

The formula I ended up using was:
=SUMPRODUCT((CONCATENATE($G$73,$M$82)='calendar_task no.'!$C$2:$C$58)*(B$75='calendar_task no.'!$D$1:$LG$1)*('calendar_task no.'!$D$2:$LG$58))

G73 = Resource
M82 = Task name
B75 = Date
D2:LG58 = Data
Hmm, well that doesn't seem to have anything to do with whether the 'main data' ('calendar_task no.'!$D$2:$LG$58) is numbers or text, which seemed to be a sticking point with the original sample data. :confused:

But, hey, if it works for you that is all that matters I guess.
 
Upvote 0
yeah, I think the main data might have had something to do with it, as this formula didn't work till i performed a find replace on the "" to 0
 
Upvote 0

Forum statistics

Threads
1,217,282
Messages
6,135,618
Members
449,953
Latest member
Maniac189

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