+ Reply to Thread
Results 1 to 7 of 7

If Formula

  1. #1
    Registered User
    Join Date
    05-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up If Formula

    Hi all

    I know this is quite a simple formula, but for some reason will not work in the capacity I want it to.

    The formula is:

    If(M8883=BD65425:BD65439,"Yes",A8883)

    Any ideas what would stop this formula from working? I can do it in a blank workbook using IF(B1=A1:A10,"Yes",C10) and it works fine however generates the #VALUE! when I put it into practice as above.

    Any help would be appreciated

    J
    Last edited by JGrange; 05-30-2010 at 01:53 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: If Formula

    Maybe this?

    =IF(COUNTIF(BD65425:BD65439, M8882)>0, "YES", A8883)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If Formula

    What is the formula supposed to do?

    In the second example,

    =IF(B1=A1:A10, "Yes", C10)

    ... there is an implied intersection, so the formula is equivalent to

    =IF(B1=A1, "Yes", C10)

    If the first formula, there is no such intersection.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    aiwnjoo
    Guest

    Re: If Formula

    It works fine, what are you trying to achieve, i replicated it and was ok... See attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Thumbs up Re: If Formula

    Quote Originally Posted by zbor View Post
    Maybe this?

    =IF(COUNTIF(BD65425:BD65439, M8882)>0, "YES", A8883)
    Brilliant. No idea why I didn't think of that - Brain is fried!!

    Thanks for your help

  6. #6
    Registered User
    Join Date
    05-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If Formula

    Quote Originally Posted by aiwnjoo View Post
    It works fine, what are you trying to achieve, i replicated it and was ok... See attached.
    It works fine in any other spreadsheet than the one I want to use it in.. No idea why. Resolved now though.

    Thanks for your suggestions everyone

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

    Re: If Formula

    Quote Originally Posted by JGrange View Post
    No idea why I didn't think of that - Brain is fried!!
    As Homer Simpson would say:
    “Alright Brain, you don't like me, and I don't like you. But lets just do this, and I can get back to killing you with beer.”

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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