PDA

View Full Version : VBA - Count filtered rows in the table



sandy666
08-20-2023, 05:23 AM
Hi Alan, hope you are well,

so ad rem

I've a table (3 columns, can be more), and for this table I've three filters
I need count rows for each filter (filtered rows and rows left after filtering), eg.

https://i.postimg.cc/V6CDHXj3/screenshot-138.png

there should be possibility resize the main table for more columns and add new tables with filters at the same time (with empty rows that will not be taken into account when counting filtered rows)

the result should be more or less like this:

https://i.postimg.cc/3NQnMW1W/screenshot-139.png

is this possible to do it automatically after add/remove values to/from filter tables?
I don't need filtered table but I need result table like you can see above

thanks

DocAElstein
08-21-2023, 12:38 AM
Hi there :)
I am not 100% sure about this, because I have never tried to apply VBA to a filtered table.
But I just did a quick google, and I think we can do things like count the visible cells using VBA, and I also expect applying normal VBA to a filtered table will probably tell us all what is in a table.
It is usually possibly to get a VBA coding to run automatically when something or other is done to a worksheet.
And we can usually get a coding to be flexible/ dynamic and work on as many columns as are ever there at any time.

So I expect what you want could probably be done with VBA, and I expect I could probably figure out how to do it.

I probably would just need to experiment a bit as I never did anything with a filtered table. It’s usually possibly to figure out how to do most things with VBA.

If you give me a small size sample file I will take a look.

Alan

https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-21-2023, 12:50 AM
sure, here is


https://www.youtube.com/@alanelston2330/featured (https://www.youtube.com/@alanelston2330/featured)


https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=SIDLFRkUEIo&lc=UgzTF5vvB67Zbfs9qvx4AaABAg (https://www.youtube.com/watch?v=SIDLFRkUEIo&lc=UgzTF5vvB67Zbfs9qvx4AaABAg)
https://www.youtube.com/watch?v=v_1iqtOnUMg&lc=UgxLtKj969oiIu7zNb94AaABAg (https://www.youtube.com/watch?v=v_1iqtOnUMg&lc=UgxLtKj969oiIu7zNb94AaABAg)
https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg (https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg)
https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg (https://www.youtube.com/watch?v=f7xZivqLZxc&lc=Ugxq4JHRza_zx3sz0fx4AaABAg)
https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgzMCQUIQgrbec400jl4AaABAg (https://www.youtube.com/watch?v=f7xZivqLZxc&lc=UgzMCQUIQgrbec400jl4AaABAg)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=tPRv-ATUBe4&lc=UgzFkoI0n_BxwnwVMcZ4AaABAg (https://www.youtube.com/watch?v=tPRv-ATUBe4&lc=UgzFkoI0n_BxwnwVMcZ4AaABAg)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg.9htChVuaX9W9htG01cKBzX (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugz0Uy2bCSCTb1W-0_14AaABAg.9htChVuaX9W9htG01cKBzX)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htJ6TpIO XR (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htJ6TpIO XR)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgwMKwGZpDjv7vi7pCx4AaABAg (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgwMKwGZpDjv7vi7pCx4AaABAg)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htOKs4jh 3M (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=Ugw6UrV69zpeKvLOeOV4AaABAg.9ht16tzryC49htOKs4jh 3M)
https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgxVW-am20rQ5GFuJ9F4AaABAg (https://www.youtube.com/watch?v=LuAipOW8BNQ&lc=UgxVW-am20rQ5GFuJ9F4AaABAg)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://eileenslounge.com/viewtopic.php?p=320960#p320960 (https://eileenslounge.com/viewtopic.php?p=320960#p320960)
https://eileenslounge.com/viewtopic.php?p=320957#p3209573 (https://eileenslounge.com/viewtopic.php?p=320957#p3209573)
https://eileenslounge.com/viewtopic.php?p=318868#p318868 (https://eileenslounge.com/viewtopic.php?p=318868#p318868)
https://eileenslounge.com/viewtopic.php?p=318311#p318311 (https://eileenslounge.com/viewtopic.php?p=318311#p318311)
https://eileenslounge.com/viewtopic.php?p=318302#p318302 (https://eileenslounge.com/viewtopic.php?p=318302#p318302)
https://eileenslounge.com/viewtopic.php?p=317704#p317704 (https://eileenslounge.com/viewtopic.php?p=317704#p317704)
https://eileenslounge.com/viewtopic.php?p=317704#p317704 (https://eileenslounge.com/viewtopic.php?p=317704#p317704)
https://eileenslounge.com/viewtopic.php?p=317857#p317857 (https://eileenslounge.com/viewtopic.php?p=317857#p317857)
https://eileenslounge.com/viewtopic.php?p=317541#p317541 (https://eileenslounge.com/viewtopic.php?p=317541#p317541)
https://eileenslounge.com/viewtopic.php?p=317520#p317520 (https://eileenslounge.com/viewtopic.php?p=317520#p317520)
https://eileenslounge.com/viewtopic.php?p=317510#p317510 (https://eileenslounge.com/viewtopic.php?p=317510#p317510)
https://eileenslounge.com/viewtopic.php?p=317547#p317547 (https://eileenslounge.com/viewtopic.php?p=317547#p317547)
https://eileenslounge.com/viewtopic.php?p=317573#p317573 (https://eileenslounge.com/viewtopic.php?p=317573#p317573)
https://eileenslounge.com/viewtopic.php?p=317574#p317574 (https://eileenslounge.com/viewtopic.php?p=317574#p317574)
https://eileenslounge.com/viewtopic.php?p=317582#p317582 (https://eileenslounge.com/viewtopic.php?p=317582#p317582)
https://eileenslounge.com/viewtopic.php?p=317583#p317583 (https://eileenslounge.com/viewtopic.php?p=317583#p317583)
https://eileenslounge.com/viewtopic.php?p=317605#p317605 (https://eileenslounge.com/viewtopic.php?p=317605#p317605)
https://eileenslounge.com/viewtopic.php?p=316935#p316935 (https://eileenslounge.com/viewtopic.php?p=316935#p316935)
https://eileenslounge.com/viewtopic.php?p=317030#p317030 (https://eileenslounge.com/viewtopic.php?p=317030#p317030)
https://eileenslounge.com/viewtopic.php?p=317030#p317030 (https://eileenslounge.com/viewtopic.php?p=317030#p317030)
https://eileenslounge.com/viewtopic.php?p=317014#p317014 (https://eileenslounge.com/viewtopic.php?p=317014#p317014)
https://eileenslounge.com/viewtopic.php?p=316940#p316940 (https://eileenslounge.com/viewtopic.php?p=316940#p316940)
https://eileenslounge.com/viewtopic.php?p=316927#p316927 (https://eileenslounge.com/viewtopic.php?p=316927#p316927)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

DocAElstein
08-21-2023, 10:20 AM
I don’t see any Excel Filters in the worksheet ( These things are what I think are Excel filters: https://support.microsoft.com/en-us/office/filter-data-in-a-range-or-table-01832226-31b5-4568-8806-38c37dcc180e ) ?

But I can probably do the whole thing with VBA, and forget all about filters.

So for example..
You type in
rr

5511




Then VBA will tell you this
Harrison Irwin
Sierra Howe
Curran Herring
Blake Herring
Jarrod Mccarthy
Or it will tell you anything else , like you asked for, Total rows , how many left etc. etc.

Probably that is what you want anyway, because you said ... I don't need filtered table but I need result table….

So I will make a start and then give you something, then we can take it from there any modify to suit you….

https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1 (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-21-2023, 12:05 PM
there is no excel filter , it is just example
as I said I need count rows not see the filtered rows
the result table shows what I want, no less, no more, depending on the filter values used in the relevant tables


https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1 (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

DocAElstein
08-21-2023, 02:42 PM
OK, I understand a bit better what you want, but I probably do not understand fully yet.

This is what I done so far:
Here is a macro https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23204&viewfull=1#post23204
It is also in the uploaded file. It works automatically if you type anything in column A or C or E ( or F * )

It does not get exactly the results you want, but I don’t understand yet how you got those results: I don’t understand how you get this:
" Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 22 Left / Filtered 50 "



This is what https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23204&viewfull=1#post23204 it does:
If you type rr in column A , https://i.postimg.cc/s2G1SXKS/rr.jpg , it tells you automatically this
name Filter by rr will get 6 rows

Pascale Murray
Harrison Irwin
Sierra Howe
Curran Herring
Blake Herring
Jarrod Mccarthy

Total rows in name column was 100

If you type ll in column A it tells you this
name Filter by ll will get 14 rows

Katell Whitaker
Phillip Hunter
Brett Blackwell
Julian Castillo
Kelly Ware
Jin Mcmillan
Yasir Rollins
Yeo Allen
Hilel Marshall
Dillon Dunlap
Jin Gilliam
Petra Sellers
Chancellor Ratliff
Halla Hodges

Total rows in name column was 100

If you type sh in column C it tells you this
region Filter by sh will get 4 rows

Azad Kashmir
Flintshire
Andhra Pradesh
Kirkcudbrightshire

Total rows in region column was 100

If you type u in column E it tells you this
country Filter by u will get 25 rows

Peru
Belgium
Turkey
Turkey
Russian Federation
South Africa
Turkey
United States
South Africa
South Korea
Belgium
Australia
Russian Federation
Belgium
Peru
South Korea
Belgium
Ukraine
Belgium
Belgium
South Africa
Peru
Peru
United Kingdom
Austria

Total rows in country column was 100




*If you then add another column in the table, and add another single column like this
5512
, and if you then type Big in column F, then it will tell you the truth
alan Filter by Big will get 3 rows

Big Cock
Big Brain
Big Castle

Total rows in alan column was 4
5513
:)



If you tell me exactly how you get your results, then I can maybe think again, or maybe whatever….

sandy666
08-21-2023, 08:12 PM
If you tell me exactly how you get your results, then I can maybe think again, or maybe whatever….
sure, I can tell you but you said long time ago you don't know Power Query

here are two original files (source of data: csv file, result file: xslx file)

path to the CSV file is: D:\test\countrows\data-v9i8Rbfh1ul6_1diL56pb.csv , if it will be different, xlsx will wont work
whole line of source is:
Source = Csv.Document(File.Contents("D:\test\countrows\data-v9i8Rbfh1ul6_1diL56pb.csv"),[Delimiter=",", Columns=3, Encoding=65001, QuoteStyle=QuoteStyle.None]),

if you extract zip file and move countrows folder to D:\test\ - it should work

DocAElstein
08-21-2023, 11:40 PM
(Using Excel 2013). I think I did what you said https://i.postimg.cc/xqv2yB7v/D-test-countrows.jpg (https://postimg.cc/xqv2yB7v)


Then I opened the Excel file. ... but, I don’t see anything new
https://i.postimg.cc/8jwgxMTs/test01-xlsx-Filters.jpg (https://postimg.cc/8jwgxMTs) https://i.postimg.cc/hfKqCpWH/test01-xlsx-Count.jpg (https://postimg.cc/hfKqCpWH)


( The csv file is just the table https://i.postimg.cc/PJBXMWqj/csv-File-is-just-table.jpg )




So I still don’t understand yet what it is you want a VBA macro to do


Try it differently

Forget VBA
Forget Power Query
Forget Computers.

Now let’s say you do everything yourself manually

I give you this Table: https://i.postimg.cc/2bqX9L2b/I-give-yoiu-this-table.jpg (https://postimg.cc/2bqX9L2b)


Then you give me these results: https://i.postimg.cc/McpLRFBY/You-give-me-these-rtesults.jpg (https://postimg.cc/McpLRFBY)


How did you do it? What did you do?





I don’t understand how this table, https://i.postimg.cc/4dwkdzc5/I-give-yoiu-this-table.jpg , can give these results https://i.postimg.cc/bvxjXXN4/You-give-me-these-rtesults.jpg ????


Perhaps I just need you to do your post #1, again, in a bit more detail. Tell me exactly what you do so that I know what to make the VBA code do.

For my low level of intelligence, low level of filtering experience, this explanation is not enough…I've a table (3 columns, can be more), and for this table I've three filters
I need count rows for each filter (filtered rows and rows left after filtering),

For example:
How can I have Region filter 72 left / filtered 8 when in table column I ( region ) , I have 100 things to start with??? 72+8 is not 100??



I got an idea… let me light a candle in my thinking head, and drink some SchlappenBier medicine:

https://i.postimg.cc/RZQdJf46/Thinking-Head-And-Schlappen-Bier-Medicine.jpg (https://postimg.cc/xX8MWXkn)


Is this what you mean:
First I filter by Fname using the whole table and this gets me some things “Filtered”. “Filtered” means this: If I filter, for example, by Fname rr then these 6 lines are removed from the table
Pascale Murray
Harrison Irwin
Sierra Howe
Curran Herring
Blake Herring
Jarrod Mccarthy
So first result will be
Name filter: 94 left / Filtered 6

So now I filter by FRegion using the 94 rows left: For example if I now filter by FRegion ll then these 14 lines are removed
Katell Whitaker
Phillip Hunter
Brett Blackwell
Julian Castill o
Kelly Ware
Jin Mcmlllan
Yasir Rollins
Yeo Allen
Hilel Marshall
Dillon Dunlap
Jin Gilliam
Petra Sellers
Chancellor Ratliff
Halla Hodges
So next result will be
Region filter: 80 left: Filtered 14

And so on….

How does that sound?

sandy666
08-22-2023, 03:46 AM
https://i.postimg.cc/RZV2Fmps/logic.png
each filter filters the values of the remaining rows and not all, only the first filter filters the total (100).
you can test it using only the last filter with the rest left blank (don't know if it will work on xl2013)

https://i.postimg.cc/6qf1Wbrx/screenshot-140.png
https://i.postimg.cc/mZYnyk0p/screenshot-141.png

hope it's clear now ;)

more options

https://i.postimg.cc/Yq2dN3Nj/option1.png

or

https://i.postimg.cc/RVPXgHGd/option2.png

you insisted on showing the filter results and I don't want it, maybe this description will be better: filter1 - show count filtered1 rows AND count left rows after filter1, then filter2 shows count rows from left rows after filter1 - it will be count2 filtered and left2 after filter2 , and etc

DocAElstein
08-22-2023, 11:45 AM
....you can test it using only the last filter with the rest left blank (don't know if it will work on xl2013)....As far as I am aware, nothing does anything on your file if I download it as you said and then open it. But maybe I don’t know what to do to make anything happen if it has something to do with making PQ do something.
But that is not important.
I think I am closer now to understanding . ( Probably some of the problem for me was/ is that I never did anything with filters so I did not know that for example “filter by rr” or “filtered by rr” means “remove all lines in table where in column name, the name contains rr”
- It’s obvious with hindsight, but then usually everything is.)



I will have another go and post again later with it.

_ (I will always need the table, the full table, and also the filtered tables as I go along. Maybe the full table and all the others could be put in a spare third worksheet. I can get the full table from the csv file with VBA, but I expect you can get it better with PQ)

_ The table can be any size, any number of rows and columns.

_ You don’t want the full table at all. And I don’t particularly want it on the first worksheet.
I suggest
First worksheet is for filter tables
Second worksheet is Results
Third worksheet has full table and any other shit that my coding would need. (But maybe later we can do without it.**)

But you can suggest something else if you like.
I could get the coding to work on the csv file, and so the full table would never be in the Excel file, but that would be more complicated and it would also make it difficult to develop the coding and check and fix any mistakes initially.
**Maybe later when you are happy that everything is working as you want, then later I could modify the code to work only on the csv file, so then you would never see the full table or filtered tables ever in Excel

sandy666
08-22-2023, 12:14 PM
if you change filter values you need to right click on the table and choose Refresh

https://i.postimg.cc/9fYZz34M/refresh.png

if it doesn't work you'll need higher version of Excel
---

with PQ I need csv as a source
three filter tables (in this case)
result table on the next sheet

the whole procedure is performed inside Power Query

if you need third sheet for additional tables with vba that's ok
if so, it's a pity, it's better if the whole procedure was done in memory


https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1 (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

DocAElstein
08-22-2023, 12:33 PM
OK, I will have another think , drink some coffee, water my big SunFlowers, and take another look later.
(... It will take me time to water my Sun Flowers, because I have the
biggest fucking Sun Flowers in whole of Bavaria https://i.postimg.cc/sGXsFNJc/CIMG6574.jpg (https://postimg.cc/sGXsFNJc)https://i.postimg.cc/7GZpbTTP/CIMG6575.jpg (https://postimg.cc/7GZpbTTP)

https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-22-2023, 01:01 PM
this is a big sunflowers
https://d-art.ppstatic.pl/kadry/k/r/1/f4/04/5b86a9b3ca4a8_o_large.jpg

or this

https://3.bp.blogspot.com/-HLvj6V0AdVU/UlxjNvOYi1I/AAAAAAAAB48/_K5cXyEfaFA/s1600/IMG_6352.jpg

DocAElstein
08-23-2023, 12:21 AM
if you change filter values you need to right click on the table and choose Refresh…That does not seem to work for me

I have the csv file and excel file like you told me… https://i.postimg.cc/B8jj8f1j/D-test-countrows.jpg (https://postimg.cc/B8jj8f1j)



I think I see a refresh option… (using Excel 2013) …
https://i.postimg.cc/bG4skVQ3/Aktualisieren.jpg (https://postimg.cc/bG4skVQ3)


But I get an error when I try it.. https://i.postimg.cc/SnTXNxj0/Data-source-initialization-failed.jpg (https://postimg.cc/SnTXNxj0)



Probably I am doing something wrong because I know no PQ.

DocAElstein
08-23-2023, 12:25 AM
So here is the next VBA attempt…( Coding here https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23211&viewfull=1#post23211 , and in uploaded Excel file )

It is almost all done in memory. The temporary worksheet and all the extra shit in the Results worksheet is just for now, so that we can check that it is working and doing what you want.

So, there are two files, a csv file,
Itchy Bollocks.txt
, and the Main Excel file
FilTit2.xlsm



Just for now, for testing you should do this
_ download both files and put them in the same folder. They can be anywhere but just for now in the same place
https://i.postimg.cc/1nmVNxFP/Excel-and-csv-file-In-same-folder.jpg (https://postimg.cc/1nmVNxFP)


_ open just the Excel file, FilTit2.xlsm

_ Go to TemporaryWorksheet.
Just for now, for testing, you must import the csv file by clicking on the button, Get Itchy Bollox
https://i.postimg.cc/Mv5dftR7/Get-Itchy-Bollox.jpg (https://postimg.cc/Mv5dftR7)

That should import the csv file, so then you should see this: You should now have Itchy Bollox
https://i.postimg.cc/5Xkgn0sj/csv-file-imported.jpg (https://postimg.cc/5Xkgn0sj)

( Later I can make that done automatically into memory, but it is good to test that VBA csv file import works on your Excel )


_ In the Results worksheet there is mostly only your stuff initially in column A. I will leave that there, and my VBA coding will use columns C D E F …. etc so that I do not mess your stuff up
https://i.postimg.cc/sM2KYS9t/Results-before.jpg (https://postimg.cc/sM2KYS9t)


_ Now go to first worksheet, Filters
Then for example, write big in column G
https://i.postimg.cc/Lhzy2m80/write-big-in-column-G.jpg (https://postimg.cc/Lhzy2m80)


Then hit Enter
You should see this:
https://i.postimg.cc/rKMfp7dy/First-big-results.jpg (https://postimg.cc/rKMfp7dy)


There is also a lot of extra shit now in worksheet TemporaryWorksheet

https://i.postimg.cc/N27b4knw/Temporary-Worksheet-filled.jpg (https://postimg.cc/N27b4knw)

That shit is not needed, we can get rid of it all later, and forget the whole TemporaryWorksheet, but for now it is showing you all the rest left .. like you see 100 then 86 84 64 60




You can now go back to the first worksheet and change or add some values in the filter columns…….and see what happens
See if that is any use to you.

sandy666
08-23-2023, 01:16 AM
ok, thanks.
I'll test it if I discover how to enable macro in this fucking XL2021 !

Dammed fucking impressive VBA results - this is really NOT necessary !
the result table should be in the same place not as new !

Encoding for imported csv should be: UTF 65001


https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwTUdEgR4bdt6crKXF4AaABAg.9xmkXGSciKJ9xonTti2s Ix)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgwWw16qBFX39JCRRm54AaABAg.9xnskBhPnmb9xoq3mGxu _b)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9xon1p2ImxO)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgybZfNJd3l4FokX3cV4AaABAg.9xm_ufqOILb9xooIlv5P LY)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgzgWvzV-kvC4TJ8O414AaABAg.9xnFzCj8HRM9y38bzbSqaG)
https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM (https://www.youtube.com/watch?v=XQAIYCT4f8Q&lc=UgyWm8nL7syjhiHtpBF4AaABAg.9xmt8i0IsEr9y3FT9Y9F eM)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg.9xhyRrsUUOM9xpn-GDkL3o)
https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg (https://www.youtube.com/watch?v=jTmVtPHtiTg&lc=Ugy_RiNN_kAqUvZ8W994AaABAg)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1 (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNsaS3Lp1)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgR1EPUkhw)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNe_XC-jK)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgNPOdiDuv)
https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc (https://www.youtube.com/watch?v=QjEWAJ3d-jw&lc=UgxJLVpwY8fIla7G-pN4AaABAg.9BLeCWVhxdG9wgN7AC7wAc)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

DocAElstein
08-23-2023, 10:25 AM
...
I'll test it if I discover how to enable macro in this fucking XL2021 !

In newer Office versions Microsoft make everything more difficult in Excel and VBA

Every Excel version is a bit different, but you need to do something like this:

Options
https://i.postimg.cc/hPXFbW3F/Options.jpg
https://i.postimg.cc/KYm7qjMJ/Options.jpg
https://i.postimg.cc/GmwxDqh0/Options.jpg



Security / Trust Center
https://i.postimg.cc/7Ps82Y9M/Security.jpg
https://i.postimg.cc/yYSTWwKX/Trust-Center.jpg



Settings for security
https://i.postimg.cc/qqZPVjqZ/Settings-for-Security.jpg
https://i.postimg.cc/t43tNWYs/Settings-for-security.jpg

Macro settings:
2 things to change:
_1 Macro settings:
Either check
Disable all macros with notification
, or check
Enable all macros (not recommended because potentially dangerous code can run)

_2 Developer macro settings:
_- Check to allow trust access to the VBA project object model

https://i.postimg.cc/sx2kNtjh/Macro-Settings.jpg
https://i.postimg.cc/NGn4sQ3j/Macro-Settings.jpg



https://www.youtube.com/watch?v=y2xZvLkOdqY&t=10s

DocAElstein
08-23-2023, 10:32 AM
Dammed fucking impressive VBA results - this is really NOT necessary !You can put anything there , or have nothing there. It has no relevance. Delete all the text or change it to something like
Alan’s coding is beautiful but Microsoft fuck everything up
, or
Alan has a big Cock
, or anything you like





the result table should be in the same place not as new !
That is easy to change later. I just thought initially it is good for testing, and checking results to make sure it is working correctly



https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-23-2023, 10:52 AM
thanks for tips but I really want what I want
the result table ONLY ! and nothing more !
your vba will be shorter and easier probably without these bells&whistles

could you explain what it is for me? What is it needed for? :mad:
https://i.postimg.cc/qqh62wXh/form.png

DocAElstein
08-23-2023, 11:20 AM
Encoding for imported csv should be: UTF 65001I have no idea at all what that is.

I never had any problem importing text files into Excel with VBA.
Maybe it is a problem with newer Excel version? I have not much experience with newer Office versions. Microsoft seem to fuck up more and more with newer versions. I would never use any Excel much above 2010 for Excel or VBA, unless I was payed to do so.
Perhaps with PQ it is better, but most people with any sense say that Microsoft fucks everything up more and more for Excel and VBA above Office 2010.



Is this file any better for you?


I just made it like this:

I took your file, data-v9i8Rbfh1ul6_1diL56pb.csv , opened it with text editor
https://i.postimg.cc/bddRDSkZ/Open-csv-file-with-text-editor.jpg (https://postimg.cc/bddRDSkZ)


, then I deleted everything and copied all text from my text file,
https://i.postimg.cc/YhWf8cXk/Copy-from-Itchy-Bollocks-to-data-v.jpg (https://postimg.cc/YhWf8cXk)
https://i.postimg.cc/5jGSw9Sn/Copy-from-Itchy-Bollocks-to-data-v.jpg (https://postimg.cc/5jGSw9Sn)


, then saved it as Itchy Bollocks.txt
https://i.postimg.cc/rRdGv7M1/Save-As-Itchy-Bollox-txt.jpg (https://postimg.cc/rRdGv7M1)

sandy666
08-23-2023, 11:29 AM
can you define encoding UTF 65001 in VBA ?

if it will be a problem don't worry too much about it %D

DocAElstein
08-23-2023, 11:36 AM
could you explain what it is for me? What is it needed for?
https://i.postimg.cc/qqh62wXh/form.png

It looks like an Excel Userform
https://www.excel-easy.com/vba/userform.html


I hardly ever use them. I don’t know so much about them. I never put one in the file FilTit2.xlsm

I have no idea how it got there. I never put it there

5521


As far as I know, you have to put them there. I never saw them come there themselves.
Perhaps with newer Excel they give you one just to fuck you up a bit more.

DocAElstein
08-23-2023, 11:50 AM
can you define encoding UTF 65001 in VBA ?
No I can't define it. I have no idea at all what it is. I never heard of anything like that ever before

How about

Useless Text Fucking format

sandy666
08-23-2023, 11:55 AM
this is very good format

I found new shit from MS like:
https://i.postimg.cc/mgJZK9MR/regionsettigs-W11.png
it should be OFF
don't be fooled by UTF-8 because it is UTF-65001 ;)

sandy666
08-23-2023, 11:59 AM
It looks like an Excel Userform
https://www.excel-easy.com/vba/userform.html


I hardly ever use them. I don’t know so much about them. I never put one in the file FilTit2.xlsm

I have no idea how it got there. I never put it there

5521


As far as I know, you have to put them there. I never saw them come there themselves.
Perhaps with newer Excel they give you one just to fuck you up a bit more.

you used it in the first version of vba - first file and forgot to remove it

DocAElstein
08-23-2023, 12:41 PM
you used it in the first version of vba - first file and forgot to remove it
?? That is strange. Something weird going on. If I download my first file from here: https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table?p=23205&viewfull=1#post23205 , then I don’t see any UserForm. In any case, as far as I can tell, you never downloaded that. I think I was the first to ever download that just now. That is file FilTit.xlsm

Your screenshot shows my second file, FilTit2.xlsm
If I download that from here: https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table?p=23220&viewfull=1#post23220 , then I still see no UserForm
5522

I am fairly sure I never added any UserForm to any file.

Not important, but strange.



https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-23-2023, 01:11 PM
maybe this is it
http://www.excelfox.com/forum/attachment.php?attachmentid=5513&d=1692610305

DocAElstein
08-23-2023, 01:47 PM
No. that is a VBA built in Message Box. We can get it with coding like this

MsgBox Prompt:="Alan Big Cock" & vbCr & vbLf & "big VBA man."


( the people at Microsoft who made Excel probably used something like a UserForm to make that VBA built in Message Box. The approximately story is that…..
…… Excel and Word and similar stuff is made from VBA coding: Excel is just a very long VBA code and it makes a lot of forms. Basically we having access to VBA is like being able to manipulate and change that coding.
For example: When Excel first opens, there is a lot of coding which opens it.
Because Microsoft lets us, and because I am so incredibly big and clever VBA man, and have a big brain, I can put that coding above into the coding that works when you open Excel.

So, if/ when you get macros enabled in your Excel, then open the attached file:
As it opens it will run that coding above, because I have figured out how to put that coding inside the coding that runs when the file is opened )

5524

sandy666
08-23-2023, 02:04 PM
it looks like you say that by opening a clean excel xlsm file I can see a lot of some vba code

DocAElstein
08-23-2023, 02:37 PM
No. Microsoft do not let us see all the VBA coding that makes Excel work.
Probably Microsoft do not want us to see it all. If we could see it all, then some people could probably steal all the coding and make their own Excel without Microsoft!

Microsoft only let us see a very very small amount in a clean file.
Mostly they let us have access to codings that do things when events, like opening, or changing things, happen. But they hide, (make invisible), their coding. But we can add our coding in those places.

The main macro I did for you I put in the Microsoft coding that works when you change something in a cell. That is why it works automatically when you change something. Not many people know how to do that. Only people like me with big cock and big brain

The start of the main coding I did for you https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23211&viewfull=1#post23211 , looks like this:


Private Sub Worksheet_Change(ByVal Target As Range)
Rem 1 what cell changes don't interest me
If Target.Cells.Count <> 1 Then Exit Sub ' More than one cell changed, for example by pasiting new range in
If Target.Row = 1 Then Exit Sub ' ' Row 1 is always header so of no interst for adding data
' If Target.Value = "" Then Exit Sub ' ' If we empty a cell we don't want the macro to do anything


Target is the cell or cells that get changed.
The first few code lines check to see
_ If you changed more than one cell
_ or If you are in the first row.
In those case I exit the macro, since I assume we don’t want to do anything automatically in those cases


The coding called Sub Worksheet_Change(ByVal Target As Range) is always there in a new file and there is already lots of coding in it. But we can’t see it. Microsoft made all their coding invisible.

If you look at that macro in a new file it looks like this to us

Private Sub Worksheet_Change(ByVal Target As Range)



















End Sub

Microsoft have lots of coding in it, but they make that invisible to us. But they let us put extra coding in it.

DocAElstein
08-23-2023, 03:15 PM
I have a quick question on you….
Are you results here: https://www.excelfox.com/forum/showthread.php/2923-PQ-counting-rows-filtered-and-after-filtering?p=23218#post23218 , supposed to be the correct results for the text or csv file?

My results ( with any of my or your text or csv files are different. )

For example, filter first FName of rr
I only ever find 6 to filter

https://i.postimg.cc/tZ9sr56X/Only-6-rr.jpg (https://postimg.cc/tZ9sr56X)

https://i.postimg.cc/Hc3VFy0b/Only-6-with-rr.jpg (https://postimg.cc/Hc3VFy0b)

https://i.postimg.cc/f3c3jFJ2/only-ever-6-rr.jpg (https://postimg.cc/f3c3jFJ2)


Your result

"Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 22 Left / Filtered 50"

https://i.postimg.cc/FfVys1gH/Your-results.jpg (https://postimg.cc/FfVys1gH)



My results, (with any of the text files or csv files)

"Total rows: 100
name filter by rr: 94 Left / Filtered 6
region filter by sh: 90 Left / Filtered 4
country filter by us: 86 Left / Filtered 4
"




How do you filter 20 by rr from this


name
Pascale Murray
Harrison Irwin
Kim Buckner
Mia Cruz
Sierra Howe
Kyra Osborne
Matthew Jenkins
Adria Mayo
Patricia Rodriguez
Nolan Hurst
Cleo Munoz
Scarlet David
Madonna Parks
Derek Cain
Zorita Harvey
Lev Stout
George Blake
Adele Burgess
Curran Herring
Jenette Stanton
Katell Whitaker
Phillip Hunter
Martena Cotton
Brenda Mclaughlin
Brett Blackwell
Alma Curtis
Ainsley Battle
Glenna Gregory
Julian Castillo
Beatrice Whitley
Brooke Daniel
Nicholas Douglas
Kelly Ware
Peter Velazquez
Erasmus Hughes
Reese Bray
MacKenzie Ray
Audra Nolan
Jin Mcmillan
Alec Guzman
Ciara Hurst
Yasir Rollins
Logan Lara
Wayne Holcomb
Madonna Ayers
Christian Graves
Ingrid Harper
Rafael Emerson
Chandler Burks
Jaquelyn Hendrix
Roanna Reynolds
Chandler Baldwin
Wanda Luna
Blake Herring
Odette Gordon
Ignacia Randolph
Haley Ewing
Keaton Mckay
Yeo Allen
Chester Whitfield
Kadeem Calhoun
Clinton Mcgowan
Macon Burke
Yen Griffin
Dieter Christensen
Rafael Ferguson
Rana Graves
Hilel Marshall
Lev Osborne
Amela Benjamin
Brock Gomez
Raphael Gonzalez
Armando Roach
Iona Glenn
Rose Brennan
Adara Mcguire
Jarrod Mccarthy
Aiko Hardy
Blythe Knapp
Jameson Ramsey
Idona Flynn
Rogan Mcneil
Kiayada Spencer
Dillon Dunlap
Anastasia Powers
Neil Walter
Jin Gilliam
Stephanie Mann
Petra Sellers
Armando Fuentes
Amy Eaton
Kessie Parsons
Bo Irwin
Ariel Rice
Chancellor Ratliff
Jana Hickman
Halla Hodges
Tiger Gay
Kenneth Delacruz
Mikayla Pacheco





Is the answer…
First you filter FName ll
then FName by rr

Then FRegion by sh

Then FCountry by us


If that is the answer, then I will have to re write my macro because it does not do that. My macro just uses the last things added, so it does this

Is the answer…
First FName by rr

Then FRegion by sh

Then FCountry by us

sandy666
08-23-2023, 06:35 PM
here is some results



Count

Total rows: 100
Name filter: 94 Left / Filtered 6
Region filter: 94 Left / Filtered 0
Country filter: 94 Left / Filtered 0



Fname= rr



Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 80 Left / Filtered 0
Country filter: 80 Left / Filtered 0



Fname= rr, ll



Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 72 Left / Filtered 0



Fname= rr, ll

Fregion= sh



Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 64 Left / Filtered 8



Fname= rr, ll

Fregion= sh

Fcountry= us



Count

Total rows: 100
Name filter: 100 Left / Filtered 0
Region filter: 96 Left / Filtered 4
Country filter: 92 Left / Filtered 4



Fname=

Fregion= sh

Fcountry= us



Count

Total rows: 100
Name filter: 100 Left / Filtered 0
Region filter: 96 Left / Filtered 4
Country filter: 96 Left / Filtered 0



Fname=

Fregion= sh

Fcountry=



Count

Total rows: 100
Name filter: 100 Left / Filtered 0
Region filter: 100 Left / Filtered 0
Country filter: 96 Left / Filtered 4



Fname=

Fregion=

Fcountry= us



Count

Total rows: 100
Name filter: 100 Left / Filtered 0
Region filter: 100 Left / Filtered 0
Country filter: 100 Left / Filtered 0



Fname=

Fregion=

Fcountry=

DocAElstein
08-23-2023, 06:46 PM
OK, so answer is like

.....the answer…
First you filter FName by ll
then FName by rr

Then FRegion by sh

Then FCountry by us
...
Filter by all entries in a F___ column, then go on to the next F___ column and do the same, but the results you want are
totals Removed(Filtered) / Left
for each F___ column.

I will do another macro later….

https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-23-2023, 07:01 PM
filters filtering columns but rows are counting for whole table, that is why this is an Excel Table (source from CSV) not Range

DocAElstein
08-23-2023, 07:24 PM
filters filtering columns but rows are counting for whole table, ….Yep, I guessed that bit right already, …but I almost didn’t, - so in other words you remove(filter) entire rows in the table where you find, for example, rr , in the first table column.

I think I am either 100% there in understanding what you want now, or I am very close.

I also know exactly how you want the final output. I will try to do that eventually. But if I had originally tried to do the output exactly as you wanted from the start, then
_ it would be more difficult for me to change it now,
and
_ I might not have noticed my mistake….

….I have not done so much Excel Filter work so I did not know how filters on table typically work….. I know you know but I forgot my hairy fucking Crystal Bollocks and didn't know :)




…., that is why this is an Excel Table (source from CSV) not Range
I don’t know anything about that, I don’t know what is a Poxy fucking Excel Table is either :)
Never mind, it's probably not important :)



I will take anothert look later.- I am going now for my long daily jog along my the old railway track.
https://i.postimg.cc/cKzrrVTK/My-Railway-near-where-it-still-joins-to-the-main-line.jpg (https://postimg.cc/cKzrrVTK)
Its beautiful. I do it early while it’s still sunny, so I get a nice Sun tan on my body so that I will be even more beautiful in my YouTube videos...

sandy666
08-23-2023, 07:46 PM
Take more pics from your jogging track
Your YT videos = 0 :confused:

DocAElstein
08-24-2023, 01:48 PM
Hallo

I am getting some different results to yours… I don’t understand yet why

Example:

Your results:


Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 64 Left / Filtered 8



Fname= rr, ll

Fregion= sh

Fcountry= us


My results:

"name filter rr ll : 80 Left / Filtered 20
Region filter sh : 78 Left / Filtered 2
Country filter us : 75 Left / Filtered 3
alan filter big : 73 Left / Filtered 2
"

?? – Problem is Region filter sh and Country filter us
See uploaded file, see worksheet items 3 and 4 ( "TemporaryWorksheet" and "Tables" )


Country filter us
See worksheet items 4 ( "Tables" )
In country column there are 4 with us
Russian Federation
Australia
Russian Federation
Austria

Now see worksheet items 3 ( "TemporaryWorksheet" )
These are taken out by Country filter us Filtered 3
Russian Federation
Australia
Russian Federation
This is taken out previously by name filter ll
Austria ( because of Halla Hodges )


Region filter sh
These are taken out by Region filter sh
Azad Kashmir
Andhra Pradesh
These are taken out previously by name filter ll
Flintshire ( because of Katell Whitaker )
Kirkcudbrightshire ( because of Yeo Allen )


So if my current understanding of what you want is correct, then my results look correct
So who/ what has got something wrong?



Also see your result for example


Count

Total rows: 100
Name filter: 100 Left / Filtered 0
Region filter: 100 Left / Filtered 0
Country filter: 96 Left / Filtered 4



Fname=

Fregion=

Fcountry= us
That finds 4 rows to remove for only us


So how can you find 8 rows to remove for us here


Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 64 Left / Filtered 8



Fname= rr, ll

Fregion= sh

Fcountry= us


I think there are only 4 rows in country column in the table with us So you can only remove maximum of 4 rows. ( It may be 4 or 3 or 2 or 1 or 0 , depending on what full rows got removed by previous filtering... )






( macro used in atttched file, FilTit3.xlsm , is also here: https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23212&viewfull=1#post23212 )

sandy666
08-24-2023, 06:13 PM
total = Table.RowCount(TPH),
name = Text.From(Table.RowCount(TPH)-Table.RowCount(TSR))&" Left / Filtered "&Text.From(Table.RowCount(TSR)),
region = Text.From(Table.RowCount(TPH)-Table.RowCount(TSR)-Table.RowCount(TSR1))&" Left / Filtered "&Text.From(Table.RowCount(TSR1)),
country = Text.From(Table.RowCount(TPH)-Table.RowCount(TSR)-Table.RowCount(TSR1)-Table.RowCount(TSR2))&" Left / Filtered "&Text.From(Table.RowCount(TSR2))
total
total-filtered1
total-filtered1-filtered2
total-filtered1-filtered2-filtered3

DocAElstein
08-24-2023, 06:23 PM
total
total-filtered1
total-filtered1-filtered2
total-filtered1-filtered2-filtered3
I assume you are trying to say
Total rows
Left after name filter1 ( rr ll ) = total-filtered1
Left after region filter2 ( sh ) = total-filtered1-filtered2
Left after country filter3 ( us ) = total-filtered1-filtered2-filtered3

That is not the problem

Problems is:
_1 ) How can you remove(Filtered) 8 lines when filtering out by sh in region column
that is impossible: there are only 4 lines in original table with a sh in region column
_2 ) How can you remove(Filtered) 8 lines when filtering out by us in country column
that is impossible: there are only 4 lines in original table with a us in country column



Your results:


Count

Total rows: 100
Name filter: 80 Left / Filtered 20
Region filter: 72 Left / Filtered 8
Country filter: 64 Left / Filtered 8



Fname= rr, ll

Fregion= sh

Fcountry= us



https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)
https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA (https://www.youtube.com/watch?v=oVb1RfcSHLM&lc=UgwTq-jZlZLnLQ5VB8Z4AaABAg.9Hroz-OyWog9tYjSMc1qjA)
https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg (https://www.youtube.com/watch?v=0pbsf6sox34&lc=Ugxp9JFvvejnqA68W1t4AaABAg)
https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg (https://www.youtube.com/watch?v=kfQC-sQxMcw&lc=UgyCxQWypNIhG2nUn794AaABAg.9q1p6q7ah839tUQl_92m vg)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgyOh-eR43LvlIJLG5p4AaABAg.9isnKJoRfbL9itPC-4uckb)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugy1B1aQnHq2WbbucmR4AaABAg.9isY3Ezhx4j9itQLuif2 6T)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgxxajSt03TX1wxh3IJ4AaABAg.9irSL7x4Moh9itTRqL7d Qh)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=Ugxa2VYHMWJWXA6QI294AaABAg.9irLgSdeU3r9itU7zdnW Hw)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgwJAAPbp8dhkW2X1Uh4AaABAg.9iraombnLDb9itV80HDp Xc)
https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq (https://www.youtube.com/watch?v=vXyMScSbhk4&lc=UgzIzQ6MQ5kTpuLbIuB4AaABAg.9is0FSoF2Wi9itWKEvGS Sq)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK75iCEaGN)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iK7XF33njy)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCSgpAqA1)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iKCy--3x8E)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwNaJiNATXshvJ0Zz94AaABAg.9iEktVkTAHk9iF9_pdsh r6)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ- (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgykemWTw-fGoPwu8E14AaABAg.9iECYNx-n4U9iFAZq-JEZ-)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgxV2r7KQnuAyZVLHH54AaABAg.9iDVgy6wzct9iFBxma9z XI)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugx12mI-a39T41NaZ8F4AaABAg.9iDQqIP56NV9iFD0AkeeJG)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwnYuSngiuYaUhEMWN4AaABAg.9iDQN7TORHv9iFGQQ5z_ 3f)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwJ3yzdk_EE98dndmt4AaABAg.9iDLC2uEPRW9iFGvgk11 nH)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgyDWAVqCa4yMot463x4AaABAg.9iH3wvUZj3n9iHnpOxOe Xa)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8 (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=UgwvLFdMEAba5rLHIz94AaABAg.9iGReNGzP4v9iHoeaCpT G8)
https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I (https://www.youtube.com/watch?v=ITI1HaFeq_g&lc=Ugy_1xkcndYdzUapw-J4AaABAg.9iGOq_leF_E9iHpsWCdJ5I)
https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA (https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA)

sandy666
08-24-2023, 07:23 PM
it should be a proper result


Count

Total rows: 100


Name filter: 86 Left / Filtered 14


Region filter: 82 Left / Filtered 4


Country filter: 79 Left / Filtered 3

DocAElstein
08-24-2023, 07:39 PM
it should be a proper result


Count

Total rows: 100


Name filter: 86 Left / Filtered 14


Region filter: 82 Left / Filtered 4


Country filter: 79 Left / Filtered 3

I don't think so, still does not look right



My results:

"name filter rr ll : 80 Left / Filtered 20
Region filter sh : 78 Left / Filtered 2
Country filter us : 75 Left / Filtered 3

"
or you are not telling me something

I am going jogging in the Sun
:)

sandy666
08-24-2023, 07:41 PM
remember to take a pictures :)

sandy666
08-24-2023, 08:24 PM
I need to rewire my brain :cool:

DocAElstein
08-24-2023, 09:15 PM
remember to take a pictures :)I can't take my camera, because I jog fast and very hard, so I might break it. Here is pic from about 18 months ago after I first discovered my old train line. So then I stole some wood and pallets and made a nice secret place to sit.
https://i.postimg.cc/w16v0JRD/Pooh-Bahnhof-Building-myself-a-Railway-Station.jpg (https://postimg.cc/w16v0JRD)
I go there sometimes and drink Bier. Not often because always drinking beer is unhealthy. But when I do go I drink lots. I only did it 2 times this summer. Maybe in a few days before Summer end I will go again. Then I go with bike and trailer full with beer. Then I can take a new picture..




I need to recalculate all....I need to rewire my brain :cool:
Just a suggestion, to make it easier for us both
Maybe make new text file, maybe just 30 lines.
Use just English characters
Choose data that test all filters

Then we can first, - forget VBA, forget PQ , and first do it manually so we are sure what results should be.

Then after try PQ and VBA

Just a suggestion, that’s all.

sandy666
08-25-2023, 04:19 AM
here is table from csv (100 rows)
with CF defined for each filter (hardcoded) then table filtered by No Color
The trick is that the filter should not be hardcoded
with rows counted manually

DocAElstein
08-25-2023, 11:57 AM
here is table from csv (100 rows)
with CF defined for each filter (hardcoded) then table filtered by No Color

I don’t know anything about CF or Filters in Excel, so I don’t know what to do with any of that.
Never mind



That table looks the same as the Tables and the csv text files we have used so far.
https://i.postimg.cc/NLZV13CX/Tables-so-far.jpg (https://postimg.cc/NLZV13CX)

In that last file I added another worksheet, ManuellAlan copied the data range, and then did it all manually
, no VBA
, no PQ
, no CF, filter or anything
, just Alan and his hands very big brain.

Results from me doing it with just my brain and hands:
https://i.postimg.cc/Hr8Yt3jV/Alan-do-it-manually.jpg (https://postimg.cc/Hr8Yt3jV)
_____ Workbook: test01.xlsx ( Using Excel 2010 32 bit )
Row\Col
AI

2Filter name by ll and rr takes out 20 rows, so left with 80


3Then filter region by sh takes out 2 rows, so 78 left


4Then filter country by us takes out 3 rows, so I am left wir 75
Worksheet: ManuellAlan



Results from my VBA coding
For this filter set: https://i.postimg.cc/300cs1NW/Filter-Set.jpg (https://postimg.cc/300cs1NW)

, I still get the same results as before: https://i.postimg.cc/bDB5VWzK/VBA-results.jpg (https://postimg.cc/bDB5VWzK)


, and they are the same as when I did it all manually.



So, so far I think my VBA coding is giving the correct results.

sandy666
08-25-2023, 12:54 PM
CF - conditional formatting
Filter - filter each column by NoColor starting from far left
you just retyped in many words all what I show with one table
what is your office version?
could you write single, one step, code vba?

not like this where it is not clear what to do
5530

DocAElstein
08-25-2023, 01:51 PM
what is your office version?
At the moment I am mostly using Excel 2010.
(I also have and use 2003 2007 2010 2013)





you just retyped in many words all what I show with one table
Correct. I did it all manually, just to check again if my results were correct. That is all.
I did not know what to do with what you gave me ….
What was I supposed to do? ….I know you know, but ….. :)






...could you write single, one step, code vba?...not like this where it is not clear what to do
5530.


The macro I wrote for you will not be shown in that list you showed,
So far, most of the macros I wrote for you should work automatically, ( this is what I tried to explain here: https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table?p=23239&viewfull=1#post23239 )

The macros should work automatically. They start when you do something in the first worksheet, Filters

You cannot run them when you want to. It is not difficult to arrange that. But it is not what you originally asked for. You know what you want, but...


It is difficult to explain everything if you have little experience running macros, just as if you try to explain me to do something in PQ, ….

I try again.
I modified slightly my last file.
So now it is uploaded here, called FilTit3c.xlsm


Try to do this:

_1) download FilTit3c.xlsm
( download it anywhere. Forget the csv file for now. I already put it in for this attempt, just to see if you can get the fucking VBA thing to work )
( For now I put table already in : https://i.postimg.cc/vg5Z4Vvc/Table-is-temporarily-already-there.jpg (https://postimg.cc/vg5Z4Vvc) )


_2) open FilTit3c.xlsm ( I tried to explain here https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table?p=23223&viewfull=1#post23223 how to make macros enabled )


_3) go to first worksheet, Filters
https://i.postimg.cc/CZ3KMNk3/First-worksheet-filters.jpg (https://postimg.cc/CZ3KMNk3)



_4) type us in cell E2, https://i.postimg.cc/6813gw35/Type-us-in-cell-E2.jpg (https://postimg.cc/6813gw35)

(and press Enter)





If it works you will first see my Hairy Goolies in worksheet ResultsAlan. But you will only see my Hairy Goolies for 2 seconds.
https://i.postimg.cc/wtyvdPy5/My-Hairy-Goolies-for-2-seconds.jpg (https://postimg.cc/wtyvdPy5)



Then you will see more simplified results like what you want
https://i.postimg.cc/2qVqSyJZ/Simplified-results.jpg (https://postimg.cc/2qVqSyJZ)




If that does not work, then we should probably best first forget everything, and start with a new file and try to get any simple macro working for you.
Otherwise it is like you are trying to fly to the moon before you have learnt to walk….

sandy666
08-25-2023, 08:05 PM
It's too complicated, too much green color in your code - I understand nothing!
I have decided not to use vba ever again
thanks for trying , thanks for your time

DocAElstein
08-26-2023, 12:15 AM

thanks for trying , thanks for your time
Sure no problem. :)




It's too complicated, too much green color in your code - I understand nothing!
I have decided not to use vba ever again…
That is a bit like me with PQ I suppose. I would like to understand it, but I doubt I will ever get the time.

Also I think with VBA it makes a very big difference if your native language is English or not. It is very wordy , but only in English. Half the code speaks for itself. It’s very visual in a basic sort of way….
I expect that if VBA was in other languages and not just English, then the main VBA forums would not have half the traffic they do. Anyone whose native language is English should be able to pick up VBA quite quickly

As for the ' green comments, there is a couple of things you can do to get rid of them.
Hide comments,
_ For one thing, there is loads of room to the right, so you can………………… ----->


----> ………………………………………… ………………………………………… ………………………………………… ….. put comments way way out to the right so you don’t have to see them all the time. It’s great for hiding links to good references and hiding links to good porno sites
It looks like there are about 1023 characters https://www.excelfox.com/forum/showthread.php/1976-Code-Tag-Test-with-Long-Comments-Code-Window-Horitontal-scroll-bar?p=10948&viewfull=1#post10948 So you have plenty of space to put lots of stuff in

Remove comments
_ The other thing you can do to get rid of them is a search and replace with wild cards,

Before: https://i.postimg.cc/pmGS0TR0/comments-before.jpg (https://postimg.cc/pmGS0TR0)

Highlight the code you want to clean up and find the Search thing
, https://i.postimg.cc/ygxs2pbF/search.jpg (https://postimg.cc/ygxs2pbF) , or https://i.postimg.cc/tZcpbdK8/search.jpg (https://postimg.cc/tZcpbdK8) , or use keys Ctrl+F ( when in VB Editor )


You need to da a search with wild card with these two characters, ( no space in between) '*
https://i.postimg.cc/s17tVs4X/search-with-wild-card.jpg (https://postimg.cc/s17tVs4X)

Then you leave the replace bar empty and do a replace all
https://i.postimg.cc/RWV8Qf56/Replace-all.jpg (https://postimg.cc/RWV8Qf56)

'* <------ Find



<--- Replace ( leave empty )


Then they are gone.
https://i.postimg.cc/PvWcKQ5Z/Gone.jpg (https://postimg.cc/PvWcKQ5Z)

( Only very rarely that can give a problem because sometimes a ' is used in coding. So you might accidently lose a bit of coding. But that does not happen often. I don’t think I have any ' inside the coding I did for you. )

I would be surprised if removing comments makes a coding easier to understand. Many people just don't like having them there, often people who already know VBA and/ or the particular coding very well. But they are easy to get rid of if you don't like to see them. Just personal preference, but they are easier to get rid of

VBA cannot currently read your mind and write a code for you. But probably ChatGPT & co. will come close to doing all that, or one way or another it will get rid of most of us. Newer versions of Windows, Office, and most Microsoft will all become just something like Chat GPT and artificial intelligence. We have no long term future, other than to become self sufficient with earlier versions and have nothing to do with Microsoft and any of their software from the last 10 - 15 years

Currently you would also need yourself to download a file and open it and use it, unless you can get someone else to do that for you. I can't do that over the internet, I figured you could / would do that at least. But hey, why be dull and conventional! Do / don't do wot you want, seriously – there is too many people in forums acting like teachers in a nursery school from the 1950’s. They’re too weak or stupid to cope with real hard life I expect.



I have decided not to use vba ever again..
You should never say never to anything, JIMO … or…well perhaps there is… maybe say never to anal sex. I would never do that, not even if I was Gay. Poking my cock into shit is the worst thing I can think of, ( apart from maybe trying to Learn PQ, that might be almost as bad. Although if I had to choose between poking my cock into shit, or learning PQ, I probably would choose learning PQ. But it would be a close thing! I speak English but I can’t make head or tail of PQ code. I don’t even know how/ where to find the code. I never got a PQ to work even on my Excel 2013 ( https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table?p=23219&viewfull=1#post23219
( https://www.excelfox.com/forum/showthread.php/2922-VBA-Count-filtered-rows-in-the-table/page2?p=23214#post23214 ) ) )

You don’t have to understand all of a VBA coding to use it, - most peole using a VBA macro don't understand it.
But I agree it’s best not to use coding you don’t understand. But that is just personalö preferrance. I personally only ever started learning because I needed it for some important personal projects, and I don’t like using things that I don’t understand.



I started doing some further notes earlier today, https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23247&viewfull=1#post23247
You probably aren’t interested, but I will probably finish them anyway, maybe in a day or two. sometime for my own reference. There is some amazing stuff in those codes that only I know about because I discovered them. It still is a long complicated coding, but without the amazing stuff I discovered , it would be even more complicated and probably 3- 4 time longer.
I don’t know all VBA. No one can know it all, it is just too big. You could not learn it all even if you did nothing else for your whole life. I only know a very small part of it. But some of what I know I know better than anyone. I got a big cock as well. (But I don’t stick it in peoples arse). If my YouTube / VBA / forum career does not take off, I can earn lots of money as a Gigolo instead.

DocAElstein
08-26-2023, 09:35 PM
Here is another, forth, version, FilTit4.xlsm

Detailed explanation is here https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23247&viewfull=1#post23247
https://www.excelfox.com/forum/showthread.php/2056-Appendix-Thread-2-(-Codes-for-other-Threads-HTML-Tables-etc-)?p=23262&viewfull=1#post23262


These are the main three differences, summarised.

_1) I have used the dictionary object a bit more cleverly, and so have reduced the amount of manipulation with VBA arrays. There are two reasons for this:
_ one reason is simply doing it a bit better after a few tries so far at a final coding, so in other words I just got better as I went along; but also,
_ the other reason is that in this version I omit the TemporaryWorksheet worksheet which pasted out the reduced size tables as we went along, which required an extra array to be made as I went along in order to do that extra output.

_2) All the extended output information that is useful in development and fault finding, is now Debug.Printed out to the Immediate window, and all the extra worksheets are omitted. The only seen output for the user is what was originally wanted
For example, using the example used in the last few posts of this
https://i.postimg.cc/crcxL3p0/Example-used-in-last-few-posts.jpg (https://postimg.cc/crcxL3p0)

, then we will only see this
https://i.postimg.cc/4YNJ7dGt/Only-results-seen-for-Fil-Tit4-xlsm.jpg (https://postimg.cc/4YNJ7dGt)


, unless we look in the Immediate window, and then we can see the extended output:

Using Filter Fname,rr,ll -----|---- -_-
Filterd out by "rr"
Pascale Murray
Harrison Irwin
Sierra Howe
Curran Herring
Blake Herring
Jarrod Mccarthy
Filtered Out 6
Left is: 94
Filterd out by "ll"
Katell Whitaker
Phillip Hunter
Brett Blackwell
Julian Castillo
Kelly Ware
Jin Mcmillan
Yasir Rollins
Yeo Allen
Hilel Marshall
Dillon Dunlap
Jin Gilliam
Petra Sellers
Chancellor Ratliff
Halla Hodges
Filtered Out 14
Left is: 80
Total rows/lines removed for filter Fname was 20

Using Filter FRegion,sh -----|---- -_-
Filterd out by "sh"
Azad Kashmir
Andhra Pradesh
Filtered Out 2
Left is: 78
Total rows/lines removed for filter FRegion was 2

Using Filter FCountry,us -----|---- -_-
Filterd out by "us"
Russian Federation
Australia
Russian Federation
Filtered Out 3
Left is: 75
Total rows/lines removed for filter FCountry was 3





_3) The table (from the text file) is held only in memory and is also not put or used in any temporary worksheets.




To test, then similar process to previously ,
_ download both files. They can be anywhere but both files should be in the same folder
_ open the excel workbook file only
_ In the first worksheet, type something in any filter, …. for example: type us in cell E3 of the first worksheet , and then hit Enter, https://i.postimg.cc/Cz0M076c/Type-us-in-cell-E3.jpg (https://postimg.cc/Cz0M076c)

That should result in getting the results indicated above