+ Reply to Thread
Results 1 to 4 of 4

If statement for range of cells

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    USA
    MS-Off Ver
    MAC 2011
    Posts
    2

    If statement for range of cells

    Hi all - hoping someone can help solve a riddle that is driving me crazy...

    I have unique "names" listed in A2:P2.
    If the "name" appears in A2, then Q2 = K
    If the "name" appears in B2:D2, then Q2 = D
    If the "name" appears in E2:F2, then Q2 = B
    If the "name" appears in G2:I2, then Q2 = M
    If the "name" appears in J2:M2, then Q2 = F
    If the "name" appears in N2:P2, then Q2 = -

    For example, "Adam" appears in H2, so Q2 should read "M".

    Thanks!

    Cross posted: http://www.mrexcel.com/forum/excel-q...nge-cells.html
    Last edited by rmmeb; 08-20-2013 at 07:31 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: If statement for range of cells

    This might work for you:

    I created a table with row to output conversion, and indexed it after matching the appropriate column for the magic word.

    Attachment 259396

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: If statement for range of cells

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    http://www.mrexcel.com/forum/excel-q...nge-cells.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    08-20-2013
    Location
    USA
    MS-Off Ver
    MAC 2011
    Posts
    2

    Re: If statement for range of cells

    Thanks much!

+ 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. [SOLVED] IF statement not working on a range of cells
    By ScottInTX in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2013, 03:20 PM
  2. If statement that looks at a range of cells
    By harleychic67 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2012, 05:37 PM
  3. Using an IF statement on a range of cells
    By Supersmithy in forum Excel General
    Replies: 2
    Last Post: 02-24-2012, 09:04 AM
  4. If statement spanning range of cells
    By Snouty in forum Excel General
    Replies: 7
    Last Post: 04-07-2010, 03:46 PM
  5. If Statement checking range of cells
    By Lockeitivity in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-15-2010, 01:10 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