+ Reply to Thread
Results 1 to 4 of 4

Value from If & Countif formula

  1. #1
    Registered User
    Join Date
    07-27-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Value from If & Countif formula

    Hi,

    I have a problem in getting an If formula to return an X if a certain criteria is met. The formula should return an X only for *(A) *(B). I have attached a worksheet that should explain my problem clearer. The value I am referring to is in yellow.

    Appreciate if anyone could kindly help.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Value from If & Countif formula

    Hi,

    First remove all the ^ symbols from the 'blank' cells so that they are genuinely blank then:
    in M4 copied down

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Value from If & Countif formula

    ok, this got ugly, but it works lol....

    =IF(M5=MID(M5,FIND("(",M5,1)-1,4)&" "&MID(M5,FIND("(",M5,FIND("(",M5,1)+1)-1,4)&" ","X","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Value from If & Countif formula

    Maybe a simple solution

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also this maybe a little more efficient than repeated use of countif in column M, but it is limited, if a character repeats more than 9 times, it will fail.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-27-2012
    Location
    malaysia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Value from If & Countif formula

    Richard Buttrey, FDibbins & jason.b75,

    Thanks so much for the quick response. It's jason.b75 first formula is the one I exactly wanted. As for Richard's, it's similar to what I already have. Fdibbins's, slightly off the mark but definately will come in handy later.

    Thanks again. Cheers

+ 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