#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Criteria

Hi All,

Whilst I know the basics of criteria (in this case to be used in a DSUM
formula) and have looked at the examples in the Help system I am struggling
with this:

Say one of my criteria is:

Cost Center
5850

which I can also write as:

Cost Center
="=5850"

How can I write the criteria of not equal to 5850?

I have tried:

Cost Center
<5850

and

Cost Center
="<5850"

and neither seems to work.

Please help.

Thanks and Best Regards,

Matt

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Criteria

If the cost center entry was a real number (=isnumber() returned true), then
both your suggestions worked ok for me.

If your cost center was text (cell preformatted as Text or started with an
apostrophe), then it failed.

This kind of worked for me:
Cost Center
<5850*

But this will show the text 5850 and 5850QWER and 5850ASDF as well.

You may want to try using the technique at Debra Dalgleish's site:
http://contextures.com/xladvfilter02.html#Number

My cost center column is column B and the header is in B1.

My criteria range is J1:J2.

I left J1 blank
and put this in J2:
=B2="5850"

And the advanced filter worked to show just the text extries 5850.

If I had a mixture of both numbers 5850 and text 5850, then this worked ok:

I left J1 blank
and put this in J2:
=OR(B2="5850",B2=5850)

veryeavy wrote:

Hi All,

Whilst I know the basics of criteria (in this case to be used in a DSUM
formula) and have looked at the examples in the Help system I am struggling
with this:

Say one of my criteria is:

Cost Center
5850

which I can also write as:

Cost Center
="=5850"

How can I write the criteria of not equal to 5850?

I have tried:

Cost Center
<5850

and

Cost Center
="<5850"

and neither seems to work.

Please help.

Thanks and Best Regards,

Matt


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Criteria

Thanks Dave,

You are a legend.

And yes, the "numbers" were text ... I have taken your sorta works solution
with its caveat.

Cheers,

Matt

"Dave Peterson" wrote:

If the cost center entry was a real number (=isnumber() returned true), then
both your suggestions worked ok for me.

If your cost center was text (cell preformatted as Text or started with an
apostrophe), then it failed.

This kind of worked for me:
Cost Center
<5850*

But this will show the text 5850 and 5850QWER and 5850ASDF as well.

You may want to try using the technique at Debra Dalgleish's site:
http://contextures.com/xladvfilter02.html#Number

My cost center column is column B and the header is in B1.

My criteria range is J1:J2.

I left J1 blank
and put this in J2:
=B2="5850"

And the advanced filter worked to show just the text extries 5850.

If I had a mixture of both numbers 5850 and text 5850, then this worked ok:

I left J1 blank
and put this in J2:
=OR(B2="5850",B2=5850)

veryeavy wrote:

Hi All,

Whilst I know the basics of criteria (in this case to be used in a DSUM
formula) and have looked at the examples in the Help system I am struggling
with this:

Say one of my criteria is:

Cost Center
5850

which I can also write as:

Cost Center
="=5850"

How can I write the criteria of not equal to 5850?

I have tried:

Cost Center
<5850

and

Cost Center
="<5850"

and neither seems to work.

Please help.

Thanks and Best Regards,

Matt


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Criteria

Each time I have trouble with advanced filter, I visit Debra's site.

You may want to bookmark her site, too????

veryeavy wrote:

Thanks Dave,

You are a legend.

And yes, the "numbers" were text ... I have taken your sorta works solution
with its caveat.

Cheers,

Matt

"Dave Peterson" wrote:

If the cost center entry was a real number (=isnumber() returned true), then
both your suggestions worked ok for me.

If your cost center was text (cell preformatted as Text or started with an
apostrophe), then it failed.

This kind of worked for me:
Cost Center
<5850*

But this will show the text 5850 and 5850QWER and 5850ASDF as well.

You may want to try using the technique at Debra Dalgleish's site:
http://contextures.com/xladvfilter02.html#Number

My cost center column is column B and the header is in B1.

My criteria range is J1:J2.

I left J1 blank
and put this in J2:
=B2="5850"

And the advanced filter worked to show just the text extries 5850.

If I had a mixture of both numbers 5850 and text 5850, then this worked ok:

I left J1 blank
and put this in J2:
=OR(B2="5850",B2=5850)

veryeavy wrote:

Hi All,

Whilst I know the basics of criteria (in this case to be used in a DSUM
formula) and have looked at the examples in the Help system I am struggling
with this:

Say one of my criteria is:

Cost Center
5850

which I can also write as:

Cost Center
="=5850"

How can I write the criteria of not equal to 5850?

I have tried:

Cost Center
<5850

and

Cost Center
="<5850"

and neither seems to work.

Please help.

Thanks and Best Regards,

Matt


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
=DMIN(database,field,criteria) question about criteria Dummy Excel Discussion (Misc queries) 2 April 16th 07 08:02 PM
criteria 1(a,b,c), criteria 2 (T,F) - Results (3 answers) achievab Kikkoman Excel Discussion (Misc queries) 5 July 1st 05 11:05 PM
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


All times are GMT +1. The time now is 03:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"