Fiat Coupe Forum
- Founded by Kayjey & James Northam
- Funded by the Club for the benefit of all owners
Fiat Coupe Club UK
join the club
Fiat Coupe Forum
 
» Announced
    Posting images


» Related sites
    Main club site
    fiatcoupe.net


» External data
    owners listed
 
Who's Online Now
2 registered members (JamesH1203, 1 invisible), 157 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums69
Topics113,576
Posts1,340,880
Members1,797
Most Online731
Jan 14th, 2020
Top Posters(All Time)
barnacle 33,545
stan 32,122
Theresa 23,299
PeteP 21,510
bockers 21,071
JimO 17,917
Nigel 17,367
Edinburgh 16,740
RSS Feeds
Club Events
Club Information
Track Events
Rolling Road/RWYB
Social Events
Non-UK Events
Coupé Related Chat
Coupé Spotting
Coupé News/Press
Buying/Selling Advice
Insuring a Coupé
Basic FAQ's
How to Guides
Forum Issues
Technical Problems
General Maintenance
Styling
Tuning
Handling
ICE and Alarm
Coupés for Sale
Coupés Wanted
Parts for Sale
Parts Wanted
Group Buys
Business Forum
Other Vehicles for Sale/Wanted
Other Items for Sale/Wanted
Haggling/Offers
Ebay links
Other Cars
Other Websites
General Chat
Previous Thread
Next Thread
Print Thread
Excel filters #1624662
04/09/2018 11:47
04/09/2018 11:47

S
Skins
Unregistered
Skins
Unregistered
S



Hello all

Long time no post but I do still check in occasionally. I know there are some excel gurus on here so I thought I'd ask:

I have a spreadsheet which is used for data collection but it's way too big to see the useful data properly. I've been using filters to block out some of the data but now I have over 100 filters and I wondered if it would be possible to filter in another way. across several columns.

The easiest way to explain this is to mock up a simpler set of data:

Code:
      |  DAVE   |   MARY  |
      |         |         |
      |M T W T F|M T W T F|
      |O U E H R|O U E H R|
      |N E D U I|N E D U I|
      |         |         |
APPLE |  1      |         |
ORANGE|         |      1 1|
BANANA|         |1 1 1    |
GRAPES|8     6  |3 5 4 6  |
PEAR  |         |    1   1|


My real spreadsheet does not involve monitoring fruit consumption (I'm not that mental).

At the moment I am filtering each column individually but this is why I have over 100 filters and growing.

I'd like to see what fruit a person eats in the whole week and just blank out the fruit rows that are not eaten.....

FILTER DAVE
Code:
      |  DAVE   |   MARY  |
      |         |         |
      |M T W T F|M T W T F|
      |O U E H R|O U E H R|
      |N E D U I|N E D U I|
      |         |         |
APPLE |  1      |  1      |
GRAPES|8     6  |3 5 4 6  |


FILTER MARY
Code:
      |  DAVE   |   MARY  |
      |         |         |
      |M T W T F|M T W T F|
      |O U E H R|O U E H R|
      |N E D U I|N E D U I|
      |         |         |
ORANGE|         |      1 1|
BANANA|        1|1 1 1    |
GRAPES|8        |3 5 4 6  |
PEAR  |         |    1   1|



I will then have far fewer filters and can cross-reference the data for a particular name.

I've tried using advanced filters and even tried using lookup formulas on a separate sheet to return the values I need, but cannot get either to work.

Any help will be greatly appreciated.

Matt

Re: Excel filters [Re: ] #1624663
04/09/2018 11:54
04/09/2018 11:54
Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
DaveG Offline
Club Treasurer Member 311
DaveG  Offline
Club Treasurer Member 311
Je suis un Coupé

Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
Have you tried using Pivot Tables? I've never used them but many people swear by them...


1996 Portofino 20vt & 2000 Pearl White Plus
1985½ & 2016 2017 Fiat 124 Spider + XF Sportbrake
Re: Excel filters [Re: DaveG] #1624664
04/09/2018 12:20
04/09/2018 12:20

S
Skins
Unregistered
Skins
Unregistered
S



Originally Posted By DaveG
Have you tried using Pivot Tables? I've never used them but many people swear by them...

I've just tried that but every range I select it returns the error:

Originally Posted By MS Excel
The range you picked can't be used as a data source. To create a PivotTable, you need to use a range that is organized as a list with labeled columns.

Re: Excel filters [Re: ] #1624665
04/09/2018 13:29
04/09/2018 13:29
Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
DaveG Offline
Club Treasurer Member 311
DaveG  Offline
Club Treasurer Member 311
Je suis un Coupé

Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
Ah, I did wonder if your data may not have been arranged in a pivot-table-friendly way...

Does your data really look like that though, with "names" and "days of the week" and "fruit" (which may be other things in real life) or is it more complex?

And if you filter using "DAVE" surely you should not get back any results for "MARY"? And for "DAVE" would you still want (blank) results returned for those days when no "fruit" was "eaten" (do you want to keep all 5 days in your result table)?

I've made up something that works depending on whether you enter DAVE or MARY but I've got a "helper" columns to count up non-blank rows for each "person" and another helper column to pick up the non-blank rows for the selected "person", and another "helper" cell to keep track of where in the table the entries for each "person" start. It's kind of clunky but works...

Code:
DAVE	M	T	W	T	F
	O	U	E	H	R
	N	E	D	U	I
					
APPLE		1			
GRAPES	8			6	

Code:
MARY	M	T	W	T	F
	O	U	E	H	R
	N	E	D	U	I
					
ORANGE				1	1
BANANA	1	1	1		
GRAPES	3	5	4	6	
PEAR			1		1

Code:
TOM	M	T	W	T	F
	O	U	E	H	R
	N	E	D	U	I



1996 Portofino 20vt & 2000 Pearl White Plus
1985½ & 2016 2017 Fiat 124 Spider + XF Sportbrake
Re: Excel filters [Re: ] #1624670
04/09/2018 14:18
04/09/2018 14:18

S
Skins
Unregistered
Skins
Unregistered
S



Hey Dave, I think you have it. I just added a helper column next to each name which counts the number of "fruit" and then I just create the filter with that column which filters out all the zero rows. I can even hide that column too.

I thought this would be too difficult to do easily, so thanks!

Re: Excel filters [Re: ] #1624671
04/09/2018 14:45
04/09/2018 14:45
Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
DaveG Offline
Club Treasurer Member 311
DaveG  Offline
Club Treasurer Member 311
Je suis un Coupé

Joined: Dec 2005
Posts: 8,397
Lightwater, Surrey
In my helper column I just showed the row number if there was any "fruit" eaten by that "person", so for DAVE, I might get

1
0
0
4
0

The results table has the same number of rows, but I use the SMALL function to pull off each non-zero row number.

Lets' say the above column is in cells A1:A5, then my results table uses this formula in the first row

=SMALL($A$1:$A$5,ROW(1:1)-ROW($1:$1)+1)

Then copy that down to the remaining rows, and you'll end up with

1
4
#NUM!
#NUM!
#NUM!

You can use IFERROR to hide the #NUM! results

Now you can use the short helper column to pull out the results just for those rows.

Hopefully that makes sense?


1996 Portofino 20vt & 2000 Pearl White Plus
1985½ & 2016 2017 Fiat 124 Spider + XF Sportbrake
Re: Excel filters [Re: ] #1624675
04/09/2018 16:55
04/09/2018 16:55

S
Skins
Unregistered
Skins
Unregistered
S



Thanks again Dave. I did the first bit the same and then used filters to just filter the extra column.

I will play around with the formula though as I'd quite like to hide the other "names" to tidy it up.

I like learning new formula - it's very satisfying when you get the results you want.


Powered by UBB.threads™ PHP Forum Software 7.7.1
(Release build 20190129)
PHP: 7.3.33 Page Time: 0.011s Queries: 14 (0.004s) Memory: 0.7654 MB (Peak: 0.8525 MB) Data Comp: Off Server Time: 2024-04-18 23:36:56 UTC