+ Reply to Thread
Results 1 to 4 of 4

Check one cell, check second cell, return relevant value

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Check one cell, check second cell, return relevant value

    Have used this forum but only for searching posts with replies that solve my problem before now.

    I'm struggling with a formula that I think should be easy but I can't figure:

    I have two columns of data (A&B): I want to add a third column (C) whereby each cell in that column will check its respective row data in A&B.
    If it finds no data in column A, then I want it find that data in column B & return that, if however there is no data in either A or B I want it to return a blank"".

    Hope I've described my problem & would appreciate some help.

    Thanks,
    Ian

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Check one cell, check second cell, return relevant value

    Try

    =IF(A2="",IF(B2="","",B2),A2)

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Check one cell, check second cell, return relevant value

    Excellent. Thanks for the extremely speedy response & solution

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Check one cell, check second cell, return relevant value

    You're welcome..

    It might be simplified if your expected return value is TEXT, not number..

    =T(IF(A2="",B2,A2))

+ 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] Check cell for text and return corresponding txt in adjacent cell
    By stu29 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-29-2014, 09:55 AM
  2. How to Check if exists value and return cell
    By virtualdark in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-15-2011, 08:24 AM
  3. Macro to check for blank cell entry, copy previous value, and check for duplicates
    By xPunxNotDeadx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2009, 06:33 PM
  4. Check Cell for any text and return a value
    By justoldme in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2007, 01:51 PM
  5. Replies: 4
    Last Post: 05-09-2007, 07:30 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