+ Reply to Thread
Results 1 to 3 of 3

Filter Formula Issue

  1. #1
    Registered User
    Join Date
    08-19-2009
    Location
    Winnipeg, Manitoba, Canada
    MS-Off Ver
    Excel 2003
    Posts
    90

    Filter Formula Issue

    Hello,

    I'm trying to use the following formula to filter data based on "Service Type" and it seems to work on one of the service types but not the other...

    here is the formula

    =IF(LEFT(A5,1)="0","Both",IF(OR(A5="SERVICE",A5="REVENUE",A5="REVENUE",A5="CIC",A5="RAO",A5="CARRIER NAME",A5="TYPE",A5="RECORDS",A5="INCLUDING TAX",A5="BEFORE TAX",A5="FEDERAL TAX",A5="PROVINCIAL TAX"),"Both",IF(LEFT(D5,3)="REG","Table1",IF(OR(D5="900"),"Table2",IF(A6="",IF(B6="","XXX","TRUE"),"XXX")))))
    Notice the highlighted red text, this is where I'm trying based it on "Service Type"

    I have also attached on example workbook, the items highlighted in green should marked as "Table1" and items highlighted redish orange should be marked as "Table"

    Wierd thing is that I use a similar formula in another workbbok and it seems to work fine....


    Any suggestions ??? please and thank you in advance,

    Arv
    Last edited by arvin; 12-07-2009 at 04:39 PM. Reason: marked as solved

  2. #2
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Filter Formula Issue

    The numbers in column D are formatted as numbers (not text) so you need to remove the quotes round 900 in your formula
    =IF(LEFT(A5,1)="0","Both",IF(OR(A5="SERVICE",A5="REVENUE",A5="REVENUE",A5="CIC",A5="RAO",A5="CARRIER NAME",A5="TYPE",A5="RECORDS",A5="INCLUDING TAX",A5="BEFORE TAX",A5="FEDERAL TAX",A5="PROVINCIAL TAX"),"Both",IF(LEFT(D5,3)="REG","Table1",IF(OR(D5=900),"Table2",IF(A6="",IF(B6="","XXX","TRUE"),"XXX")))))

  3. #3
    Registered User
    Join Date
    08-19-2009
    Location
    Winnipeg, Manitoba, Canada
    MS-Off Ver
    Excel 2003
    Posts
    90

    Re: Filter Formula Issue

    Hi Huron,

    That did it!

    Thank you very much and have a great day!

+ 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