Filter Rows by Criteria

TheMacroNoob

Board Regular
Joined
Aug 5, 2022
Messages
52
Office Version
  1. 365
Platform
  1. Windows
Hello excel experts,

I have annoying (crappy) data, and I am trying to grab all names from a column that meets a couple criteria.

In that column are subtotal rows with a count of names and a TOTAL heading, and category headings like:
- 2020 Sold Properties
- 2020 Completed Refi
- 2021 Resyndication

There are 20+ such unique examples of subheadings that I don't want to pull into my list. I would like to exclude all of them.

Here is an example of such a problem, and my current formula that doesn't exclude these total rows. I thought by including the YEAR (which I need anyway) criteria, it would remove such rows because there isn't a value there for those, but it did not.

NameX, ExampleX, StateX, are all placeholders, the actual file has specific names.

Sale Forecast Comparison.xlsx
BCDEFGHIJKLM
5
6ProblemDesired Result
7406Name1Example1State1172Sold1/6/20Name1Name1
8380Name2Example2State2242Sold1/30/20Name2Name2
9576Name3Example3State3228Sold3/6/20Name3Name3
10597Name4Example4State4124Sold3/11/20Name4Name4
11254Name5Example5State5288Sold3/11/20Name5Name5
12605Name6Example6State6298Sold3/30/20Name6Name6
13635Name7Example7State7274Sold3/31/20Name7Name7
14Name8Example8State8196Sold4/29/20
15Name9Example9State9150Signed4/30/20
16Name10Example10State10246Sold5/18/20
17Name11Example11State11180Sold6/24/20
18117Name12Example12State1264Signed7/30/20Name12Name12
19468Name13Example13State13100Sold7/31/20Name13Name13
20676Name14Example14State14292Pending8/31/20Name14Name14
21922Name15Example15State15100Pending7/31/20Name15Name15
2215TOTAL SOLD2,564TOTAL SOLD
23
Sheet4
Cell Formulas
RangeFormula
K7:K22K7=IFS(ISBLANK($C$7:$C$22),"",OR(YEAR($I$7:$I$22)=2020),D7:D22)
Dynamic array formulas.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
How about
Excel Formula:
=IFS($C$7:$C$22="","",YEAR($I$7:$I$22)=2020,D7:D22,1,"")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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