Ceroc Scotland Charity Champs
Scottish Charity Champs
Edinburgh: Sat. 18/10/08
(with Pre-Champs Party on Friday 17th October)

Ceroc Scotland Forum

Ceroc Scotland Homepage

Ceroc learn to dance the easy way!


Go Back   Ceroc Scotland Forum > Discussion Lounge > Geeks' Corner

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

Reply
 
LinkBack Thread Tools Display Modes
Old 19th-December-2007, 04:54 PM   #1 (permalink)
Senior Member
 
Gadget's Avatar
 
Join Date: Oct 2002
Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523
Gadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to all
Question Excel and null values - guru advice sought

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...

Gadget is offline   Reply With Quote
Old 19th-December-2007, 04:57 PM   #2 (permalink)
CJ
Senior Member
 
CJ's Avatar
 
Join Date: Apr 2002
Location: Fife.
Posts: 5,036
Status: No Status
Rep Power: 6 Rep.: 1740
CJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to allCJ is a name known to all
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.
CJ is offline   Reply With Quote
Old 19th-December-2007, 05:06 PM   #3 (permalink)
Senior Member
 
Yliander's Avatar
 
Join Date: Jul 2004
Location: where ever I can get to
Posts: 2,681
Status: No Status
Rep Power: 3 Rep.: 642
Yliander is a glorious beacon of lightYliander is a glorious beacon of lightYliander is a glorious beacon of lightYliander is a glorious beacon of lightYliander is a glorious beacon of lightYliander is a glorious beacon of light
Re: Excel and null values - guru advice sought

Quote:
Originally Posted by Gadget View Post
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?
Hey gadget - being rather handy with Excel would love to help - but would need the question in english rather than geek.

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
Yliander is offline   Reply With Quote
Old 19th-December-2007, 05:16 PM   #4 (permalink)
Commercial Operator
 
straycat's Avatar
 
Join Date: May 2003
Location: Northeastern Parts
Posts: 3,781
Status: maybe
Rep Power: 4 Rep.: 1723
straycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to allstraycat is a name known to all
Re: Excel and null values - guru advice sought

Quote:
Originally Posted by CJ View Post
<sausages>

I couldn't believe it. But it does actually work.
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...
straycat is offline   Reply With Quote
Old 19th-December-2007, 05:43 PM   #5 (permalink)
Senior Member
 
Gadget's Avatar
 
Join Date: Oct 2002
Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523
Gadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to all
Re: Excel and null values - guru advice sought

Quote:
Originally Posted by Yliander View Post
Hey gadget - being rather handy with Excel would love to help - but would need the question in english rather than geek.

what is the filter to do if a cell = null?
I'll try english, but don't hold out for any better explanation.

Code:
Private Sub SubFilterList()
    If FilterMode = True Then ShowAllData
    
    Range("FullSheet").AdvancedFilter _
        Action:=xlFilterInPlace, _
        CriteriaRange:=Range("FilterListBy")
    
    Range("B11").Select
    
End Sub
...and it works if the data in the named range "FilterListBy" is typed in. But I want to have it entered via a picklist/formula in another cell somewhere, so I have the formula:

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...

Gadget is offline   Reply With Quote
Old 19th-December-2007, 06:04 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Oxford
Posts: 153
Status: No Status
Rep Power: 1 Rep.: 146
geoff332 will become famous soon enoughgeoff332 will become famous soon enough
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...
geoff332 is offline   Reply With Quote
Old 19th-December-2007, 06:24 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Oxford
Posts: 153
Status: No Status
Rep Power: 1 Rep.: 146
geoff332 will become famous soon enoughgeoff332 will become famous soon enough
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.
geoff332 is offline   Reply With Quote
Old 19th-December-2007, 06:42 PM   #8 (permalink)
Senior Member
 
Gadget's Avatar
 
Join Date: Oct 2002
Location: Cruden Bay (Aberdeen)
Posts: 6,143
Status: No Status
Rep Power: 5 Rep.: 1523
Gadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to allGadget is a name known to all
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...

Gadget is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Tags
advice, excel, guru, null, sought, values

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


The time in sunny Scotland is 02:12 AM.

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

Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18