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.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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?
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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