# Need help with Table Function

#### thesabster

##### New Member
Hi,

I currently am doing resource planning for the next three years Nov 2020-2023. I have two sheets.
Sheet 1 has the Table1, with the following fields, Name, Start Date, End date, Allocation (% utilized):

Sheet 2 has the output of the following equation repeated at every month. Column A is resource name using this equation:
=UNIQUE(Table1[Name])
This spill functions creates the list of names that are repeated in Sheet 1. This output works well.

Columns B-AN is a monthly output, i.e. Nov 2020, Dec 2020, .... January 2024, using the following equation
=SUMIFS(Table1[Allocation],Table1[Name],'Capacity Planning'!\$A3, Table1[Start Date], "<="&EOMONTH(O\$1, 1), Table1[End Date], ">" &\$P\$1)
For example, in the equation above, A3- is the resource name, O1 is Dec 2021 and P1 is January 2022.

The outputs are not correct from this equation. Or rather the only time they are correct is for the first 7 resource names listed and for only the months of Oct 2021 to January 2022. Moreover, these outputs repeat in Nov 2022 to Jan 2023.

I also tried this change,
=SUMIFS(Table1[@Allocation],Table1[@Name],'Capacity Planning'!\$A3, Table1[@Start Date], "<="&EOMONTH(O\$1, 1), Table1[@End Date], ">" &\$P\$1)
And still seeing the same thing.

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

#### StephenCrump

##### MrExcel MVP
The outputs are not correct from this equation.
Your first formula is well-formed, the second is not - and I'd expect it to produce different results. But it's hard to diagnose without seeing your layout. It's also not clear what you mean by months of Oct 2021 to January 2022 ([Start Date]?, [End Date]?) and what you mean by outputs repeat?

Can you please post a cut-down sample (using the XL2BB add-in here: XL2BB - Excel Range to BBCode) to illustrate the results you want, and the results you're actually getting?

Replies
1
Views
168
Replies
0
Views
57
Replies
5
Views
178
Replies
0
Views
149
Replies
5
Views
147

1,127,318
Messages
5,623,974
Members
416,002
Latest member
Neshx

### 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.

### Which adblocker are you using?

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

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