+ Reply to Thread
Results 1 to 2 of 2

If and COUNTIF formulas

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    Vicksburg, MS
    MS-Off Ver
    Excel 2007
    Posts
    1

    Post If and COUNTIF formulas

    code in Column Group associated w/data
    WRXLAA 412
    W8CCAA 412
    WRASAA 411
    WZ5EAA 411
    WVPYAA 302
    WRDSAA 302
    WR8UAA 926
    WVPWAA 926
    WSKYAA 411
    WZTSAA 411
    WRU1AA 302

    I need a formula that will sort the code in column by it's first 4 places (WRXL*) and label by the cooresponding groups. I have 30+ codes per group but need a working formula to input them into. Below is what I was trying to develop for one group, then insert the others into the false variable so it could sort and label all codes.

    =IF((COUNTIF(F3,{"WRXL*","W8CC*","WRAS*","WZ5E*","WVPY*","WSP5*","WTFS*","WSPX*","WR0F*","WZ4W*","WQ8B*","WZ4S*","WZ4V*","WRAT*","WRAR*","WRAW*","WRAY*","WQ5U*","WR84*","WR85*","WRDU*","WRDV*","WQ6U*"}))>=1,"412"," ")

    This formula only recognizes the first code "WRXL*" then stops. I'm self-taught and need some SME help!

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: If and COUNTIF formulas

    Check this
    search.xlsx

    but you can as well create a Name Range from your criteris and refer that in this formula.
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Countif formulas
    By evt123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2010, 06:36 PM
  2. [SOLVED] how do i set a formulas with two conditions using countif
    By kiko31 in forum Excel General
    Replies: 3
    Last Post: 06-25-2006, 08:45 AM
  3. countif formulas
    By Alexis in forum Excel General
    Replies: 2
    Last Post: 12-19-2005, 05:52 PM
  4. [SOLVED] Use CountIF with conditional formulas
    By Bob Phillips in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-06-2005, 06:05 AM
  5. Use CountIF with conditional formulas
    By Chris Price in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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