Jump to content
Microsoft Windows Bulletin Board

Recommended Posts

Posted

Hello!

Working with a large dataset and seeking to break up the data into different columns based on amount. I am looking to separate projects <100K, projects >=100K, projects <=1M, and projects >1M. When I use the COUNTA function, I get a #Spill! error. When I use COUNTIF or COUNTIFS (to specify the 100K<=x<=1M), my output for managers that don't have projects that meet the criteria is '1', rather than the specified 'None'. 

 

Here are a few of the solutions that I have tried:

=LET(
    TPMList, FILTER($A:$A, ($A:$A<>"") * ($A:$A<>"Project Manager") * ($E:$E<>"N/A")),
    CurrentPM, A2,
    FilteredBudgets, FILTER(Table_Projects[Current Budget GR],
        (Table_Projects[Project Manager]=CurrentPM) *
        (Table_Projects[Period]=MAX(Table_Projects[Period])) *
        (Table_Projects[Current Budget GR]>100000) *
        (Table_Projects[Current Budget GR]<1000000)
    ),
    ProjectsCount, IFERROR(COUNTA(FilteredBudgets), 0),
    IF(ProjectsCount = 0, "None", ProjectsCount)
)

 

This one gives me a formula error:

=LET(
    TrPMList, FILTER($A:$A, ($A:$A<>"") * ($A:$A<>"Project Manager") * ($E:$E<>"N/A")),
    CurrentPM, A2,
    FilteredBudgets, FILTER(Table_Projects[Current Budget GR],
        (Table_Projects[Project Manager]=CurrentPM) *
        (Table_Projects[Period]=MAX(Table_Projects[Period])) *
    ),
    ProjectsCount, COUNTIFS((FilteredBudgets, ">100000") * (FilteredBudgets, "<1000000")), 0),
    IF(ProjectsCount = 0, "None", ProjectsCount)
)

 

This one returns the correct project number between 100K and 1M, but does not return "None" for projects that don't meet the criteria.

=LET(
    TrPMList, FILTER($A:$A, ($A:$A<>"") * ($A:$A<>"Project Manager") * ($E:$E<>"N/A")),
    CurrentPM, A3,
    FilteredBudgets, FILTER(Table_Projects[Current Budget GR],
        (Table_Projects[Project Manager]=CurrentPM) * (Table_Projects[Period]=MAX(Table_Projects[Period])) *
        (Table_Projects[Current Budget GR]>100000) * (Table_Projects[Current Budget GR]<1000000)
    ),
    ProjectsCount, COUNTA(FilteredBudgets),
    IF(ProjectsCount > 0, ProjectsCount, "None")
)

 

Any help is greatly appreciated!! 

View the full article

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...