Formula to Sum Based on Criteria

k3yn0t3

New Member
Joined
Oct 5, 2023
Messages
42
Office Version
  1. 365
Platform
  1. Windows
Hi there. I am trying to write a formula to copy across in the highlighted neon yellow cells that checks to see if 10 different members' info matches the filter criteria at the top of the sheet.

Should I add a ghost column underneath with same number of rows, and have each cell check each criteria, and yield a "Yes/No" depending? Then, I can have the formula in the neon yellow cell be "1" or "On" only if the sum of the ghost cells is 14 (i.e., Member [#]'s info met all 14 criteria)?

Appreciate any thoughts on this.

Best regards,
Sam

Factories_v20.xlsx
ABCDEFGHIJK
5Filters
6
7StatusOpen
8Birth Date1/1/199012/31/2019
9Deceased1/1/199012/31/2019
10StateFlorida, Illinois
11RegionNY/NJ/PA, Other
12Formatna
13Building TypeGeorgian
14OwnershipLeased
15Building Size--43,830
16Yard Size--10,000
17Total SQFT--43,830
18Membership Expiration1/1/199012/31/2019
19Membership End w/ Extensions1/1/199012/31/2019
20Membership Fees10050,000
21
22
23
24Members
25
26Include?OnOnOffOffOffOffOffOffOffOff
27
28Member Number12345678910
29StatusOpenOpenOpenOpenClosedOpenOpenOpenOpenOpen
30Birth Date10/1/19882/1/19903/1/19912/1/19901/1/20151/1/20161/1/20171/1/20181/1/20191/1/2019
31Deceasednananana7/23/2018nanananana
32StateConnecticutFloridaNew YorkHawaiiFloridaFloridaFloridaFloridaFloridaFlorida
33RegionFloridaFloridaFloridaFloridaFloridaFloridaFloridaFloridaFloridaFlorida
34Formatnananananananananana
35Building TypeColonialGeorgianIndustiralColonialGeorgianIndustiralColonialGeorgianIndustiralIndustiral
36OwnershipOwnedLeasedLeasedLeasedLeasedLeasedLeasedLeasedLeasedOwned
37Building Size5,8509,0009,0009,01110,80010,5009,15010,74911,6467,668
38Yard Size----990--------2,768----
39Total SQFT5,8509,0009,9909,01110,80010,5009,15013,51711,6467,668
40Membership Expiration12/31/20283/31/20209/30/20215/31/2023na6/30/202812/31/20239/30/20248/31/20201/14/2021
41Membership End w/ Extensions12/31/20283/31/20259/30/20305/31/2028na6/30/202812/31/20239/30/20298/31/20201/14/2021
42Membership Fees105551005595559055855580557555705565556055
xl2bb
Cell Formulas
RangeFormula
C42:K42C42=+B42-500
 
Last edited:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Building size, Yard Size, & Total SQFT don't match for the first 2 members. Why are they ON?
 
Upvote 0
'^Thanks, BBB. Did you mean to post the other cells with the formulas checking for criteria? I'm only seeing the one row
 
Upvote 0
'^Thanks, BBB. Did you mean to post the other cells with the formulas checking for criteria? I'm only seeing the one row
You can paste the formula in cell B22 and drag it across to the right in your sheet but here's the entire sheet.

EDIT: Didn't realize you're starting at row 5. Adjust references as needed.

Book2
ABCDEFGHIJK
1Filters
2
3StatusOpenOnTRUE
4Birth Date10/1/8812/31/19TRUE
5Deceasedna12/31/19TRUE
6StateConnecticutTRUE
7RegionFloridaTRUE
8FormatnaTRUE
9Building TypeColonialTRUE
10OwnershipOwnedTRUE
11Building Size585043830TRUE
12Yard Size010000TRUE
13Total SQFT585043830TRUE
14Membership Expiration12/31/2812/31/19TRUE
15Membership End w/ Extensions12/31/2812/31/19TRUE
16Membership Fees1055550000TRUE
17
18
19
20Members
21
22Include?OnOffOffOffOffOffOffOffOffOff
23
24Member Number12345678910
25StatusOpenOpenOpenOpenClosedOpenOpenOpenOpenOpen
26Birth Date10/1/882/1/903/1/912/1/901/1/151/1/161/1/171/1/181/1/191/1/19
27Deceasednananana7/23/18nanananana
28StateConnecticutFloridaNew YorkHawaiiFloridaFloridaFloridaFloridaFloridaFlorida
29RegionFloridaFloridaFloridaFloridaFloridaFloridaFloridaFloridaFloridaFlorida
30Formatnananananananananana
31Building TypeColonialGeorgianIndustiralColonialGeorgianIndustiralColonialGeorgianIndustiralIndustiral
32OwnershipOwnedLeasedLeasedLeasedLeasedLeasedLeasedLeasedLeasedOwned
33Building Size5850900090009010.51080010500915010749116467668
34Yard Size0099000002767.500
35Total SQFT5850900099909010.51080010500915013516.5116467668
36Membership Expiration12/31/283/31/209/30/215/31/23na6/30/2812/31/239/30/248/31/201/14/21
37Membership End w/ Extensions12/31/283/31/259/30/305/31/28na6/30/2812/31/239/30/298/31/201/14/21
38Membership Fees10555-500-500-500-500-500-500-500-500-500
Sheet9
Cell Formulas
RangeFormula
E3E3=IF(SUM(--(B3:B16=$B$25:$B$38))=14,"On","Off")
F3:F16F3=(B3:B16=$B$25:$B$38)
B22:K22B22=IF(SUM(--($B$3:$B$16=B25:B38))=14,"On","Off")
C38:K38C38=+B42-500
Dynamic array formulas.
 
Upvote 0
Understood, but I don't have any other cells currently in my excel. Does your formula assume I have the ghost cells with the checks?
 
Upvote 0
Understood, but I don't have any other cells currently in my excel. Does your formula assume I have the ghost cells with the checks?
If you look at the formula, I assumed there are 14 criteria. I didn't need a ghost cell for value 14.
 
Upvote 0
Ah but does this check each Member individually against the parameters in the "filter" cells A1:C16?

Also, the two cells in columns B&C rows 4,5,11-16 are meant to represent a range during which a given member's number or date should fall. How could I check for that?

Thank you, BBB. This is a massive help. Been struggling w this for a few days and need to apply this to the cohort of ~200 members. I will use these "Yes / No" cells for each Member to determine whether or not i include that Member's underlying excel sheet data in a big Summary sheet
 
Upvote 0
Also, the two cells in columns B&C rows 4,5,11-16 are meant to represent a range during which a given member's number or date should fall. How could I check for that?
This part wasn't clear from post#1. I'll look at it again when I have more time.
 
Upvote 0

Forum statistics

Threads
1,215,086
Messages
6,123,040
Members
449,092
Latest member
ikke

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