Consulting

Results 1 to 2 of 2

Thread: Finding a number in a range

  1. #1

    Finding a number in a range

    Good moring guys I am trying to find a number in a range of numbers that
    is equal to a number in B1. I am using the following formula
    =IF(C1:G1=B1,"Yes","No") I keep getting an error message. I have tried changing the formula with no luck. If I change the formula to read
    =IF(C1=B1,"Yes","No") that works. What am I doing wrong with the first
    formula? Thanks for any help
    Max

  2. #2
    VBAX Mentor CBrine's Avatar
    Joined
    Jun 2004
    Location
    Toronto, Canada
    Posts
    387
    Location
    Try
    =if(countif(C1:G1,B1)>0,"Yes","No")

    HTH
    Cal
    The most difficult errors to resolve are the one's you know you didn't make.


Posting Permissions

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