+ Reply to Thread
Results 1 to 5 of 5

How do I use IF formula for multiple cells

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    How do I use IF formula for multiple cells

    How do I use an IF formula to check multiple cells and return a true/false answer in another cell

    Example
    I have multiple cells in a row that contain the letter "Y" to indicate a variance (A2,A8,A9,A23,A27). In cell A1 I would like to add a formula that would check all of the designated cells in ROW 1 and return a "Y" if any of those cells contain the letter "Y".

    Thanks for any assistance!Example.xlsx

  2. #2
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: How do I use IF formula for multiple cells

    will this work for you?.....put this in Cell A2 and copy it down

    Please Login or Register  to view this content.
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How do I use IF formula for multiple cells

    not sure what you mean by (A2,A8,A9,A23,A27)
    but to check each row for any variance
    =IF(COUNTIF(B2:F2,"y"),"y","")
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How do I use IF formula for multiple cells

    That worked brilliantly. You get may *'s added.

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How do I use IF formula for multiple cells

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 0
    Last Post: 03-13-2013, 12:25 PM
  2. Formula for Averaging multiple cells on multiple pages
    By blakeandsteph in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-24-2013, 09:34 PM
  3. Replies: 1
    Last Post: 11-20-2012, 10:08 AM
  4. Replies: 1
    Last Post: 10-24-2012, 01:21 PM
  5. Lookup Formula for multiple cells with multiple results
    By CKD777 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 10-14-2011, 11:32 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