Count number of occurrences a value falls between percentages using filtered data set

Saiyan_8

New Member
Joined
Apr 1, 2020
Messages
4
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hi Community,
I've decided to post my excel conundrum because I'm just stuck and I can't find the exact work around to my situation. However I'm hopeful someone from this community can solve.
I've indicated part of my spreadsheet below and what I'm trying to do is create a small dynamic (changes once I change the filtered building number) summary table informing me of the number of a particular fields that match the required fields (coloured to make it more prominent).
The data will ideally be filtered by column C (Building Number), I've managed to work the summary table to return the "count" number of occurrences that match the exact fields (in a separate column). I wanted to further manipulate the data (using the efficiency "column U" that has already worked this out) and inform me of how many out of these particular occurrences that are:
  • 0-49%
  • 50-99%
  • 100%
  • >100%
Please let me know if you've got any further queries that need explaining and I'll do my best to answer them and thanks in advance for your help with my problem.

SPACE 2020test.xlsx
ALAMANAOAPAQAR
728(0%,49%)>=0.5,<1100%>=100%
729SummaryNumber of SpacesEfficiency
730Building1060-50%50-99%100%100%+
731Staff Office : Central Support22
732Staff Office : Commercial0
733Staff Office : Research12
734Staff Office or Work Area : Teaching92
735PG Student Space : Research2
740Meeting Rooms8
743Seminar Facilities8
747Workshops53
750IT Laboratories3
2020
Cell Formulas
RangeFormula
AQ728AQ728=100%
AM730AM730=INDEX(C4:C658,MIN(IF(SUBTOTAL(3,OFFSET(C4,ROW(C4:C658)-ROW(C4),0)),ROW(C4:C658)-ROW(C4)+1)))
AN731:AN735AN731=SUMPRODUCT(SUBTOTAL(3,OFFSET(J3:J491,ROW(J3:J491)-MIN(ROW(J3:J491)),,1))*(J3:J491=AL731))
AN740AN740=SUM(AN736:AN739)
AN743,AN750AN743=SUM(AN741:AN742)
AN747AN747=SUM(AN744:AN746)
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Welcome to the Board, Saiyan!
I'm not sure how the number of spaces and the efficiency are supposed to be related to each other. For example, for Staff Office : Central Support there are 22 spaces. Are a certain number of those 22 spaces being used somehow? Perhaps 14 spaces are being used so this line should somehow fit in the 50% - 99% column? Where on the sheet or on the workbook would you know about the number of used spaces?
 
Upvote 0
Hiya Dan,
Thanks for your reply.
Below is just a small part of the main gathered data. Hopefully it's a bit more clearer to understand.
The 22 spaces are the occurrences Staff Office : Central Support has been picked up by the formula looking in column J (Space type), once I've applied the building number filter. I have another column T working out the theorectical space occupancy taking the area of the space that specific space and this is used to compare to the actual surveyed occupancy in column Q. These two figures divided by each other and shown as a % in column U.

So I wanted to show in the summary those particular figures and let the user know out of 22 Staff Office : Central Support, how many fall in these categories:
  • 0-49%
  • 50-99%
  • 100%
  • >100%
SPACE 2020test.xlsx
CDEFGHJQTU
1Offices
2PROPERTY_REFERENCEFLOORSPACE_REFERENCESPACE_NAMESIGNAGE_TEXTAREASPACE_TYPEActualOpen Plan (7.0m²)Efficiency %
11710611/001124AFStairs16.4Circulation Space : Non Residential  
11810611/002119AFCorridor36.4Circulation Space : Non Residential  
11910611/003120Seminar Room33.9Seminar Facilities  
12010611/004109Corridor29.3Circulation Space : Non Residential  
12110611/005118Seminar Room34.0Seminar Facilities  
12210611/006116Office15.9Staff Office or Work Area : Teaching1250%
12310611/007114Office14.4Staff Office or Work Area : Teaching22100%
2020
Cell Formulas
RangeFormula
T117:T123T117=IFERROR(ROUNDDOWN($H117/$S117,0),"")
U117:U123U117=IFERROR(Q117/T117,"")
Cells with Data Validation
CellAllowCriteria
T2List='Space Norms'!$A$17:$A$20
U2List='H:\Space Ut Check\[Theoretical Max Space Occupancy.xlsx]Space Norms'!#REF!


I hope I've explained it ok. I would have uploaded the spreadsheet but read in the guidelines that this is not advised/possible.
Thanks again.
 
Upvote 0
Sorry Dan but thanks for looking.

However I've think I've stumbled onto something and I think all I need to do now is somehow combine these to formula's efficiently.
=SUMPRODUCT(SUBTOTAL(3,OFFSET(J3:J491,ROW(J3:J491)-MIN(ROW(J3:J491)),,1))*(J3:J491=AL731))
=COUNTIFS($U3:$U657,">=.5",$U3:$U657,"<1")
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,706
Members
449,118
Latest member
MichealRed

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