| ![]() Ceroc Scotland Homepage |
| |||||||
| Geeks' Corner A place to hang out to solve all your computer, electronic, technical or telecommunication problems. Be warned that a strong bias towards Apple products will be shown by moderators / admins! |
| Quick News |
- Residential Focus BLUES Week-ender 5th/7th September. Friday, Saturday & Sunday parties open to everyone... With extra Blues Room on the Saturday night. - Utopia Scotland Week-end: 27th/28th Sept. Edinburgh. @ St Stephens, Stockbridge,Edinburgh. A Special week-end of Blues workshops and Utopia party nights + tea-dance with Guest teachers/DJ: Val & Dave. Upgrade your Forum experience, become a SILVER MEMBER! Benefits of Silver membership: - View what everyone is up to on the 'Who's online page, be invisible on the Forum, Create your own Blog, Join the Chat Rooms :) Remove Google Adverts, Filter new posts to avoid certain areas (e.g. Fun & Games, Chit Chat, Geek corner, etc...) when searching new posts, choose a custom avatar and have a Signature! Join today from as little as £6.00 |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Senior Member Join Date: Oct 2002 Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Any MSExcel gurus? I'm trying to write a formula that a filter will use, but in order for the filter to work properly I need the cell to have data or be null: not contain an empty string (ie "") if(Filter=True,"Use This Text",<null>) Anyone know what I put into the <null> to actually get a null entry?
__________________ I used to be an angel, you know with halo and those wings; Now that i'm a devil, my mind's on other things... My feathers turned to ash, and my harp has broke in two; I took uppon myself, to have a dance with you... |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Apr 2002 Location: Fife.
Posts: 5,036
Status: No Status
Rep Power: 6 Rep.: 1740 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Re: Excel and null values - guru advice sought <sausages> I couldn't believe it. But it does actually work.
__________________ Grant me the serenity to accept the things I cannot change, the courage to change the things I can and the wisdom to know the difference. www.readitandweep.net Risk more than others think safe; dream more than others think practical; care more than others think wise; desire more than others think possible.. ... then the Universe is yours. |
| | |
| | #3 (permalink) | |
| Senior Member Join Date: Jul 2004 Location: where ever I can get to
Posts: 2,681
Status: No Status
Rep Power: 3 Rep.: 642 ![]() ![]() ![]() ![]() ![]() | Re: Excel and null values - guru advice sought Quote:
what is the filter to do if a cell = null?
__________________ "Dance is your pulse, you heartbeat, your breathing. It's the rhythm of your life. It's the expression in time and movement, in happiness, joy, sadness and envy." ~Jaques D'ambroise | |
| | |
| | #4 (permalink) |
| Commercial Operator Join Date: May 2003 Location: Northeastern Parts
Posts: 3,781
Status: maybe
Rep Power: 4 Rep.: 1723 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Re: Excel and null values - guru advice sought British sausages, presumably? The Continental ones tend to have more meat content, and are hence a lot greater than null.
__________________ Straycat Cheap, but not as cheap as your girlfriend... |
| | |
| | #5 (permalink) | |
| Senior Member Join Date: Oct 2002 Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Re: Excel and null values - guru advice sought Quote:
Code: Private Sub SubFilterList()
If FilterMode = True Then ShowAllData
Range("FullSheet").AdvancedFilter _
Action:=xlFilterInPlace, _
CriteriaRange:=Range("FilterListBy")
Range("B11").Select
End Sub
If(UseFilter=True,"Filter Text","") Which inserts a null string if I don't want to filter it... of course none of the data in the list is a null string, so the filter does what it's told and filters out all the records. (oh and I tried "*" for a wild card, but that dosn't seem to work either)
__________________ I used to be an angel, you know with halo and those wings; Now that i'm a devil, my mind's on other things... My feathers turned to ash, and my harp has broke in two; I took uppon myself, to have a dance with you... | |
| | |
| | #6 (permalink) |
| Registered User Join Date: Oct 2007 Location: Oxford
Posts: 153
Status: No Status
Rep Power: 1 Rep.: 146 ![]() | Re: Excel and null values - guru advice sought Try using two double quotes: =IF(filter,"stuff","") just saw your reply... let me figure this out then... |
| | |
| | #7 (permalink) |
| Registered User Join Date: Oct 2007 Location: Oxford
Posts: 153
Status: No Status
Rep Power: 1 Rep.: 146 ![]() | Re: Excel and null values - guru advice sought OK - if you're doing it in VB, why not use a conditional to set the criteria range to null. I have a funny feeling that if you enter a formula in a cell, the cell cannot be null. Well, it's more than a feeling - microsoft actually say it themselves (and it sort of make sense - null means nothing in the cell, a formula is not nothing). So you have to validate the filter list to make sure you don't have any blank cells before you use it as a filter. |
| | |
| | #8 (permalink) |
| Senior Member Join Date: Oct 2002 Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Re: Excel and null values - guru advice sought Solved: it was to do with boolean values rather than null values as i first thought...well, that and it didn't scroll up to the top of the list once it had filtered it, so it looked like there was nothing there ![]() Thanks anyway Geoff. ~G~
__________________ I used to be an angel, you know with halo and those wings; Now that i'm a devil, my mind's on other things... My feathers turned to ash, and my harp has broke in two; I took uppon myself, to have a dance with you... |
| | |
|
Advertisement
| Sponsored links |
![]() |
| Bookmarks |
| Tags |
| advice, excel, guru, null, sought, values |
| Thread Tools | |
| Display Modes | |
| |
| These are the 100 most used thread tags
Tag Cloud
|
| 2005 2006 2007 2008 aberdeen advice aftermath april ashtons august baby back ball ballroom beach beginners big blackpool blaze blues camber car ceroc champs change christmas class competition dance dancer dancers dancing day dec dvd edinburgh feb free freestyle friday game glasgow hammersmith jan jive july june lead lift london make male man march men modern move music needed night partner people photos question rep room sat saturday scotland scottish shoes song southport strictly sunday swing tango teachers test thread ticket time tips tonight top tracks utopia venue video wanted wcs week weekend weekender weekenders west women work workshop world |