Need help with Table Function

thesabster

New Member
Joined
Nov 17, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
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.
 

Some videos you may like

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
Joined
Sep 18, 2013
Messages
4,117
Office Version
  1. 365
Platform
  1. Windows
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?
 

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top