+ Reply to Thread
Results 1 to 3 of 3

Return a Value dependant on a result of two cells

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Aberdeen
    MS-Off Ver
    Excel 2010
    Posts
    35

    Return a Value dependant on a result of two cells

    Good Morning all,

    I have a comparison spreadsheet that I am using to crosscheck some information. I have three cells
    A1 = Part Number
    B1 = In Report 1
    C1 = In Report 2

    A1 B1 C1
    134501 0 1
    135670 1 0
    965401 1 1

    The result that I an trying to achieve is that D1 would show that if the part number is in both B1 and C1 then D1 would say "In Both".

    I have tried using if and nested if's but am still new to this type of formula as I get every result but the right one, either Nothing or False etc.

    Thanks in advance
    Sandy

  2. #2
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Return a Value dependant on a result of two cells

    Hi,

    I'm not sure to have undestood:

    =IF(B1*C1,"In Both","")

    or

    =IF(B1&C1="11","In Both","")


    Hope it helps
    Last edited by canapone; 09-30-2015 at 04:26 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Return a Value dependant on a result of two cells

    I'm not sure I follow you either, but this might be it:
    =IF(AND(B2=1,C2=1),"Both","")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Compare 2 Cells, Return result which is NOT 0
    By louisnhs in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-10-2013, 05:41 AM
  2. [SOLVED] Return a result base on 1 of 2 cells
    By matrixpom in forum Excel General
    Replies: 3
    Last Post: 09-17-2012, 09:15 PM
  3. Replies: 3
    Last Post: 07-06-2010, 05:30 AM
  4. How do I specify cells to return a result in a quadratic?
    By Aerozona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 02:05 AM
  5. [SOLVED] How do I specify cells to return a result in a quadratic?
    By Aerozona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 01:05 AM
  6. How do I specify cells to return a result in a quadratic?
    By Aerozona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] How do I specify cells to return a result in a quadratic?
    By Aerozona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-05-2005, 11:05 PM
  8. How do I specify cells to return a result in a quadratic?
    By Aerozona in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2005, 03:05 AM

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