+ Reply to Thread
Results 1 to 3 of 3

advanced filter and format

  1. #1
    CG Rosén
    Guest

    advanced filter and format


    Good day Group,

    Have a problem concering advanced filter and formats. In a column there is
    data
    representing dates. The data are put in the column by textboxes, the column
    is formated
    as text.
    Date
    20060201
    20060225
    20050303
    20040815
    20060525
    etc

    When trying to filter by the advanced filter there is nothing found by using
    criteria like:
    Date
    <=20050101
    but is working when the criteria looks like:
    Date
    <=20050101*
    have checked the length of the textstring and there are no "hidden" letters
    or spaces.
    It also looks like <= operand is working fine but when using the >= the data
    that is =
    to the criteria is ignored.

    Hopeful for some hints how to go on with this problem

    Brgds

    CG Rosén








  2. #2
    Peter T
    Guest

    Re: advanced filter and format

    I don't really follow what you are doing and what you are comparing,
    strings, numbers or date values (eg today's date is 38882). Couple of
    comments in case relevant -

    Just because you've formated cells as text doesn't necessarily mean they
    contain text, confirm with say =istext(a1)

    A number that is text will evaluate to greater than any number or
    date-value, eg
    ="1" > 2 ' true

    If you want to compare a number as text with a number try
    ="1" > TEXT(2,"@") 'false

    or
    =VALUE("1") > 2 ' false

    or if only numbers in the string
    ="1"*1>2 ' false

    Regards,
    Peter T


    "CG Rosén" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Good day Group,
    >
    > Have a problem concering advanced filter and formats. In a column there is
    > data
    > representing dates. The data are put in the column by textboxes, the

    column
    > is formated
    > as text.
    > Date
    > 20060201
    > 20060225
    > 20050303
    > 20040815
    > 20060525
    > etc
    >
    > When trying to filter by the advanced filter there is nothing found by

    using
    > criteria like:
    > Date
    > <=20050101
    > but is working when the criteria looks like:
    > Date
    > <=20050101*
    > have checked the length of the textstring and there are no "hidden"

    letters
    > or spaces.
    > It also looks like <= operand is working fine but when using the >= the

    data
    > that is =
    > to the criteria is ignored.
    >
    > Hopeful for some hints how to go on with this problem
    >
    > Brgds
    >
    > CG Rosén
    >
    >
    >
    >
    >
    >
    >




  3. #3
    Peter T
    Guest

    Re: advanced filter and format

    I don't really follow what you are doing and what you are comparing,
    strings, numbers or date values (eg today's date is 38882). Couple of
    comments in case relevant -

    Just because you've formated cells as text doesn't necessarily mean they
    contain text, confirm with say =istext(a1)

    A number that is text will evaluate to greater than any number or
    date-value, eg
    ="1" > 2 ' true

    If you want to compare a number as text with a number try
    ="1" > TEXT(2,"@") 'false

    or
    =VALUE("1") > 2 ' false

    or if only numbers in the string
    ="1"*1>2 ' false

    Regards,
    Peter T


    "CG Rosén" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Good day Group,
    >
    > Have a problem concering advanced filter and formats. In a column there is
    > data
    > representing dates. The data are put in the column by textboxes, the

    column
    > is formated
    > as text.
    > Date
    > 20060201
    > 20060225
    > 20050303
    > 20040815
    > 20060525
    > etc
    >
    > When trying to filter by the advanced filter there is nothing found by

    using
    > criteria like:
    > Date
    > <=20050101
    > but is working when the criteria looks like:
    > Date
    > <=20050101*
    > have checked the length of the textstring and there are no "hidden"

    letters
    > or spaces.
    > It also looks like <= operand is working fine but when using the >= the

    data
    > that is =
    > to the criteria is ignored.
    >
    > Hopeful for some hints how to go on with this problem
    >
    > Brgds
    >
    > CG Rosén
    >
    >
    >
    >
    >
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1